@import url("https://fonts.googleapis.com/css2?family=Anton&family=Caveat:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&family=Kalam:wght@300;400;700&display=swap");

:root {
  --brand-orange: #ff7a1a;
  --brand-magenta: #e3008c;
  --brand-violet: #7a1dd9;
  --brand-blue: #2b5eff;
  --brand-grad: linear-gradient(135deg, #ff7a1a 0%, #e3008c 45%, #7a1dd9 100%);
  --success: #18a05a;
  --danger: #e3008c;
  --warning: #ffb020;
  --info: #2b5eff;
  --radius-card: 8px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --row-h: 48px;
  --ui-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: Anton, "Archivo Black", Inter, sans-serif;
  --space-1: 0.35rem;
  --space-2: 0.65rem;
  --space-3: 1rem;
  --space-4: 1.35rem;
  --shadow-soft: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.16);
  --btn-app-height: 40px;
  --btn-app-sm-height: 34px;
  --btn-app-primary-fg: #fff;
  --btn-app-primary-bg: var(--brand-grad);
  --btn-app-primary-shadow: 0 8px 22px color-mix(in srgb, var(--brand-magenta) 24%, transparent);
  --btn-app-secondary-fg: var(--text);
  --btn-app-secondary-bg: color-mix(in srgb, var(--surface) 86%, transparent);
  --btn-app-secondary-border: var(--border);
  --btn-app-secondary-hover-bg: color-mix(in srgb, var(--brand-blue) 10%, var(--surface));
  --btn-app-tertiary-fg: color-mix(in srgb, var(--brand-blue) 76%, var(--text));
  --btn-app-danger-fg: #fff;
  --btn-app-danger-bg: color-mix(in srgb, var(--danger) 92%, #111);
  --btn-app-danger-border: color-mix(in srgb, var(--danger) 54%, var(--border));
  --btn-app-ghost-fg: var(--text);
  --btn-app-ghost-bg: color-mix(in srgb, var(--surface) 56%, transparent);
  --btn-app-ghost-border: color-mix(in srgb, var(--text) 18%, transparent);
}

html[data-font="clean"] {
  --display-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font="concept"] {
  --ui-font: Kalam, Inter, system-ui, sans-serif;
  --display-font: Anton, Caveat, Kalam, Inter, sans-serif;
}

html[data-theme="dark"],
html[data-bs-theme="dark"] {
  --bg: #0e0e12;
  --surface: #17171d;
  --surface-2: #22222b;
  --text: #e8e8ee;
  --muted: #a4a4ae;
  --border: rgba(255,255,255,.10);
  --shadow-soft: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.35);
}

html[data-theme="light"],
html:not([data-theme]) {
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f1eee8;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --border: rgba(18,18,24,.12);
}

html[data-density="compact"] {
  --row-h: 36px;
  --space-2: 0.45rem;
  --space-3: 0.7rem;
  --space-4: 1rem;
}

* {
  letter-spacing: 0;
}

body {
  min-width: 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand-magenta) 12%, transparent), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--ui-font);
  font-size: 14px;
  padding-bottom: 72px;
}

h1, h2, h3, h4, h5, .display-font, .fw-bold.fs-4, .fs-1.fw-bold {
  font-family: var(--display-font);
  font-weight: 400 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.font-monospace,
.ean-badge,
code,
pre,
input[id*="Selector"] {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}

.navbar .navbar-collapse {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.navbar .navbar-nav {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar .navbar-nav::-webkit-scrollbar {
  display: none;
}

.navbar .navbar-collapse > .d-flex {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
}

#btnScrapeAll,
#btnScrapeStores {
  white-space: nowrap;
}

.navbar-action-slot {
  min-width: 168px;
  flex: 0 0 168px;
  height: var(--btn-app-sm-height);
}

.navbar [data-app-theme-toggle] {
  width: 40px;
  min-width: 40px;
  padding-inline: 0 !important;
}

.app-country-select {
  display: inline-flex;
  align-items: center;
}

.app-country-select select {
  width: 74px;
  min-width: 74px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
  padding-left: .55rem;
  padding-right: 1.55rem;
}

.mobile-navbar-country {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link,
.navbar .btn-outline-light {
  color: var(--text);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Anton, Inter, sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-brand i {
  display: none;
}

.navbar-brand::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: url("/static/img/brand/logo-mini.png") center / contain no-repeat;
}

.login-brand-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  padding-inline: 0.85rem !important;
  color: var(--muted) !important;
  white-space: nowrap;
}

.nav-link i {
  margin-right: 0 !important;
}

.nav-link.active,
.nav-link:hover {
  background: var(--surface-2);
  color: var(--text) !important;
}

.container-fluid {
  max-width: 1740px;
}

.app-page-hero {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  color: #fff;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(14,14,18,.30), rgba(14,14,18,.52)), var(--brand-grad);
}

.app-page-hero h1,
.app-page-hero p {
  margin: 0;
}

.app-page-hero p {
  margin-top: 0.35rem;
  color: rgba(255,255,255,.84);
}

.stores-toolbar {
  margin-top: calc(var(--space-4) * -0.35);
}

.stores-toolbar > .d-flex {
  padding: .85rem 1rem;
}

.stores-toolbar__row {
  min-height: 64px;
  padding: .85rem 1rem;
}

.stores-toolbar__controls {
  display: flex;
  flex: 1 1 520px;
  align-items: center;
  gap: .5rem;
}

.stores-toolbar__controls .form-select,
.stores-toolbar__controls .geo-site-select,
.stores-toolbar__controls .geo-brand-select {
  width: 190px;
  flex: 0 0 190px;
}

.stores-toolbar__controls .geo-search,
.stores-toolbar__controls .stores-search {
  flex: 1 1 320px;
  max-width: 560px;
}

.card,
.modal-content,
.dropdown-menu {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-soft) !important;
}

.card-header,
.card-footer,
.table-light,
.input-group-text,
.modal-header,
.modal-footer {
  color: var(--text) !important;
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}

.card-body {
  padding: var(--space-3);
}

.btn,
.form-control,
.form-select,
.input-group-text {
  min-height: 40px;
  border-radius: var(--radius-control) !important;
}

.btn-sm,
.form-select-sm,
.form-control-sm {
  min-height: 36px;
}

/* Application button roles */
.btn-app-primary,
.btn-app-secondary,
.btn-app-tertiary,
.btn-app-danger,
.btn-app-ghost {
  min-height: var(--btn-app-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 700;
}

.btn-app-primary {
  color: var(--btn-app-primary-fg) !important;
  border: 0 !important;
  background: var(--btn-app-primary-bg) !important;
  box-shadow: var(--btn-app-primary-shadow);
}

.btn-app-primary:hover,
.btn-app-primary:active,
.btn-app-primary.active {
  color: var(--btn-app-primary-fg) !important;
  filter: saturate(1.08) brightness(1.02);
}

.btn-app-secondary {
  color: var(--btn-app-secondary-fg) !important;
  border-color: var(--btn-app-secondary-border) !important;
  background: var(--btn-app-secondary-bg) !important;
}

.btn-app-secondary:hover,
.btn-app-secondary:active,
.btn-app-secondary.active,
.show > .btn-app-secondary.dropdown-toggle {
  color: var(--text) !important;
  border-color: color-mix(in srgb, var(--brand-blue) 28%, var(--border)) !important;
  background: var(--btn-app-secondary-hover-bg) !important;
}

.btn-app-tertiary {
  min-height: auto;
  color: var(--btn-app-tertiary-fg) !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.btn-app-tertiary:hover,
.btn-app-tertiary:active,
.btn-app-tertiary.active {
  color: var(--brand-violet) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-app-danger {
  color: var(--btn-app-danger-fg) !important;
  border-color: var(--btn-app-danger-border) !important;
  background: var(--btn-app-danger-bg) !important;
}

.btn-app-danger:hover,
.btn-app-danger:active,
.btn-app-danger.active {
  color: var(--btn-app-danger-fg) !important;
  background: color-mix(in srgb, var(--danger) 82%, #000) !important;
}

.btn-app-ghost {
  color: var(--btn-app-ghost-fg) !important;
  border-color: var(--btn-app-ghost-border) !important;
  background: var(--btn-app-ghost-bg) !important;
}

.btn-app-ghost:hover,
.btn-app-ghost:active,
.btn-app-ghost.active {
  color: var(--text) !important;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent) !important;
}

.btn-app-sm {
  min-height: var(--btn-app-sm-height);
  padding: .35rem .65rem;
  font-size: .82rem;
  gap: .3rem;
}

.btn-app-primary:disabled,
.btn-app-secondary:disabled,
.btn-app-tertiary:disabled,
.btn-app-danger:disabled,
.btn-app-ghost:disabled,
.btn-app-primary.disabled,
.btn-app-secondary.disabled,
.btn-app-tertiary.disabled,
.btn-app-danger.disabled,
.btn-app-ghost.disabled {
  pointer-events: none;
  opacity: .58;
  filter: grayscale(.2);
  box-shadow: none;
}

.btn-primary,
.btn-success,
#btnOpenAddProduct,
#btnSaveProduct,
#btnScrapeAll,
#btnScrapeStores,
#btnChooseFile,
button[type="submit"].btn-primary {
  color: #fff !important;
  border: 0 !important;
  background: var(--brand-grad) !important;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-magenta) 24%, transparent);
}

.btn-outline-light,
.btn-outline-secondary,
.btn-outline-primary {
  color: var(--text) !important;
  border-color: var(--border) !important;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.form-control,
.form-select {
  color: var(--text);
  background-color: var(--surface-2);
  border-color: var(--border);
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-blue) 18%, transparent) !important;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  color: var(--text);
}

.table > :not(caption) > * > * {
  height: var(--row-h);
  padding: var(--space-2) var(--space-3);
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  --bs-table-hover-bg: color-mix(in srgb, var(--brand-blue) 8%, transparent);
  color: var(--text);
}

.badge,
.pill,
.nav-pills .nav-link,
.segmented-control .btn {
  border-radius: var(--radius-pill) !important;
}

.badge.bg-danger-subtle,
.text-danger,
.price-drop {
  color: var(--brand-magenta) !important;
}

.price-best,
.text-success.fw-semibold {
  color: var(--success) !important;
}

.price-bot-blocked,
.badge-store_only {
  color: #fff !important;
  background: color-mix(in srgb, var(--brand-violet) 72%, #000) !important;
  border: 1px solid color-mix(in srgb, var(--brand-violet) 55%, #fff);
}

.price-unavail {
  color: var(--brand-magenta);
  background: color-mix(in srgb, var(--brand-magenta) 10%, transparent);
  border-radius: var(--radius-pill);
}

.stat-card,
.row.g-3.mb-4 > [class*="col-"] > .card {
  position: relative;
  overflow: hidden;
}

.row.g-3.mb-4 > [class*="col-"] > .card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand-grad);
}

.fs-1.fw-bold,
.fw-bold.fs-4 {
  color: transparent !important;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.app-chipbar,
.density-toggle,
.app-segmented {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.app-chip,
.density-toggle button,
.app-segmented button {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--surface);
  padding: 0.35rem 0.8rem;
}

.app-chip.is-brand,
.app-segmented button.active {
  color: #fff;
  border-color: transparent;
  background: var(--brand-grad);
}

.app-segmented-sm button {
  min-height: 34px;
  padding-inline: 0.7rem;
}

.app-filter-panel {
  position: relative;
  margin-bottom: 1rem;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-magenta) 6%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.app-filter-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--brand-magenta) 72%, transparent),
    color-mix(in srgb, var(--surface-2) 85%, transparent) 48%,
    color-mix(in srgb, var(--brand-violet) 70%, transparent)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.app-filter-panel > * {
  position: relative;
  z-index: 1;
}

.app-filter-panel__header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem 1rem 0.7rem;
}

.app-filter-panel__header:has(.app-filter-panel__quick-actions:not(:empty)) {
  grid-template-columns: auto minmax(260px, 1fr) auto;
}

.app-filter-panel__quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.25rem;
}

.app-filter-panel__quick-actions:empty {
  display: none;
}

.app-filter-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-weight: 800;
}

.app-filter-panel__title > i {
  color: var(--brand-magenta);
  font-size: 1.05rem;
}

.app-filter-panel__count {
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--brand-grad);
  font-size: 0.78rem;
  font-style: normal;
  white-space: nowrap;
}

.app-filter-panel__search {
  min-width: 0;
}

.app-filter-panel__search .input-group {
  width: 100%;
  min-height: 42px;
  padding: 0 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
  box-shadow: var(--shadow-soft);
}

.app-filter-panel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 30px;
  padding-top: 0.45rem;
}

.app-filter-panel__search .form-control,
.app-filter-panel__search .input-group-text,
.app-filter-panel__search .btn {
  min-height: 42px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.app-filter-panel__search .input-group-text {
  width: 32px;
  justify-content: center;
  padding: 0;
  color: var(--muted);
}

.app-filter-panel__search .form-control:focus {
  outline: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.app-filter-panel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 170px;
  border: 0 !important;
  color: color-mix(in srgb, var(--brand-magenta) 70%, var(--muted));
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.82rem;
  white-space: nowrap;
}

.app-filter-panel__toggle:hover,
.app-filter-panel__toggle:focus {
  color: color-mix(in srgb, var(--brand-magenta) 82%, #fff);
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
}

.app-filter-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 0.75rem;
}

.app-filter-panel__meta .app-filter-panel__chips {
  padding: 0;
}

.app-filter-panel__chips:empty {
  display: none;
}

.app-filter-chip,
.app-filter-chip-empty {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 8px;
  font-size: 0.74rem;
}

.app-filter-chip {
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  background: color-mix(in srgb, var(--surface-2) 58%, transparent);
  padding: 0.14rem 0.42rem 0.14rem 0.56rem;
  transition: border-color 160ms ease, transform 120ms ease, background 160ms ease;
}

.app-filter-chip:hover {
  border-color: color-mix(in srgb, var(--brand-magenta) 55%, var(--border));
  background: color-mix(in srgb, var(--brand-magenta) 10%, var(--surface-2));
}

.app-filter-chip:active {
  transform: scale(0.98);
}

.app-filter-chip i {
  font-size: 0.78rem;
  color: var(--muted);
}

.app-filter-chip-empty {
  color: var(--muted);
}

.app-filter-panel__body {
  border-top: 1px solid color-mix(in srgb, var(--brand-magenta) 26%, var(--border));
  padding: 0.9rem 1rem 1rem;
  animation: appFilterBodyIn 180ms ease;
}

.app-filter-panel__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 0.85rem;
}

.app-filter-field {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.app-filter-field__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-filter-field__control {
  min-width: 0;
}

.app-filter-field--compact {
  flex: 0 1 180px;
}

.app-filter-panel__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.app-filter-panel__secondary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-filter-panel__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.app-filter-toggle {
  border-radius: 8px !important;
}

.app-native-multi-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.app-multi-select {
  position: relative;
  min-width: 0;
}

.app-multi-select__button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
  padding: 0.45rem 0.72rem;
  text-align: left;
}

.app-multi-select__button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-multi-select__button:focus {
  outline: 0;
  box-shadow: none;
}

.app-multi-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 25;
  display: none;
  max-height: 280px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--brand-magenta) 34%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 98%, #000);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
}

.app-multi-select.is-open .app-multi-select__menu {
  display: grid;
  gap: 0.12rem;
}

.app-multi-select__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 34px;
  border-radius: 7px;
  padding: 0.36rem 0.45rem;
  color: var(--text);
  font-size: 0.86rem;
  cursor: pointer;
}

.app-multi-select__option:hover {
  background: color-mix(in srgb, var(--brand-magenta) 12%, transparent);
}

.app-multi-select__option input {
  flex: 0 0 auto;
}

.app-multi-select__choice {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  padding: 0.36rem 0.45rem;
  text-align: left;
  font-size: 0.86rem;
}

.app-multi-select__choice:hover,
.app-multi-select__choice.is-selected {
  background: color-mix(in srgb, var(--brand-magenta) 12%, transparent);
}

.app-multi-select__choice.is-selected {
  color: #fff;
}

.app-filter-icon-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.app-filter-icon-toggle:hover,
.app-filter-icon-toggle:focus {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 52%, transparent);
  outline: 0;
  box-shadow: none;
}

.app-filter-icon-toggle.is-active {
  color: #fff;
  background: var(--brand-grad);
}

@keyframes appFilterBodyIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199.98px) {
  .app-filter-panel__grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .app-filter-panel__header {
    grid-template-columns: 1fr;
  }

  .app-filter-panel__header:has(.app-filter-panel__quick-actions:not(:empty)) {
    grid-template-columns: auto 1fr;
  }

  .app-filter-panel__toggle {
    width: 100%;
    min-width: 0;
  }

  .app-filter-panel__header:has(.app-filter-panel__quick-actions:not(:empty)) .app-filter-panel__toggle {
    grid-column: 1 / -1;
    width: auto;
    justify-content: flex-start;
  }

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

  .app-filter-panel__actions {
    width: 100%;
    margin-left: 0;
  }

  .app-filter-panel__actions .btn,
  .app-filter-panel__secondary .btn {
    flex: 1 1 150px;
  }
}

.dashboard-view.d-none {
  display: none !important;
}

.dashboard-mode-switch {
  width: min(100%, 300px);
}

.dashboard-mode-switch.app-slider {
  padding: 0.25rem;
}

.dashboard-mode-switch.app-slider button {
  min-width: 0;
  padding-inline: 0.7rem;
  white-space: nowrap;
}

.dashboard-mode-switch.app-slider::before {
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.overview-range-switch {
  width: 142px;
}

.overview-range-switch button {
  min-height: 30px;
  min-width: 0;
  padding: 0;
  border-radius: var(--radius-pill);
}

.dashboard-overview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0.85rem;
}

.dashboard-kpi-card {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 68%, transparent), transparent),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.dashboard-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--kpi-accent, var(--brand-magenta));
}

.dashboard-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-kpi-top i {
  color: var(--kpi-accent, var(--brand-magenta));
  font-size: 1.1rem;
}

.dashboard-kpi-card strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--kpi-accent, var(--text));
  font-family: var(--display-font);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

.dashboard-kpi-card small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.dashboard-kpi-date {
  color: var(--text) !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

.dashboard-sparkline {
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  width: 46%;
  height: 34px;
  opacity: 0.78;
}

.dashboard-sparkline path {
  fill: none;
  stroke: var(--kpi-accent, var(--brand-magenta));
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kpi-accent-purple { --kpi-accent: #8b5cf6; }
.kpi-accent-green { --kpi-accent: #22c55e; }
.kpi-accent-blue { --kpi-accent: #2f80ed; }
.kpi-accent-pink { --kpi-accent: #e3008c; }
.kpi-accent-red { --kpi-accent: #ef4444; }
.kpi-accent-neutral { --kpi-accent: var(--muted); }

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.dashboard-panel {
  min-height: 280px;
}

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

.dashboard-var-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.dashboard-var-card .card-body {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
}

.dashboard-var-main,
.dashboard-var-side {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.dashboard-var-side {
  justify-content: flex-end;
}

.dashboard-var-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--var-tone);
  background: color-mix(in srgb, var(--var-tone) 12%, transparent);
}

.dashboard-var-card.var-tone-low { --var-tone: #198754; }
.dashboard-var-card.var-tone-medium { --var-tone: #b7791f; }
.dashboard-var-card.var-tone-high { --var-tone: #dc3545; }

.dashboard-var-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-var-copy strong {
  display: block;
  color: var(--var-tone);
  font-family: var(--display-font);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.05;
}

.dashboard-var-sites {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.dashboard-var-site {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .35rem .65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.dashboard-var-site em {
  color: var(--var-tone);
  font-style: normal;
  font-weight: 800;
}

.dashboard-var-site small {
  color: var(--muted);
}

.dashboard-var-details {
  grid-column: 1 / -1;
  display: grid;
  gap: .5rem;
}

.dashboard-var-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .8rem;
  align-items: center;
  padding: .6rem 0;
  border-top: 1px solid var(--border);
}

.dashboard-var-product-main {
  min-width: 0;
}

.dashboard-var-product-main strong,
.dashboard-var-product-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-var-product-main span,
.dashboard-var-product-metrics small {
  color: var(--muted);
  font-size: .8rem;
}

.dashboard-var-product-metrics {
  text-align: right;
}

.dashboard-var-product-metrics span {
  color: var(--var-tone);
  font-weight: 800;
}

.overview-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.35rem;
  border-radius: 999px;
}

.legend-dot-market { background: #8b5cf6; }
.legend-dot-min { background: #22c55e; }
.legend-dot-msrp { background: #64748b; }

.overview-line-chart {
  min-height: 260px;
}

.overview-line-chart svg {
  width: 100%;
  height: 260px;
  display: block;
}

.overview-grid-line {
  stroke: var(--border);
  stroke-width: 1;
}

.overview-axis-label {
  fill: var(--muted);
  font-size: 11px;
}

.overview-area {
  fill: url(#marketFill);
}

.overview-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-line-market { stroke: #8b5cf6; }
.overview-line-min { stroke: #22c55e; }
.overview-line-msrp {
  stroke: #64748b;
  stroke-width: 2;
  stroke-dasharray: 7 7;
}

.overview-point-market { fill: #8b5cf6; }
.overview-point-min { fill: #22c55e; }

.overview-status-wrap {
  display: grid;
  grid-template-columns: 238px minmax(126px, max-content);
  gap: 1rem;
  align-items: center;
  justify-content: center;
  min-height: 238px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.overview-donut {
  width: 232px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  justify-self: center;
}

.overview-donut::before {
  content: "";
  position: absolute;
}

.overview-donut span {
  width: 140px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--display-font);
  font-size: 2.3rem;
  line-height: 1;
}

.overview-donut small {
  display: block;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.8rem;
  text-transform: none;
}

.overview-msrp-neutral {
  color: var(--text);
  font-weight: 700;
}

.overview-status-list,
.overview-alert-list,
.overview-site-ranking {
  display: grid;
  gap: 0.75rem;
}

.overview-status-row,
.overview-site-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.overview-status-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 38px 42px;
  align-items: center;
  gap: 0.55rem;
}

.overview-status-row span,
.overview-alert div,
.overview-site-rank div {
  min-width: 0;
}

.overview-status-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  justify-self: start;
}

.overview-status-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.overview-status-row strong,
.overview-status-row small {
  justify-self: start;
  text-align: left;
}

.overview-status-row small {
  color: var(--muted);
  font-weight: 500;
}

.overview-alert {
  width: 100%;
  padding: 0.72rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 120ms ease;
}

.overview-alert:hover,
.overview-alert.is-active {
  background: color-mix(in srgb, var(--alert-color, var(--brand-magenta)) 9%, transparent);
}

.overview-alert:active {
  transform: scale(0.99);
}

.overview-alert:last-child {
  border-bottom: 0;
}

.overview-alert > i {
  width: 32px;
  justify-self: center;
  color: var(--alert-color, var(--brand-magenta));
  font-size: 1.45rem;
}

.overview-alert strong,
.overview-alert span {
  display: block;
}

.overview-alert span {
  color: var(--muted);
  font-size: 0.78rem;
}

.overview-alert em {
  min-width: 28px;
  justify-self: center;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--alert-color, var(--brand-magenta));
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.overview-alert-pink { --alert-color: #e3008c; }
.overview-alert-orange { --alert-color: #f59e0b; }
.overview-alert-red { --alert-color: #ef4444; }
.overview-alert-blue { --alert-color: #2f80ed; }

.overview-watch-table td,
.overview-watch-table th {
  vertical-align: middle;
}

.overview-watch-table {
  min-width: 940px;
}

.overview-watch-trend {
  width: 104px;
  min-height: 32px;
  display: grid;
  align-items: center;
}

.overview-product-sparkline {
  width: 96px;
  height: 28px;
  display: block;
}

.overview-watch-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.overview-watch-pages {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.overview-watch-pages span {
  min-width: 86px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.overview-watch-pages button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--surface);
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease;
}

.overview-watch-pages button:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--brand-magenta) 55%, var(--border));
  background: color-mix(in srgb, var(--brand-magenta) 10%, var(--surface));
}

.overview-watch-pages button:not(:disabled):active {
  transform: scale(0.96);
}

.overview-watch-pages button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.overview-product-sparkline path {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, .28));
}

.overview-product-sparkline-up path {
  stroke: #ef4444;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, .26));
}

.overview-product-sparkline-down path {
  stroke: #22c55e;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, .24));
}

.overview-alert-pill {
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.overview-alert-pill.danger {
  color: #fecaca;
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .35);
}

.overview-alert-pill.warn {
  color: #fed7aa;
  background: rgba(245, 158, 11, .14);
  border: 1px solid rgba(245, 158, 11, .35);
}

.overview-alert-pill.ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .35);
}

.overview-site-rank {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 46px;
  gap: 0.65rem;
  align-items: center;
}

.rank-index {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-grad);
  font-size: 0.75rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.overview-rank-bar {
  height: 9px;
  margin-top: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--border));
}

.overview-rank-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.overview-site-rank em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  justify-self: end;
}

.overview-site-rank-main {
  min-width: 0;
}

.overview-site-rank-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.overview-site-rank-head small {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .dashboard-overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }
}

@media (max-width: 992px) {
  .dashboard-kpi-grid,
  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-var-card .card-body,
  .dashboard-var-product {
    grid-template-columns: 1fr;
  }

  .dashboard-var-side {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dashboard-var-product-metrics {
    text-align: left;
  }

  .dashboard-panel-wide {
    grid-column: auto;
  }

  .overview-status-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 576px) {
  .dashboard-mode-switch {
    width: 100%;
  }

  .dashboard-var-sites {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-var-site {
    grid-template-columns: 1fr auto;
  }

  .dashboard-var-site small {
    grid-column: 1 / -1;
  }

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

  .dashboard-kpi-card {
    min-height: 118px;
    padding: 0.85rem;
  }

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

.stores-signal .signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
  transition: transform 0.1s ease;
}

.stores-signal .signal-chip:hover,
.stores-signal .signal-chip.active {
  transform: translateY(-1px);
}

.stores-signal .signal-chip.active {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.stores-signal .signal-chip[data-tone="warn"] {
  color: var(--bs-warning-text-emphasis);
  border-color: var(--bs-warning-border-subtle);
  background: var(--bs-warning-bg-subtle);
}

.stores-signal .signal-chip[data-tone="down"] {
  color: var(--bs-danger-text-emphasis);
  border-color: var(--bs-danger-border-subtle);
  background: var(--bs-danger-bg-subtle);
}

.stores-signal .signal-chip[data-tone="up"] {
  color: var(--bs-success-text-emphasis);
  border-color: var(--bs-success-border-subtle);
  background: var(--bs-success-bg-subtle);
}

.stores-signal .signal-chip[data-tone="info"] {
  color: var(--bs-secondary-text-emphasis);
}

.stores-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.app-slider,
.stores-slider {
  position: relative;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-2) 90%, var(--border));
  isolation: isolate;
  overflow: hidden;
}

.app-slider::before,
.stores-slider::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0.2rem;
  width: calc((100% - 0.4rem) / var(--segment-count, 2));
  border-radius: var(--radius-pill);
  background: var(--brand-grad);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transform: translateX(calc(var(--active-index, 0) * 100%));
  transition: transform 180ms ease;
}

.app-slider button,
.stores-slider button {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: color 180ms ease, transform 120ms ease;
}

.app-slider button.active,
.stores-slider button.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.app-slider button:active,
.stores-slider button:active {
  transform: scale(0.98);
}

.stores-mode-switch {
  width: min(100%, 292px);
}

.stores-analysis-switch {
  width: min(100%, 390px);
}

.heatmap-scroll {
  overflow: auto;
  max-height: 70vh;
}

.heatmap-grid {
  display: grid;
  gap: 2px;
  min-width: max-content;
  padding: 1rem;
  background: var(--bs-border-color);
  border-radius: var(--radius-card);
}

.heatmap-cell {
  position: relative;
  min-height: 56px;
  padding: 0.35rem 0.5rem;
  background: var(--bs-card-bg);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.8rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.heatmap-cell:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
}

.heatmap-cell:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: -2px;
  z-index: 2;
  position: relative;
}

.heatmap-cell:focus:not(:focus-visible) {
  outline: none;
}

[data-theme="dark"] .heatmap-cell:focus-visible {
  outline-color: var(--bs-info);
}

.heatmap-cell[data-signal-match="true"] {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.heatmap-cell[data-heat="empty"] {
  background: color-mix(in srgb, var(--bs-border-color) 40%, transparent);
  cursor: default;
}

.heatmap-cell[data-heat="critical"] {
  background: #fee2e2;
  color: #991b1b;
}

.heatmap-cell[data-heat="low"] {
  background: #ffedd5;
  color: #9a3412;
}

.heatmap-cell[data-heat="mid"] {
  background: #fef3c7;
  color: #854d0e;
}

.heatmap-cell[data-heat="high"] {
  background: #dcfce7;
  color: #166534;
}

[data-theme="dark"] .heatmap-cell[data-heat="critical"] {
  background: #7f1d1d;
  color: #fecaca;
}

[data-theme="dark"] .heatmap-cell[data-heat="low"] {
  background: #7c2d12;
  color: #fed7aa;
}

[data-theme="dark"] .heatmap-cell[data-heat="mid"] {
  background: #78350f;
  color: #fde68a;
}

[data-theme="dark"] .heatmap-cell[data-heat="high"] {
  background: #14532d;
  color: #bbf7d0;
}

.heatmap-cell__count {
  font-weight: 800;
  font-size: 1rem;
}

.heatmap-cell__trend {
  width: 100%;
  height: 14px;
  opacity: 0.7;
}

.heatmap-cell__delta {
  font-size: 0.7rem;
}

.heatmap-header-row {
  display: contents;
}

.heatmap-header-cell,
.heatmap-row-label {
  position: sticky;
  background: var(--bs-card-bg);
  z-index: 3;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.heatmap-header-cell {
  top: 0;
  text-align: center;
}

.heatmap-row-label {
  left: 0;
}

.store-report-kpi {
  border-left: 4px solid var(--bs-border-color) !important;
}

.store-report-kpi[data-tone="danger"] {
  border-left-color: var(--bs-danger) !important;
}

.store-report-kpi[data-tone="warning"] {
  border-left-color: var(--bs-warning) !important;
}

.store-report-kpi[data-tone="info"] {
  border-left-color: var(--bs-info) !important;
}

.store-report-kpi [data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--bs-primary);
}

.store-report-table th,
.store-report-table td {
  vertical-align: middle;
}

.store-report-table td {
  max-width: 28rem;
}

.store-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.store-report-action-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.store-report-action-btn [data-lucide] {
  width: 1rem;
  height: 1rem;
}

.store-action-stack {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-grid;
  place-items: center;
}

.store-action-stack [data-lucide="plus"] {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  width: 0.72rem;
  height: 0.72rem;
  stroke-width: 3;
}

.dismiss-reason-grid {
  display: grid;
  gap: 0.75rem;
}

.dismiss-reason-grid .btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

.dismiss-reason-grid [data-lucide] {
  width: 1rem;
  height: 1rem;
}

.geo-placeholder__map {
  width: 200px;
  flex-shrink: 0;
  opacity: 0.3;
}

.geo-placeholder__map svg {
  width: 100%;
  height: auto;
}

.geo-map {
  height: var(--geo-map-height, clamp(560px, calc(100vh - 230px), 900px));
  width: 100%;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bs-primary) 10%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--bs-primary)), var(--surface-2));
}

.geo-map .leaflet-container,
.geo-map.leaflet-container {
  background: transparent;
  color: var(--bs-body-color);
  font-family: inherit;
}

.geo-map .leaflet-control-zoom a,
.geo-map .leaflet-control-attribution {
  background: var(--surface);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

.geo-search {
  position: relative;
  min-width: min(420px, 100%);
  flex: 0 1 460px;
}

.geo-site-select {
  width: 190px;
}

.geo-fit-france {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 460;
  border-color: var(--bs-border-color);
  box-shadow: var(--shadow-soft);
}

.geo-reset-view {
  position: absolute;
  top: 3.45rem;
  right: .75rem;
  z-index: 460;
  border-color: var(--bs-border-color);
  box-shadow: var(--shadow-soft);
}

.geo-search__results,
.dashboard-search-suggest,
.history-product-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--surface);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.geo-search__item,
.dashboard-search-suggest__item,
.history-product-suggest__item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--bs-body-color);
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .55rem .75rem;
  text-align: left;
}

.geo-search__item:hover,
.geo-search__item.active,
.dashboard-search-suggest__item:hover,
.dashboard-search-suggest__item.active,
.history-product-suggest__item:hover,
.history-product-suggest__item.active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-orange) 12%, transparent), color-mix(in srgb, var(--brand-magenta) 9%, transparent));
  color: var(--bs-body-color);
}

.geo-search__item.is-empty {
  color: var(--bs-secondary-color);
}

.geo-search__name,
.dashboard-search-suggest__name,
.history-product-suggest__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-search__meta,
.dashboard-search-suggest__meta,
.history-product-suggest__meta {
  color: var(--bs-secondary-color);
  font-size: .75rem;
}

.dashboard-search-wrap {
  position: relative;
}

.dashboard-page .dashboard-search-wrap .input-group {
  min-height: 38px;
  padding: 0 .35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.dashboard-page .dashboard-search-wrap .input-group-text,
.dashboard-page .dashboard-search-wrap .form-control,
.dashboard-page .dashboard-search-wrap .dashboard-search-clear {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page .dashboard-search-wrap .input-group-text {
  width: 32px;
  justify-content: center;
  padding: 0;
  color: var(--muted);
}

.dashboard-search-clear[hidden] {
  display: none;
}

.dashboard-page .dashboard-filter-bar .dashboard-search-clear {
  flex: 0 0 auto;
  width: auto;
  min-width: auto;
  border-radius: 8px !important;
}

.matrix-search-cell {
  text-align: center;
  vertical-align: middle;
}

.matrix-search-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.matrix-mobile-detail-toggle {
  display: none;
}

.matrix-site-mobile-name {
  display: none;
}

.matrix-mobile-msrp {
  display: none;
}

.matrix-product-visual-cell {
  display: none;
}

.matrix-product-inline-visual {
  display: none;
}

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

.matrix-price-seen {
  display: none;
}

.url-search-site-links--targeted .site-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  max-width: 360px;
}

.analytics-health-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.analytics-health-grid > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: none;
}

.site-health-table-wrap {
  overflow-x: auto;
}

#siteHealthTable {
  min-width: 980px;
}

.analytics-coverage-col {
  min-width: 0;
}

.coverage-card {
  position: relative;
}

.coverage-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  left: .45rem;
  width: 32px;
  height: 32px;
  z-index: 3;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.coverage-toggle svg {
  width: 17px;
  height: 17px;
  transition: transform .18s ease;
}

@media (max-width: 1320px) {
  .analytics-health-grid {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .analytics-coverage-col {
    min-height: 1px;
  }

  .coverage-card {
    --coverage-width: min(340px, calc(100vw - 2rem));
    position: fixed !important;
    top: 6rem !important;
    right: calc((var(--coverage-width) - 44px) * -1);
    width: var(--coverage-width);
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    transition: right .22s ease, box-shadow .22s ease;
    z-index: 10;
  }

  .coverage-card.is-open {
    right: 1rem;
    box-shadow: var(--shadow-soft) !important;
  }

  .coverage-toggle {
    display: inline-flex;
  }

  .coverage-card.is-open .coverage-toggle svg {
    transform: rotate(180deg);
  }

  .coverage-card .card-header,
  .coverage-card .coverage-content {
    padding-left: 3.25rem;
  }
}

.geo-map__empty,
.geo-map__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: color-mix(in srgb, var(--bs-body-bg) 80%, transparent);
  color: var(--bs-secondary);
  font-size: .9rem;
  pointer-events: none;
  z-index: 450;
}

.geo-side-panel {
  border-left: 1px solid var(--bs-border-color);
  max-height: var(--geo-map-height, clamp(560px, calc(100vh - 230px), 900px));
  display: flex;
  flex-direction: column;
}

.geo-side-panel__header {
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.geo-product-stock {
  border-bottom: 1px solid var(--bs-border-color);
  padding: .75rem 0 .5rem;
}

.geo-product-stock__title {
  padding: 0 1rem;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.geo-product-stock #geoProductStockMeta {
  padding: 0 1rem .35rem;
}

.geo-product-stock__list {
  max-height: 150px;
  overflow-y: auto;
}

.geo-product-stock__item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--bs-body-color);
  display: block;
  padding: .45rem 1rem;
  text-align: left;
}

.geo-product-stock__item:hover,
.geo-product-stock__item.active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-orange) 14%, transparent), color-mix(in srgb, var(--brand-magenta) 10%, transparent));
  color: var(--bs-body-color);
}

.geo-product-stock__name,
.geo-product-stock__line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-product-stock__name {
  font-weight: 700;
  font-size: .85rem;
}

.geo-product-stock__line {
  color: var(--bs-secondary-color);
  font-size: .75rem;
}

.geo-legend {
  padding: .5rem 1rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .75rem;
}

.geo-shop-toolbar {
  padding: .5rem 1rem .75rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.geo-shop-toolbar .form-select {
  min-width: 230px;
  max-width: 260px;
  margin-left: auto;
}

.geo-legend__swatch {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.geo-legend__swatch::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
}

.geo-shop-list {
  overflow-y: auto;
  flex: 1;
}

.geo-shop-item {
  cursor: pointer;
}

.geo-shop-item:hover,
.geo-shop-item.active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-orange) 12%, transparent), color-mix(in srgb, var(--brand-magenta) 9%, transparent));
  color: var(--bs-body-color);
  border-color: color-mix(in srgb, var(--brand-magenta) 24%, var(--bs-border-color));
}

.geo-shop-item.active .text-muted,
.geo-shop-item:hover .text-muted {
  color: var(--bs-secondary-color) !important;
}

.geo-shop-price {
  white-space: nowrap;
}

.geo-site-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: .08rem .42rem;
  margin: .2rem 0 .12rem;
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  background: var(--geo-marker-color, #64748b);
}

.geo-site-pill.site-carrefour {
  --geo-marker-color: #0ea5e9;
}

.geo-site-pill.site-leclerc {
  --geo-marker-color: #2563eb;
}

.geo-site-pill.site-micromania {
  --geo-marker-color: #e3008c;
}

.geo-site-pill.site-fnac {
  --geo-marker-color: #f59e0b;
}

.geo-site-pill.site-cultura {
  --geo-marker-color: #22c55e;
}

.geo-site-pill.site-boulanger {
  --geo-marker-color: #ef4444;
}

.geo-site-pill.site-other {
  --geo-marker-color: #64748b;
}

.geo-shop-products {
  margin-top: .65rem;
  border-top: 1px solid var(--bs-border-color);
  padding-top: .55rem;
  color: var(--bs-body-color);
}

.geo-shop-product {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .78rem;
  padding: .18rem 0;
}

.geo-shop-product__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bs-body-color);
}

.geo-shop-product__price {
  color: var(--bs-emphasis-color);
  font-weight: 700;
  white-space: nowrap;
}

.geo-shop-products__more {
  border: 0;
  background: transparent;
  color: var(--brand-magenta);
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem 0 0;
}

.geo-shop-products__more:hover {
  color: var(--brand-violet);
  text-decoration: underline;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: color-mix(in srgb, var(--bs-body-bg) 82%, #6b7280);
  color: var(--bs-body-color);
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 70%, transparent);
  box-shadow: var(--shadow-soft);
}

.leaflet-popup-content {
  margin: .75rem .9rem;
}

.geo-popup {
  min-width: 150px;
}

.geo-popup .fw-semibold {
  color: var(--bs-emphasis-color);
}

.geo-filter-row {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}

.geo-store-marker {
  pointer-events: auto;
}

.geo-store-marker span {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--geo-marker-color, var(--brand-grad));
  box-shadow: 0 2px 7px rgba(0, 0, 0, .38);
  transition: transform .16s ease, box-shadow .16s ease, border-width .16s ease, opacity .16s ease, filter .16s ease;
}

.geo-store-marker.site-carrefour span {
  --geo-marker-color: #0ea5e9;
}

.geo-store-marker.site-leclerc span {
  --geo-marker-color: #2563eb;
}

.geo-store-marker.site-micromania span {
  --geo-marker-color: #e3008c;
}

.geo-store-marker.site-fnac span {
  --geo-marker-color: #f59e0b;
}

.geo-store-marker.site-cultura span {
  --geo-marker-color: #22c55e;
}

.geo-store-marker.site-boulanger span {
  --geo-marker-color: #ef4444;
}

.geo-store-marker.site-other span {
  --geo-marker-color: #64748b;
}

.geo-store-marker.active span {
  border-width: 1px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .48), 0 0 0 4px color-mix(in srgb, var(--brand-magenta) 22%, transparent);
  transform: scale(1.22);
}

.geo-store-marker.dimmed span {
  opacity: .32;
  filter: grayscale(.75) saturate(.45);
  box-shadow: none;
}

.geo-attention-arrow {
  pointer-events: none;
}

.geo-attention-arrow span {
  display: block;
  position: relative;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45));
  transform-origin: 50% 50%;
  animation: geo-attention-nudge .85s ease-in-out infinite;
}

.geo-attention-arrow span::before,
.geo-attention-arrow span::after {
  content: '';
  position: absolute;
  clip-path: polygon(50% 100%, 2% 0, 98% 0);
}

.geo-attention-arrow span::before {
  inset: 0;
  background: #fff;
}

.geo-attention-arrow span::after {
  inset: 3px;
  background: var(--brand-grad);
}

[data-theme="dark"] .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg);
}

[data-theme="dark"] .leaflet-container {
  background: #111827;
}

[data-theme="dark"] .geo-map__empty,
[data-theme="dark"] .geo-map__loading {
  background: color-mix(in srgb, var(--bs-body-bg) 70%, transparent);
}

@keyframes geo-attention-nudge {
  0%,
  100% {
    transform: translate(-3px, -3px) rotate(-45deg);
  }

  50% {
    transform: translate(2px, 2px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .stores-page .app-page-hero > .d-flex {
    width: 100%;
    flex-wrap: wrap;
  }

  .stores-toolbar__controls {
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  .stores-toolbar__controls .form-select,
  .stores-toolbar__controls .input-group,
  .stores-toolbar__controls .geo-search {
    width: 100% !important;
    max-width: none;
  }

  .stores-rarity-card {
    position: static !important;
  }
}

@media (max-width: 992px) {
  .geo-map {
    height: 65vh;
  }

  .geo-side-panel {
    border-left: 0;
    border-top: 1px solid var(--bs-border-color);
    max-height: none;
  }
}

.dashboard-stat-strip .card::before {
  background: var(--brand-magenta);
}

.dashboard-stat-strip > :nth-child(2) .card::before {
  background: var(--brand-violet);
}

.dashboard-stat-strip > :nth-child(3) .card::before {
  background: var(--brand-orange);
}

.dashboard-stat-strip > :nth-child(4) .card::before {
  background: var(--success);
}

.dashboard-stat-strip > :nth-child(5) .card::before {
  background: var(--muted);
}

.drop-threshold-input {
  width: 76px;
}

.price-drop-glow {
  color: var(--brand-magenta) !important;
  text-shadow: 0 0 14px color-mix(in srgb, var(--brand-magenta) 42%, transparent);
}

.drop-radar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.drop-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.drop-card h5,
.cockpit-detail h4,
.cockpit-detail h5 {
  margin: 0;
}

.drop-percent {
  flex: 0 0 auto;
  color: transparent;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Anton, Inter, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.drop-card-prices,
.cockpit-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.drop-card-prices > div,
.cockpit-kpis > div {
  padding: 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.drop-card-prices span,
.cockpit-kpis span,
.cockpit-best span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.drop-timeline,
.cockpit-ranking {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.drop-timeline li,
.cockpit-ranking li {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.drop-timeline li.is-first {
  color: var(--brand-magenta);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-magenta) 28%, transparent), 0 0 20px color-mix(in srgb, var(--brand-magenta) 18%, transparent);
}

.drop-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.drop-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-2);
}

.dashboard-empty i {
  color: var(--brand-magenta);
  font-size: 2rem;
}

.dashboard-cockpit {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: var(--space-3);
  min-height: calc(100vh - 250px);
}

.cockpit-list,
.cockpit-detail {
  min-height: 0;
}

.cockpit-list .card-body {
  overflow: auto;
}

.cockpit-product-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--text);
  background: transparent;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.cockpit-product-btn:hover,
.cockpit-product-btn.is-active {
  background: var(--surface-2);
  border-color: var(--border);
}

.cockpit-product-btn.is-active strong {
  color: var(--brand-magenta);
}

.cockpit-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.cockpit-best {
  min-width: 150px;
  padding: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.cockpit-best strong {
  color: var(--success);
  font-family: Anton, Inter, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.cockpit-split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.history-page {
  max-width: 1680px;
}

.campaigns-page,
.campaign-detail-page {
  max-width: 1720px;
}

.campaign-toolbar .card-body {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-magenta) 11%, transparent), transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), var(--surface));
}

.campaign-table td,
.campaign-table th {
  vertical-align: middle;
}

.campaign-health {
  min-width: 140px;
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.campaign-health .progress {
  height: 0.65rem;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.campaign-summary-health,
.campaign-notes-card {
  display: grid;
  gap: 0.55rem;
}

.campaign-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.campaign-stats-grid > div,
.campaign-notes-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-2);
}

.campaign-stats-grid span,
.campaign-notes-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.campaign-stats-grid strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
}

.campaign-stats-grid strong small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.campaign-target-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.campaign-site-group {
  border-bottom: 1px solid var(--border);
}

.campaign-site-group:last-child {
  border-bottom: 0;
}

.campaign-site-group__summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(110px, 0.65fr)) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.campaign-site-group__summary span,
.campaign-site-targets .text-muted {
  font-size: 0.78rem;
}

.campaign-site-targets {
  display: grid;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
}

.campaign-site-target {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.45fr) minmax(120px, 0.45fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.campaign-product-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-magenta) 16%, var(--surface-2)), var(--surface));
}

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

.campaign-autocomplete {
  position: absolute;
  inset: calc(100% + 0.35rem) 0 auto 0;
  z-index: 20;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-lg);
}

.campaign-target-pill {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-2);
}

@media (max-width: 992px) {
  .campaign-stats-grid {
    grid-template-columns: 1fr;
  }

  .campaign-target-view-toolbar,
  .campaign-site-group__summary,
  .campaign-site-target {
    grid-template-columns: 1fr;
  }

  .campaign-target-view-toolbar {
    align-items: stretch;
  }
}

.history-filter-bar {
  position: relative;
  z-index: 60;
  overflow: visible;
}

.history-filter-bar .card-body {
  overflow: visible;
}

.history-filter-panel .app-filter-panel__body {
  overflow: visible;
}

.history-filter-panel .app-filter-panel__search.history-product-search {
  max-width: none;
}

.history-filter-panel .history-controls {
  width: 100%;
  flex-wrap: wrap;
}

.history-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: thin;
}

.history-controls .form-select {
  min-width: 0;
  border-radius: var(--radius-pill) !important;
}

.history-product-search {
  position: relative;
  z-index: 20;
  min-width: 340px;
  max-width: 460px;
  flex: 1 1 420px;
}

.history-controls #historySiteFilter {
  width: 146px;
  flex: 0 0 146px;
}

.history-controls #historyZoom {
  width: 154px;
  flex: 0 0 154px;
}

.history-product-search .input-group {
  flex-wrap: nowrap;
}

.history-product-search .input-group-text {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.history-product-search .form-control {
  min-width: 0;
}

.history-product-search:not(.has-value) .form-control {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0 !important;
}

.history-product-search .history-product-clear {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  flex: 0 0 auto;
  min-width: auto;
  width: auto;
}

.history-product-search .history-product-clear[hidden] {
  display: none;
}

.history-controls .history-product-clear {
  flex: 0 0 auto;
  min-width: auto;
  width: auto;
}

.history-controls .app-segmented {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.history-controls .app-segmented button {
  white-space: nowrap;
}

.history-controls .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.history-layout,
.history-leaderboard-layout,
.history-timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: var(--space-3);
}

.history-section-title {
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  letter-spacing: 0.5px;
  line-height: 0.95;
  text-transform: uppercase;
}

.history-chart-frame {
  position: relative;
  width: 100%;
  height: clamp(280px, 36vh, 420px);
  min-height: 0;
}

.history-chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.history-timeline-chart {
  min-height: 0;
}

.history-side {
  min-width: 0;
}

.history-stat-stack {
  display: grid;
  gap: var(--space-3);
}

.history-site-stat {
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-left: 5px solid var(--site-color, var(--brand-magenta));
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.history-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.7rem 0;
}

.history-stat-grid > div {
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-2);
}

.history-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.pill-brand {
  color: #fff;
  background: var(--brand-grad);
}

.leaderboard-list,
.annotated-timeline {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.leaderboard-list li {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-2);
}

.leaderboard-row-toggle {
  min-height: 56px;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(128px, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
}

.leaderboard-row-toggle:hover strong,
.leaderboard-row-toggle:focus-visible strong {
  text-decoration: underline;
}

.leaderboard-list li.is-first {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-magenta) 28%, transparent), 0 0 18px color-mix(in srgb, var(--brand-magenta) 18%, transparent);
}

.leaderboard-list li.is-first .leaderboard-row-toggle > span:nth-child(2) strong,
.leaderboard-price.is-top-price strong {
  color: transparent;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Anton, Inter, sans-serif;
  font-size: 2rem;
  line-height: 0.95;
  text-shadow: 0 0 14px color-mix(in srgb, var(--brand-magenta) 28%, transparent);
}

.leaderboard-price {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  text-align: right;
}

.leaderboard-price strong {
  font-size: 1.08rem;
  line-height: 1.05;
}

.leaderboard-list .rank {
  font-family: var(--display-font);
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 1.4rem;
  background: var(--surface);
}

.leaderboard-list small {
  display: block;
  color: var(--muted);
}

.leaderboard-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}

.leaderboard-details > div {
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.leaderboard-details span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.leaderboard-details strong {
  display: block;
  overflow-wrap: anywhere;
}

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

.history-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.history-legend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  color: var(--legend-fg);
  background: var(--legend-bg);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--legend-bg) 72%, #000 28%);
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}

.history-legend-pill:hover,
.history-legend-pill:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.history-legend-pill.is-hidden {
  opacity: 0.38;
  filter: grayscale(0.55);
  text-decoration: line-through;
}

.history-legend-pill:disabled {
  cursor: default;
  opacity: 1;
  transform: none;
  filter: none;
}

.annotated-timeline {
  position: relative;
  gap: 0;
  padding-left: 1.25rem;
}

.annotated-timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.43rem;
  border-left: 1px dashed var(--border);
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem;
  border-bottom: 1px dashed var(--border);
  background: transparent;
}

.timeline-event::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: -1.06rem;
  top: 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--muted);
  box-shadow: 0 0 0 4px var(--surface);
}

.timeline-event.first-drop {
  color: var(--brand-magenta);
}

.timeline-event.first-drop::before {
  background: var(--brand-magenta);
}

.timeline-event.drop {
  color: var(--text);
}

.timeline-event.drop::before {
  background: var(--brand-orange);
}

.timeline-event time {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.timeline-event p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.history-table-scroll {
  max-height: 420px;
  overflow: auto;
}

.dashboard-page {
  max-width: none;
  width: 100%;
}

html[data-theme="light"] .dashboard-page {
  --dash-ink: #161616;
  --dash-paper: #fbf8f0;
  --dash-soft: #f0ece3;
  --dash-line: rgba(22,22,22,.92);
  color: var(--dash-ink);
}

html[data-theme="dark"] .dashboard-page {
  --dash-ink: #f3f0e8;
  --dash-paper: #17171d;
  --dash-soft: #202027;
  --dash-line: rgba(255,255,255,.22);
}

.dashboard-page .app-page-hero {
  color: var(--dash-ink);
  background: var(--dash-paper);
  border: 2px solid var(--dash-line);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--dash-line) 88%, transparent) !important;
}

.dashboard-page .app-page-hero h1,
.dashboard-page .app-page-hero p {
  color: var(--dash-ink);
}

.dashboard-page .app-page-hero h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.dashboard-page .app-page-hero p {
  color: color-mix(in srgb, var(--dash-ink) 68%, transparent);
}

.dashboard-page .card,
.dashboard-page .dropdown-menu {
  border: 2px solid var(--dash-line) !important;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--dash-line) 88%, transparent) !important;
}

.dashboard-page .card-header,
.dashboard-page .card-footer,
.dashboard-page .table-light {
  background: var(--dash-soft) !important;
}

.dashboard-page .row.g-3.mb-4 > [class*="col-"] > .card::before {
  width: 5px;
}

.dashboard-page .btn,
.dashboard-page .form-control,
.dashboard-page .form-select,
.dashboard-page .input-group-text {
  border-color: var(--dash-line) !important;
}

.dashboard-page .btn-outline-secondary,
.dashboard-page .btn-outline-danger,
.dashboard-page .btn-outline-warning,
.dashboard-page .btn-outline-light {
  background: var(--dash-paper);
}

.dashboard-page .search-url-btn,
.dashboard-page .open-url-search-btn,
.dashboard-page .scrape-product-btn,
.dashboard-page .copy-diagnostic-btn {
  min-width: 28px;
  min-height: 28px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-page .input-group-text {
  border-right: 0 !important;
  background: transparent !important;
}

.dashboard-page .input-group .form-control {
  border-left: 0 !important;
}

.dashboard-page .price-best {
  color: var(--brand-magenta) !important;
  background: transparent !important;
}

.dashboard-page .price-matrix td:nth-last-child(2) strong {
  color: var(--brand-magenta) !important;
}

.dashboard-page .price-normal {
  color: var(--dash-ink) !important;
  background: transparent !important;
}

.dashboard-page .price-drop-glow {
  color: var(--brand-magenta) !important;
  background: transparent !important;
  text-shadow: none;
}

.dashboard-page .price-matrix .price-best,
.dashboard-page .price-matrix .price-normal,
.dashboard-page .price-matrix .price-drop-glow {
  padding-inline: 0 !important;
}

html[data-site-logos="hide"] .dashboard-page .site-logo,
html[data-site-logos="hide"] .dashboard-page .price-matrix img,
html[data-site-logos="hide"] .dashboard-page .site-search-btn img {
  display: none !important;
}

/* Product unified modal */
.product-lookup-panel {
  padding: .75rem .9rem;
  border: 1px solid color-mix(in srgb, var(--brand-violet) 18%, var(--border));
  border-radius: .7rem;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.product-lookup-panel .input-group-text {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 92%, #fff);
  color: var(--muted);
}

.product-lookup-status {
  min-height: 1.15rem;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .78rem;
}

.product-lookup-preview {
  display: grid;
  gap: .85rem;
}

.product-lookup-preview__summary {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
}

.product-lookup-preview__image {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: var(--surface-2);
  color: var(--muted);
}

.product-lookup-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-lookup-preview dl {
  display: grid;
  grid-template-columns: minmax(7rem, .34fr) minmax(0, 1fr);
  gap: .35rem .75rem;
  margin: 0;
}

.product-lookup-preview dt {
  color: var(--muted);
  font-weight: 600;
}

.product-lookup-preview dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Site listings bulk editor */
.site-listings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

.site-listings-search {
  position: relative;
  flex: 1 1 22rem;
}

.site-listings-search svg {
  position: absolute;
  top: 50%;
  left: .75rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
}

.site-listings-search .form-control {
  padding-left: 2.2rem;
}

.site-listings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.site-listings-status {
  min-height: 1.25rem;
  margin-bottom: .55rem;
  font-size: .82rem;
}

.site-listings-table {
  border: 1px solid var(--border);
  border-radius: .5rem;
}

.site-listings-table table {
  min-width: 1040px;
}

.site-listings-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
}

.site-listings-table tr.is-dirty td:first-child {
  box-shadow: inset 3px 0 0 var(--brand-magenta);
}

.site-listings-product {
  min-width: 14rem;
}

.site-listings-table th:nth-child(4),
.site-listings-table td:nth-child(4) {
  min-width: 12rem;
}

.site-listings-status-select {
  min-width: 11rem;
}

.site-listings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
}

.product-form-progress {
  display: grid;
  gap: .45rem;
  padding: .75rem .9rem;
  border: 1px solid color-mix(in srgb, var(--brand-teal) 24%, var(--border));
  border-radius: .7rem;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

.product-form-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--text);
  font-size: .82rem;
}

.product-form-progress__header span,
.product-form-progress p {
  color: var(--muted);
}

.product-form-progress__bar {
  height: .45rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, #fff);
}

.product-form-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-magenta));
  transition: width .18s ease;
}

.product-msrp-currency-select {
  max-width: 6rem;
}

.product-modal-dialog .modal-content {
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

.product-modal-dialog .modal-header,
.product-modal-dialog .modal-footer {
  position: sticky;
  z-index: 5;
  background: var(--surface);
}

.product-modal-dialog .modal-header {
  top: 0;
}

.product-modal-dialog .modal-footer {
  bottom: 0;
  border-top: 1px solid var(--border);
}

.product-modal-dialog .modal-body {
  overflow: auto;
}

#modalProduct .product-segmented-tabs {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: .35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: .32rem;
  border-radius: 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

#modalProduct .product-segmented-tabs::-webkit-scrollbar {
  display: none;
}

#modalProduct .product-segmented-tabs .nav-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

#modalProduct .product-segmented-tabs .nav-link {
  position: relative;
  min-height: 38px;
  overflow: hidden;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, filter .18s ease;
}

#modalProduct .product-segmented-tabs .nav-link:not(.active) {
  color: #1f2937;
  font-weight: 800;
}

#modalProduct .product-segmented-tabs .nav-link.active {
  animation: product-tab-pop .24s ease;
}

#modalProduct .product-segmented-tabs .nav-link.is-click-animating {
  animation: product-tab-click .36s ease;
}

#modalProduct .product-segmented-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .26), transparent);
  transform: translateX(-120%);
  animation: product-tab-shine .58s ease;
  pointer-events: none;
}

#modalProduct .product-segmented-tabs .tab-label-short {
  display: none;
}

@keyframes product-tab-pop {
  0% { filter: brightness(.96); }
  65% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

@keyframes product-tab-click {
  0% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 0 0 rgba(31, 111, 74, .2); filter: brightness(.98); }
  55% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 0 5px rgba(31, 111, 74, .16); filter: brightness(1.08); }
  100% { box-shadow: inset 0 0 0 1px transparent, 0 0 0 0 rgba(31, 111, 74, 0); filter: brightness(1); }
}

@keyframes product-tab-shine {
  to { transform: translateX(120%); }
}

.product-url-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.product-url-table {
  margin-bottom: 0;
  table-layout: fixed;
}

.product-url-table th,
.product-url-table td {
  vertical-align: middle;
}

.product-url-table th {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.product-url-table__site {
  width: 8rem;
}

.product-url-table__url {
  width: min(38vw, 28rem);
}

.product-url-table__price {
  width: 7rem;
}

.product-url-table__availability {
  width: 6.5rem;
}

.product-url-table__enabled {
  width: 4rem;
}

.product-url-table__actions {
  width: 9.5rem;
}

.product-url-table .input-group {
  min-width: 0;
}

.product-url-table .js-url-value {
  min-width: 0;
  font-family: var(--bs-font-monospace);
  font-size: .78rem;
}

.product-url-table .product-url-actions {
  flex-wrap: nowrap;
}

.product-url-table .product-url-icon-btn,
.product-url-table .product-url-actions .btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
}

.product-url-list {
  display: grid;
  gap: .7rem;
}

.product-url-item {
  display: grid;
  gap: .62rem;
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.product-url-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.product-url-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  margin-top: .16rem;
  color: var(--muted);
  font-size: .78rem;
}

.product-url-item__url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: .45rem;
  align-items: center;
}

.product-url-item__url .form-control {
  min-width: 0;
  font-family: var(--bs-font-monospace);
  font-size: .78rem;
}

.product-url-icon-btn,
.product-url-actions .btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.product-url-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .42rem;
}

/* Product creation wizard */
.product-modal--wizard .modal-dialog {
  max-width: min(1180px, calc(100vw - 2rem));
}

.product-modal--wizard .modal-content {
  max-height: calc(100vh - 1.5rem);
}

.product-modal--wizard .modal-body {
  overflow: auto;
  padding: 1rem 1.25rem;
}

.product-modal--wizard .modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--surface) 92%, #08080d);
  border-top: 1px solid color-mix(in srgb, var(--brand-magenta) 16%, var(--border));
}

.product-create-wizard {
  color: var(--text);
}

.product-wizard-top {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(28rem, auto);
  gap: 1rem;
  align-items: start;
  margin-bottom: .85rem;
  padding: .85rem .95rem;
  border: 1px solid color-mix(in srgb, var(--brand-violet) 16%, var(--border));
  border-radius: .75rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-magenta) 8%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface) 92%, #08080d);
}

.product-wizard-top h5 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.product-wizard-top p,
.product-wizard-muted,
.product-wizard-help {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.35;
}

.product-wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

.product-wizard-step {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-wizard-step span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.product-wizard-step.is-active span,
.product-wizard-step.is-complete span {
  color: #fff;
  border-color: transparent;
  background: var(--brand-grad);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-magenta) 28%, transparent);
}

.product-wizard-step.is-active strong,
.product-wizard-step.is-complete strong {
  color: var(--text);
}

.product-wizard-step-line {
  width: 3rem;
  height: 1px;
  background: var(--border);
}

.product-wizard-alert {
  margin-bottom: .85rem;
  padding: .7rem .85rem;
  border-radius: .65rem;
  border: 1px solid color-mix(in srgb, var(--brand-magenta) 24%, var(--border));
  background: color-mix(in srgb, var(--brand-violet) 14%, var(--surface-2));
  color: var(--text);
  font-size: .82rem;
}

.product-wizard-alert.is-danger {
  border-color: color-mix(in srgb, #ef4444 52%, var(--border));
  color: #fecdd3;
}

.product-wizard-alert.is-success {
  border-color: color-mix(in srgb, #22c55e 45%, var(--border));
  color: #bbf7d0;
}

.product-wizard-grid--info {
  display: grid;
  grid-template-columns: minmax(15.5rem, .8fr) minmax(24rem, 1.35fr) minmax(17.5rem, .9fr);
  gap: .75rem;
  align-items: stretch;
}

.product-wizard-card {
  min-width: 0;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand-magenta) 5%, transparent), transparent 45%),
    var(--surface);
  box-shadow: 0 12px 28px color-mix(in srgb, #000 22%, transparent);
}

.product-wizard-card h6 {
  margin: 0 0 .8rem;
  font-size: .9rem;
}

.product-wizard-card .form-label {
  margin-bottom: .3rem;
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
}

.product-wizard-card .form-control,
.product-wizard-card .form-select,
.product-reference-manager .form-control {
  min-height: 2.35rem;
  font-size: .86rem;
}

.product-wizard-two,
.product-wizard-three {
  display: grid;
  gap: .75rem;
}

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

.product-wizard-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: .75rem;
}

.product-wizard-two--price {
  grid-template-columns: minmax(0, 1fr) minmax(7rem, .65fr);
}

.product-wizard-field {
  min-width: 0;
}

.product-wizard-required,
.product-field-error {
  color: #fb7185;
}

.product-field-error {
  display: block;
  min-height: 1.05rem;
  margin-top: .25rem;
  font-size: .74rem;
}

.product-wizard-line-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  min-height: 1.2rem;
  color: var(--muted);
  font-size: .72rem;
}

.product-image-uploader {
  display: grid;
  gap: .75rem;
  margin-bottom: .85rem;
  padding: .8rem;
  border: 1px solid color-mix(in srgb, var(--brand-violet) 36%, var(--border));
  border-radius: .9rem;
  background:
    radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--brand-pink) 16%, transparent), transparent 38%),
    color-mix(in srgb, var(--surface-2) 78%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.product-image-uploader--edit {
  margin-bottom: 0;
}

.product-image-uploader--compact {
  grid-template-columns: 6.25rem minmax(0, 1fr);
  align-items: stretch;
  text-align: left;
}

.product-image-main {
  display: grid;
  gap: .55rem;
  min-width: 0;
}

.product-image-title {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  align-items: baseline;
  justify-content: space-between;
}

.product-image-title span {
  color: var(--text);
  font-size: .92rem;
  font-weight: 800;
}

.product-image-title small,
.product-image-options,
.product-image-url-row i {
  color: var(--muted);
  font-size: .74rem;
}

.product-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.product-image-action {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: .35rem;
  padding: .35rem .6rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: .65rem;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.product-image-action:hover,
.product-image-action:focus-visible {
  border-color: color-mix(in srgb, var(--brand-pink) 58%, var(--border));
  background: color-mix(in srgb, var(--brand-violet) 14%, var(--surface));
  color: #fff;
  transform: translateY(-1px);
}

.product-image-action--danger {
  color: var(--danger, #ff6b7a);
}

.product-image-url-row {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: .75rem;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  overflow: hidden;
}

.product-image-url-row i {
  justify-self: center;
}

.product-image-url-row .form-control {
  min-height: 2.25rem;
  border: 0;
  background: transparent;
  font-size: .82rem;
}

.product-image-options {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  align-items: center;
}

.product-image-preview,
.product-summary-image {
  display: grid;
  place-items: center;
  width: 6.25rem;
  height: 6.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: .8rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)),
    #101016;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.6rem;
}

.product-image-preview img,
.product-summary-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-summary-image {
  width: 9.5rem;
  height: 7.25rem;
  cursor: default;
}

.product-image-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: .65rem;
}

.product-image-candidates--edit {
  margin-top: .65rem;
}

.product-image-candidates--rail {
  display: flex;
  gap: .55rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: .1rem .1rem .35rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.product-image-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  align-items: center;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.25;
}

.product-image-meta span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .25rem;
  padding: .25rem .45rem;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: .55rem;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.product-image-meta__source {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-library-panel {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}

.asset-library-header,
.asset-library-actions,
.asset-library-summary,
.site-asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.asset-library-header {
  justify-content: space-between;
  margin-bottom: .75rem;
}

.asset-library-panel.is-collapsed .asset-library-header {
  margin-bottom: 0;
}

.asset-library-body {
  display: grid;
  gap: .75rem;
}

.asset-library-panel.is-collapsed .asset-library-body {
  display: none;
}

.asset-library-toggle i {
  transition: transform .15s ease;
}

.asset-library-panel.is-collapsed .asset-library-toggle i {
  transform: rotate(180deg);
}

.asset-library-header h2 {
  margin: 0;
  font-size: 1rem;
}

.asset-library-header p,
.asset-library-summary {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.asset-library-actions .form-select {
  width: auto;
  min-width: 8.5rem;
}

.asset-library-table {
  max-height: 22rem;
  overflow: auto;
}

.asset-cleanup-result {
  padding: .65rem .75rem;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: .85rem;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-size: .8rem;
}

.asset-cleanup-result strong {
  color: var(--text);
}

.asset-cleanup-result ul {
  display: grid;
  gap: .2rem;
  max-height: 7rem;
  margin: .5rem 0 0;
  padding-left: 1rem;
  overflow: auto;
}

@media (max-width: 640px) {
  .product-image-uploader--compact {
    grid-template-columns: 5.25rem minmax(0, 1fr);
  }

  .product-image-preview {
    width: 5.25rem;
    height: 5.25rem;
  }

  .product-image-action span {
    display: none;
  }

  .asset-library-actions .form-select,
  .asset-library-actions .btn {
    flex: 1 1 9rem;
  }
}

.asset-thumb {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: .75rem;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-source {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-asset-editor {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: .9rem;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.site-asset-preview {
  display: grid;
  width: 6.5rem;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: .85rem;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font-size: 1.7rem;
}

.site-asset-preview--wide {
  aspect-ratio: 16 / 9;
}

.site-asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-asset-preview--wide img {
  object-fit: cover;
}

.site-asset-main {
  display: grid;
  gap: .55rem;
  min-width: 0;
}

.site-asset-meta {
  min-height: 1.2rem;
  color: var(--muted);
  font-size: .78rem;
}

.product-image-proposal-host {
  margin-top: .75rem;
}

.product-image-proposal {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-violet) 34%, var(--border));
  border-radius: .9rem;
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--brand-magenta) 15%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-2) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.product-image-proposal--compact {
  display: flex;
  min-height: 2.85rem;
  align-items: center;
  gap: .55rem;
  padding: .55rem .7rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.product-image-proposal--compact i,
.product-image-proposal--compact .spinner-border {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--brand-magenta) 72%, #fff);
}

.product-image-proposal--compact.is-warning i {
  color: var(--warning);
}

.product-image-proposal--compact.is-muted {
  border-style: dashed;
}

.product-image-suggestions {
  display: grid;
  gap: .6rem;
  min-width: 0;
  padding: .65rem;
}

.product-image-suggestions__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.product-image-suggestions__header > div {
  display: grid;
  min-width: 0;
  gap: .12rem;
}

.product-image-suggestions__header strong {
  overflow: hidden;
  color: var(--text);
  font-size: .84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-suggestions__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: color-mix(in srgb, var(--brand-magenta) 66%, var(--muted));
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.product-image-suggestions__refresh {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: .65rem;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.product-image-suggestions__refresh:hover,
.product-image-suggestions__refresh:focus-visible {
  border-color: color-mix(in srgb, var(--brand-violet) 64%, var(--border));
  background: color-mix(in srgb, var(--brand-violet) 16%, var(--surface));
  transform: translateY(-1px);
}

.product-image-candidate {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 3.65rem minmax(0, 1fr) 1.45rem;
  flex: 0 0 min(15rem, calc(100% - .15rem));
  align-items: center;
  gap: .55rem;
  min-width: 0;
  min-height: 4.35rem;
  padding: .45rem;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: .8rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012)),
    color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  text-align: left;
  scroll-snap-align: start;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.product-image-candidate:hover,
.product-image-candidate:focus-visible {
  border-color: color-mix(in srgb, var(--brand-magenta) 58%, var(--border));
  box-shadow: 0 0 0 .14rem color-mix(in srgb, var(--brand-violet) 20%, transparent), 0 10px 24px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.product-image-candidate__visual {
  display: grid;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: .65rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .08), transparent 52%),
    #101016;
}

.product-image-candidate__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-candidate__body {
  display: grid;
  min-width: 0;
  gap: .2rem;
}

.product-image-candidate__source,
.product-image-candidate__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-candidate__source {
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
}

.product-image-candidate__meta {
  color: var(--muted);
  font-size: .68rem;
}

.product-image-candidate__cta {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-size: .88rem;
  box-shadow: 0 0 16px color-mix(in srgb, var(--brand-magenta) 28%, transparent);
}

@media (max-width: 520px) {
  .product-image-suggestions {
    padding: .55rem;
  }

  .product-image-suggestions__header {
    gap: .5rem;
  }

  .product-image-suggestions__header strong {
    font-size: .78rem;
  }

  .product-image-candidates--rail {
    gap: .45rem;
    padding-bottom: .25rem;
  }

  .product-image-candidate {
    grid-template-columns: 3.1rem minmax(0, 1fr) 1.35rem;
    flex-basis: calc(100% - .1rem);
    gap: .45rem;
    min-height: 3.85rem;
    padding: .38rem;
  }

  .product-image-candidate__visual {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: .55rem;
  }

  .product-image-candidate__source {
    font-size: .74rem;
  }

  .product-image-candidate__meta {
    font-size: .64rem;
  }
}

.product-msrp-extra-row,
.product-reference-add-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, .65fr) minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: center;
}

.product-msrp-list,
.product-reference-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .65rem 0 .85rem;
}

.product-msrp-chip,
.product-reference-chip,
.product-status-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.55rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 88%, #fff);
  border: 1px solid var(--border);
  font-size: .74rem;
  font-weight: 700;
}

.product-msrp-chip.is-primary,
.product-status-chip.is-active {
  color: #dcfce7;
  background: color-mix(in srgb, #22c55e 20%, var(--surface-2));
  border-color: color-mix(in srgb, #22c55e 34%, var(--border));
}

.product-status-chip.is-pending {
  color: #fed7aa;
  background: color-mix(in srgb, var(--brand-orange) 20%, var(--surface-2));
  border-color: color-mix(in srgb, var(--brand-orange) 38%, var(--border));
}

.product-msrp-chip button,
.product-reference-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
}

.product-wizard-switches {
  display: grid;
  gap: .55rem;
  margin-top: .9rem;
}

.product-wizard-distribution {
  display: grid;
  grid-template-columns: minmax(18rem, .75fr) minmax(24rem, 1.25fr);
  gap: .9rem;
}

.product-retailer-list {
  display: grid;
  gap: .55rem;
}

.product-retailer-item {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto auto;
  gap: .7rem;
  align-items: center;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}

.product-retailer-logo {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  overflow: hidden;
  border-radius: .45rem;
  background: #111827;
  font-weight: 800;
}

.product-retailer-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-retailer-main {
  min-width: 0;
}

.product-retailer-main a {
  display: block;
  overflow: hidden;
  color: color-mix(in srgb, var(--brand-violet) 72%, #fff);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-form-callout,
.product-wizard-callout,
.product-wizard-empty {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-top: .85rem;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, var(--brand-violet) 32%, var(--border));
  border-radius: .65rem;
  background: color-mix(in srgb, var(--brand-violet) 12%, var(--surface-2));
  color: var(--text);
  font-size: .8rem;
}

.product-form-callout.is-warning,
.product-wizard-callout.is-warning {
  border-color: color-mix(in srgb, var(--brand-orange) 42%, var(--border));
}

.product-form-callout.is-success,
.product-wizard-callout.is-success {
  border-color: color-mix(in srgb, #22c55e 42%, var(--border));
}

.product-wizard-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.product-summary-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: center;
}

.product-summary-list {
  display: grid;
  grid-template-columns: minmax(8rem, .7fr) minmax(0, 1fr);
  gap: .5rem .75rem;
  margin: 0;
  font-size: .82rem;
}

.product-summary-list dt {
  color: var(--muted);
  font-weight: 600;
}

.product-summary-list dd {
  margin: 0;
}

.product-wizard-progress {
  height: 3px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.product-wizard-progress span {
  display: block;
  height: 100%;
  width: 33.333%;
  border-radius: inherit;
  background: var(--brand-grad);
}

.app-single-select {
  position: relative;
}

.product-reference-select .app-multi-select__button {
  width: 100%;
  min-height: 2.35rem;
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-2) 86%, #000);
  font-size: .86rem;
}

.app-single-select .app-multi-select__menu {
  z-index: 1100;
  max-height: 18rem;
  overflow: auto;
}

.product-reference-select .app-multi-select__choice {
  width: 100%;
  min-height: 2rem;
  padding: .4rem .55rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: .84rem;
  text-align: left;
}

.product-reference-select .app-multi-select__choice:hover,
.product-reference-select .app-multi-select__choice.is-selected {
  background: color-mix(in srgb, var(--brand-violet) 18%, var(--surface-2));
}

.product-reference-empty {
  padding: .65rem .7rem;
  color: var(--muted);
  font-size: .8rem;
}

.product-reference-add-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: .5rem;
  border-top: 1px solid var(--border);
}

.product-summary-guidance {
  grid-column: 1 / -1;
  margin-top: 0;
}

.product-reference-manager {
  display: grid;
  gap: .85rem;
}

.product-reference-panel {
  display: grid;
  grid-template-columns: minmax(14rem, .85fr) minmax(0, 1.15fr);
  gap: .9rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: var(--surface);
}

.product-card-mobile-list {
  display: grid;
  gap: .65rem;
  padding: .75rem;
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}

.product-card-mobile-empty {
  padding: 1rem;
  text-align: center;
}

.product-card-mobile {
  position: relative;
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  min-width: 0;
  padding: .72rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.product-card-mobile.is-selected {
  border-color: color-mix(in srgb, var(--brand-magenta) 58%, var(--border));
  background: color-mix(in srgb, var(--brand-magenta) 5%, var(--surface));
}

.product-card-mobile.is-muted {
  opacity: .66;
}

.product-card-mobile__select {
  padding-top: .18rem;
}

.product-card-mobile__avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 82%, #fff);
  color: var(--muted);
  font-weight: 900;
}

.product-card-mobile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-mobile__body {
  min-width: 0;
  display: grid;
  gap: .34rem;
}

.product-card-mobile__top {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: start;
}

.product-card-mobile__title {
  min-width: 0;
  line-height: 1.18;
}

.product-card-mobile__title a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text) !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-mobile__ean {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--bs-font-monospace);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-mobile__meta,
.product-card-mobile__footer {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  align-items: center;
}

.product-card-mobile__chip,
.product-card-mobile__footer > span:not(.badge) {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  min-height: 1.32rem;
  padding: .12rem .44rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
}

.product-card-mobile__menu {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
}

@media (max-width: 1199.98px) {
  .product-wizard-grid--info,
  .product-wizard-summary {
    grid-template-columns: 1fr;
  }

  .product-wizard-top {
    grid-template-columns: 1fr;
  }

  .product-wizard-stepper {
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 767.98px) {
  .product-modal--wizard .modal-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .product-modal--wizard .modal-content {
    min-height: 100%;
    border-radius: 0;
  }

  .product-wizard-two,
  .product-wizard-three,
  .product-wizard-distribution,
  .product-summary-preview,
  .product-reference-panel {
    grid-template-columns: 1fr;
  }

  .product-retailer-item {
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  }

  .product-retailer-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

.dashboard-page .app-segmented button {
  border-color: var(--dash-line);
  background: var(--dash-paper);
}

.dashboard-page .app-segmented button.active,
.dashboard-page #btnDeltaOnly.btn-danger {
  color: #fff;
  border-color: transparent !important;
  background: var(--brand-grad);
}

.dashboard-page .app-segmented.app-slider button,
.dashboard-page .app-segmented.app-slider button.active,
.dashboard-page .app-segmented.stores-slider button,
.dashboard-page .app-segmented.stores-slider button.active {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-page .dashboard-filter-bar .card-body {
  padding: 0.65rem;
}

.dashboard-page .dashboard-filter-bar .row {
  display: flex;
  flex-wrap: wrap;
  overflow-x: visible;
  align-items: center;
}

.dashboard-page .dashboard-filter-bar [class*="col-"] {
  flex: 1 1 150px;
  width: auto;
  min-width: 0;
}

.dashboard-page .dashboard-filter-bar .dashboard-search-col {
  flex: 1 1 420px;
  min-width: 340px;
  max-width: 460px;
}

.dashboard-page .dashboard-filter-bar .col-auto {
  flex: 999 1 320px;
}

.dashboard-page .dashboard-filter-bar .input-group {
  width: 100%;
  min-width: 0;
}

.dashboard-page .dashboard-filter-bar .form-select {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-pill) !important;
}

.dashboard-page .dashboard-filter-bar .btn {
  border-radius: var(--radius-pill) !important;
  white-space: nowrap;
}

.dashboard-page .dashboard-filter-bar .col-auto.ms-auto {
  margin-left: 0 !important;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dashboard-page .dashboard-price-card {
  height: calc(100vh - 300px);
  min-height: 520px;
}

.dashboard-page .price-matrix {
  width: 100%;
}

.dashboard-page .price-matrix thead th {
  text-transform: uppercase;
  font-size: 0.78rem;
}

.dashboard-page .price-matrix .matrix-header-label {
  min-height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.dashboard-page .price-matrix .matrix-header-label .site-logo {
  flex: 0 0 auto;
  margin: 0;
}

.matrix-product-ean {
  display: block;
  margin-top: .12rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.dashboard-page .price-matrix a,
.dashboard-page .cockpit-product-btn span,
.dashboard-page .drop-card h5 {
  color: var(--dash-ink) !important;
  font-weight: 700;
}

@media (min-width: 992px) {
  .dashboard-page .price-matrix .matrix-identity-cell {
    display: none;
  }

  .dashboard-page .price-matrix .matrix-site-cell {
    text-align: center;
    vertical-align: middle;
  }

  .dashboard-page .price-matrix thead th:not(:first-child) {
    text-align: center;
  }

  .dashboard-page .price-matrix .matrix-price-cell {
    display: grid;
    justify-items: center;
    gap: .16rem;
  }

  .dashboard-page .price-matrix .matrix-price-main,
  .dashboard-page .price-matrix .matrix-price-status,
  .dashboard-page .price-matrix .matrix-price-meta {
    justify-content: center;
    text-align: center;
  }

  .dashboard-page .price-matrix .matrix-price-value {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
  }

  .dashboard-page .price-matrix .matrix-price-status:empty,
  .dashboard-page .price-matrix .matrix-price-msrp--empty {
    display: none;
  }

  .dashboard-page .price-matrix .matrix-site-cell.is-best {
    border-left: 3px solid var(--brand-magenta);
    background: linear-gradient(135deg, rgba(255,79,183,.12), transparent);
  }

  .dashboard-page .price-matrix .matrix-best-content--desktop {
    display: grid;
    justify-items: center;
    gap: .18rem;
    text-align: center;
  }

  .dashboard-page .price-matrix .matrix-best-price-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
  }

  .dashboard-page .price-matrix .matrix-best-price-row strong {
    color: var(--brand-magenta) !important;
    font-size: 1.16rem;
    line-height: 1;
  }

  .dashboard-page .price-matrix .matrix-best-site-chip {
    max-width: 124px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    overflow: hidden;
    padding: .1rem .46rem;
    border: 1px solid color-mix(in srgb, var(--brand-magenta) 24%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-magenta) 8%, transparent);
    color: var(--dash-ink);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.1;
  }

  .dashboard-page .price-matrix .matrix-best-site-chip img {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    object-fit: contain;
  }

  .dashboard-page .price-matrix .matrix-best-site-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page .price-matrix .matrix-best-scope,
  .dashboard-page .price-matrix .matrix-best-since {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
    line-height: 1;
  }
}

@media (max-width: 575.98px) {
  #modalProduct .modal-dialog {
    max-width: calc(100vw - 1.25rem);
    margin: .625rem auto;
  }

  #modalProduct .modal-content {
    max-height: calc(100dvh - 1.25rem);
    border-radius: 14px;
  }

  #modalProduct .modal-header {
    padding: .78rem 1rem;
  }

  #modalProduct .modal-body {
    padding: .85rem 1rem;
  }

  #modalProduct .modal-footer {
    padding: .72rem 1rem;
  }

  #modalProduct .product-segmented-tabs {
    margin-bottom: .85rem !important;
    border-radius: 14px;
    gap: .2rem;
    justify-content: space-between;
  }

  #modalProduct .product-segmented-tabs .nav-link {
    min-height: 36px;
    padding: .42rem .5rem;
    font-size: .7rem;
  }

  #modalProduct .product-segmented-tabs .tab-label-full {
    display: none;
  }

  #modalProduct .product-segmented-tabs .tab-label-short {
    display: inline;
  }

  .product-url-item {
    padding: .68rem;
  }

  .product-url-item__head {
    align-items: center;
  }

  .product-url-item__url {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .product-url-icon-btn,
  .product-url-actions .btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }
}

@media (max-width: 1599.98px) and (min-width: 992px) {
  .navbar {
    padding-inline: 0.75rem !important;
  }

  .navbar-brand {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar .navbar-nav .nav-link {
    width: 44px;
    justify-content: center;
    padding-inline: 0 !important;
    font-size: 0.88rem;
  }

  .navbar .navbar-nav .nav-link.active {
    width: auto;
    padding-inline: 0.65rem !important;
  }

  .navbar .navbar-nav .nav-link:not(.active) .nav-link-label,
  #btnScrapeAll span,
  #btnScrapeStores span {
    display: none;
  }

  #btnScrapeAll,
  #btnScrapeStores {
    width: 40px;
    min-width: 40px;
    padding-inline: 0 !important;
  }

  #btnScrapeAll .bi,
  #btnScrapeStores .bi {
    margin-right: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .dashboard-page .dashboard-filter-bar [class*="col-"],
  .dashboard-page .dashboard-filter-bar .col-auto {
    flex-basis: 100%;
  }

  .dashboard-page .dashboard-filter-bar .dashboard-search-col {
    min-width: 0;
    max-width: none;
  }

  .dashboard-page .dashboard-filter-bar .col-auto.ms-auto {
    justify-content: stretch;
  }

  .dashboard-page .dashboard-filter-bar .col-auto.ms-auto .btn {
    flex: 1 1 150px;
  }
}

@media (min-width: 1500px) {
  .dashboard-page {
    padding-inline: clamp(1rem, 1.4vw, 2rem) !important;
  }

  .dashboard-page .price-matrix {
    table-layout: fixed;
    min-width: 0;
  }

  .dashboard-page .price-matrix th:not(:first-child),
  .dashboard-page .price-matrix td:not(:first-child) {
    min-width: 0;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-page .price-matrix th:first-child,
  .dashboard-page .price-matrix td:first-child {
    width: 260px;
    min-width: 220px;
    max-width: 300px;
  }

  .dashboard-page .price-matrix th:nth-last-child(2),
  .dashboard-page .price-matrix td:nth-last-child(2) {
    right: 78px;
    width: 132px;
    min-width: 118px;
  }

  .dashboard-page .price-matrix th:last-child,
  .dashboard-page .price-matrix td:last-child {
    width: 78px;
    min-width: 70px;
  }
}

.app-search-trigger {
  min-width: min(260px, 30vw);
  justify-content: space-between;
}

.app-command-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
  background: rgba(0,0,0,.42);
}

.app-command-backdrop.is-open {
  display: flex;
}

.app-command {
  width: min(720px, 100%);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
}

.app-command input {
  width: 100%;
  min-height: 58px;
  padding: 0 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  font-size: 1rem;
}

.app-command-list {
  max-height: 50vh;
  overflow: auto;
  padding: 0.5rem;
}

.app-command-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--text);
  background: transparent;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.app-command-item:hover,
.app-command-item:focus {
  background: var(--surface-2);
}

.mobile-tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1035;
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 0.25rem;
  padding: 0.45rem max(0.45rem, env(safe-area-inset-left)) calc(0.45rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px);
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-tabbar::-webkit-scrollbar {
  display: none;
}

.mobile-tabbar a {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 0.1rem;
  color: var(--muted);
  border-radius: var(--radius-control);
  font-size: 0.74rem;
  text-decoration: none;
}

.mobile-tabbar a.active {
  color: var(--text);
  background: var(--surface-2);
}

.mobile-more-menu {
  position: fixed;
  right: 0.75rem;
  bottom: 72px;
  z-index: 1040;
  display: none;
  min-width: 220px;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.mobile-more-menu.is-open {
  display: block;
}

.mobile-more-menu a {
  display: block;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  border-radius: var(--radius-control);
  text-decoration: none;
}

.mobile-more-menu a:hover {
  background: var(--surface-2);
}

.mobile-section-rail {
  display: none;
}

.mobile-card-toggle {
  display: none;
}

.mobile-navbar-actions,
.mobile-menu-drawer__head,
.mobile-menu-drawer__list,
.mobile-notifications-panel {
  display: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.profile-nav,
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-nav__item,
.settings-nav__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-control);
  color: var(--bs-body-color);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.profile-nav__item:hover,
.settings-nav__item:hover {
  background: var(--bs-tertiary-bg);
}

.profile-nav__item.active,
.settings-nav__item.active {
  color: var(--bs-primary-text-emphasis);
  background: var(--bs-primary-bg-subtle);
}

.settings-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-status-pill[data-state="ok"] {
  border-color: rgba(25, 135, 84, 0.3);
  background: rgba(25, 135, 84, 0.1);
  color: var(--bs-success-text-emphasis);
}

.settings-status-pill[data-state="muted"] {
  border-color: rgba(108, 117, 125, 0.28);
  background: rgba(108, 117, 125, 0.1);
  color: var(--bs-secondary-color);
}

.settings-scheduler-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.settings-scheduler-scope div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  color: var(--bs-body-color);
  font-weight: 700;
}

.settings-scheduler-scope svg {
  width: 1rem;
  height: 1rem;
  color: var(--bs-primary);
}

@media (max-width: 575.98px) {
  .settings-scheduler-scope {
    grid-template-columns: 1fr;
  }
}

.theme-picker,
.font-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.theme-option,
.font-option,
.density-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--bs-border-color);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: border-color 0.12s;
}

.theme-option:has(input:checked),
.font-option:has(input:checked),
.density-option:has(input:checked) {
  border-color: var(--bs-primary);
}

.theme-option input,
.font-option input,
.density-option input {
  display: none;
}

.theme-option__preview,
.density-option__preview {
  width: 100%;
  height: 48px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
}

.theme-option__preview--light {
  background: #fff;
}

.theme-option__preview--dark {
  background: #0b0f19;
}

.theme-option__preview--auto {
  background: linear-gradient(90deg, #fff 0 50%, #0b0f19 50% 100%);
}

.density-option__preview--compact {
  background: repeating-linear-gradient(0deg, var(--surface-2), var(--surface-2) 6px, var(--border) 6px, var(--border) 8px);
}

.density-option__preview--cozy {
  background: repeating-linear-gradient(0deg, var(--surface-2), var(--surface-2) 12px, var(--border) 12px, var(--border) 14px);
}

.font-preview {
  display: block;
  font-size: 1rem;
}

.font-preview--condensed {
  font-family: Anton, sans-serif;
}

.font-preview--clean {
  font-family: Inter, sans-serif;
}

.font-preview--concept {
  font-family: Caveat, cursive;
}

.autosave-toast {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--bs-success);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.autosave-toast[data-visible="1"] {
  opacity: 1;
  transform: translateY(0);
}

.avatar-placeholder {
  width: 56px;
  height: 56px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-violet));
  font-size: 1.5rem;
}

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

.avatar-edit-wrap {
  position: relative;
  width: 72px;
  min-width: 72px;
  display: grid;
  place-items: center;
}

.avatar-edit-wrap .avatar-placeholder {
  width: 64px;
  height: 64px;
}

.avatar-upload-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0.35rem;
  color: #fff;
  background: rgba(0,0,0,0.62);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.avatar-edit-wrap:hover .avatar-upload-trigger,
.avatar-upload-trigger:focus-visible {
  opacity: 1;
}

.profile-identity-editor {
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-control);
  background: var(--bs-tertiary-bg);
}

.icon-only-btn {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.app-health .health-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bs-tertiary-bg);
}

.app-health .health-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bs-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-success) 20%, transparent);
  animation: pulse 2s infinite;
}

.app-health .health-pill[data-state="warn"] .health-pill__dot {
  background: var(--bs-warning);
}

.app-health .health-pill[data-state="crit"] .health-pill__dot {
  background: var(--bs-danger);
}

.analytics-page .health-banner .card-body {
  padding: 1.5rem;
}

.analytics-page #btnRefresh {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.health-score-ring {
  --size: 120px;
  --score: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), var(--bs-border-color) 0);
  position: relative;
}

.health-score-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bs-card-bg);
}

.health-score-value {
  position: relative;
  font-size: 2rem;
  font-weight: 800;
}

.health-score-ring[data-grade="good"] {
  --score-color: var(--bs-success);
}

.health-score-ring[data-grade="warn"] {
  --score-color: var(--bs-warning);
}

.health-score-ring[data-grade="crit"] {
  --score-color: var(--bs-danger);
}

.health-facets span,
#healthFacets span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.health-trend {
  min-width: 200px;
}

.app-collapsible-section {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-card);
  background: var(--bs-card-bg);
  box-shadow: var(--shadow-sm);
}

.app-collapsible-section__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.app-collapsible-section__summary::-webkit-details-marker {
  display: none;
}

.app-collapsible-section__title {
  display: inline-flex;
  align-items: baseline;
  gap: .65rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.app-collapsible-section__summary i {
  transition: transform .16s ease;
}

.app-collapsible-section[open] .app-collapsible-section__summary i {
  transform: rotate(180deg);
}

.app-collapsible-section__body {
  padding: 0 1rem 1rem;
}

.triage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
}

.triage-card {
  border-radius: var(--radius-lg, var(--radius-card));
  border: 1px solid var(--bs-border-color);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bs-card-bg);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.triage-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.triage-card[data-priority="0"] {
  border-left: 4px solid var(--bs-danger);
}

.triage-card[data-priority="1"] {
  border-left: 4px solid var(--bs-warning);
}

.triage-card[data-priority="2"] {
  border-left: 4px solid var(--bs-info);
}

.triage-card[data-priority="3"] {
  border-left: 4px solid var(--bs-border-color);
}

.triage-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.triage-card__head .h6 {
  overflow-wrap: anywhere;
}

.triage-card__count {
  margin-left: auto;
  font-weight: 800;
  font-size: 1.25rem;
}

.triage-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.triage-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: .5rem;
  color: var(--bs-success);
  border: 1px dashed var(--bs-success-border-subtle);
  border-radius: var(--radius-card);
  background: var(--bs-success-bg-subtle);
  text-align: center;
}

.triage-empty p {
  margin: 0;
  color: var(--bs-success-text-emphasis);
  font-weight: 700;
}

.active-scrapes-card .card-header .btn {
  align-items: center;
  display: inline-flex;
  gap: .4rem;
}

.active-scrapes-card.is-collapsed .card-body {
  display: none;
}

.active-scrapes-list {
  display: grid;
}

.active-scrape-section {
  border-bottom: 1px solid var(--bs-border-color);
  display: grid;
  gap: .75rem;
  padding: 1rem;
}

.active-scrape-section:last-child {
  border-bottom: 0;
}

.active-scrapes-empty {
  align-items: center;
  color: var(--bs-secondary-color);
  display: flex;
  gap: .5rem;
  justify-content: center;
  min-height: 4.5rem;
}

.active-scrape-overview {
  display: grid;
  gap: .75rem;
}

.active-scrape-overview-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.active-scrape-overview-head > div:first-child {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.active-scrape-overview-head span {
  color: var(--bs-secondary-color);
  font-size: .82rem;
}

.active-scrape-overview-head .active-scrape-overview-side {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-end;
}

.active-scrape-actions {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

.active-scrape-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  white-space: nowrap;
}

.active-scrape-progress-lg {
  height: .5rem;
}

.active-scrape-sites {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}

.active-scrape-site {
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-sm, 6px);
  display: grid;
  gap: .45rem;
  min-width: 0;
  padding: .65rem;
}

.active-scrape-site.is-running {
  border-color: color-mix(in srgb, var(--bs-primary) 45%, var(--bs-border-color));
}

.active-scrape-site.is-warning {
  border-color: rgba(255, 193, 7, .45);
}

.active-scrape-site-head {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.active-scrape-site-head span {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: .35rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.active-scrape-site-state {
  align-items: center;
  border: 2px solid var(--bs-border-color);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 900;
  height: 1.25rem;
  justify-content: center;
  line-height: 1;
  width: 1.25rem;
}

.active-scrape-site-state svg {
  height: .8rem;
  width: .8rem;
}

.active-scrape-site-state.is-running {
  border-color: color-mix(in srgb, var(--bs-primary) 65%, var(--bs-border-color));
  color: var(--bs-primary);
}

.active-scrape-site-state.is-done {
  background: rgba(25, 135, 84, .12);
  border-color: rgba(25, 135, 84, .55);
  color: var(--bs-success);
}

.active-scrape-site-state.is-warning {
  background: rgba(255, 193, 7, .26);
  border-color: rgba(255, 193, 7, .8);
  color: #946200;
}

.active-scrape-site-meta {
  align-items: center;
  color: var(--bs-secondary-color);
  display: flex;
  flex-wrap: wrap;
  font-size: .72rem;
  gap: .45rem;
}

.active-scrape-site-current {
  flex-basis: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.active-scrape-item {
  align-items: center;
  border-bottom: 1px solid var(--bs-border-color);
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: .9rem 1rem;
}

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

.active-scrape-main {
  min-width: 0;
}

.active-scrape-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  min-width: 0;
}

.active-scrape-title strong {
  overflow-wrap: anywhere;
}

.active-scrape-dot {
  animation: pulse 1.5s infinite;
  background: var(--bs-success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, .14);
  flex: 0 0 auto;
  height: .6rem;
  width: .6rem;
}

.active-scrape-item[data-state="cancelling"] .active-scrape-dot {
  background: var(--bs-warning);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, .18);
}

.active-scrape-meta {
  align-items: center;
  color: var(--bs-secondary-color);
  display: flex;
  flex-wrap: wrap;
  font-size: .78rem;
  gap: .65rem;
  margin-top: .25rem;
}

.active-scrape-meta span {
  align-items: center;
  display: inline-flex;
  gap: .25rem;
  min-width: 0;
}

.active-scrape-progress {
  background: var(--bs-tertiary-bg);
  border-radius: 999px;
  height: .35rem;
  margin-top: .55rem;
  overflow: hidden;
}

.active-scrape-progress span {
  background: var(--brand-primary, var(--bs-primary));
  display: block;
  height: 100%;
}

.active-scrape-resources {
  display: grid;
  gap: .35rem;
  grid-template-columns: repeat(3, minmax(4.2rem, auto));
}

.active-scrape-resources--inline {
  grid-template-columns: repeat(3, minmax(3.2rem, auto));
}

.active-scrape-resources div {
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-sm, 6px);
  min-width: 4.2rem;
  padding: .35rem .5rem;
  text-align: right;
}

.active-scrape-resources span {
  color: var(--bs-secondary-color);
  display: block;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.active-scrape-resources strong {
  display: block;
  font-size: .86rem;
  line-height: 1.25;
  margin-top: .15rem;
  white-space: nowrap;
}

.active-scrape-stop {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .active-scrape-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .active-scrape-resources {
    grid-template-columns: repeat(3, 1fr);
  }

  .active-scrape-stop {
    justify-content: center;
  }
}

.site-sparkline {
  height: 24px;
  width: 120px;
}

.analytics-page #siteHealthTable td {
  vertical-align: middle;
}

.site-success-header {
  display: inline-grid;
  gap: .05rem;
  line-height: 1.1;
}

.site-success-header strong {
  font-weight: 800;
}

.site-success-header small {
  color: var(--bs-secondary-color);
  font-size: .68rem;
  font-weight: 500;
}

.site-success-rate {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  min-width: 4rem;
  padding: .18rem .6rem;
  justify-content: center;
}

.site-success-rate--split {
  align-items: center;
  gap: .28rem;
  min-width: 6.2rem;
}

.site-success-rate--split em {
  font-style: normal;
  font-weight: 700;
  opacity: .55;
}

.site-success-rate[data-grade="good"] {
  background: rgba(25, 135, 84, .12);
  color: var(--bs-success);
}

.site-success-rate[data-grade="warn"] {
  background: rgba(255, 193, 7, .18);
  color: #946200;
}

.site-success-rate[data-grade="bad"] {
  background: rgba(214, 51, 132, .12);
  color: #b02a6b;
}

.site-success-rate[data-grade="crit"] {
  background: rgba(214, 51, 132, .22);
  color: #d63384;
}

.site-error-pills,
.metric-pill-group {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: .25rem;
  min-height: 2rem;
  vertical-align: middle;
  white-space: nowrap;
}

.metric-pill {
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  color: var(--bs-secondary-color);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  margin-right: 0;
  padding: .22rem .45rem;
}

.metric-pill-success {
  background: rgba(25, 135, 84, .12);
  border-color: rgba(25, 135, 84, .22);
  color: var(--bs-success);
}

.metric-pill-danger {
  background: rgba(214, 51, 132, .14);
  border-color: rgba(214, 51, 132, .26);
  color: #d63384;
}

.site-actions {
  display: inline-flex;
  gap: .35rem;
  justify-content: flex-end;
}

.site-action-btn,
.site-engine-btn,
.engine-detail-btn {
  align-items: center;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-sm, 6px);
  color: var(--bs-body-color);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  gap: .28rem;
  min-height: 2rem;
  padding: .3rem .5rem;
}

.site-action-btn {
  aspect-ratio: 1;
  justify-content: center;
  padding: .3rem;
  position: relative;
  width: 2rem;
}

.site-action-btn:hover,
.site-engine-btn:hover,
.engine-detail-btn:hover {
  border-color: var(--brand-primary, var(--bs-primary));
  color: var(--brand-primary, var(--bs-primary));
}

.site-engine-btn.is-forced {
  background: rgba(255, 193, 7, .14);
  border-color: rgba(255, 193, 7, .38);
}

.site-scrape-status {
  align-items: center;
  color: var(--bs-warning);
  display: flex;
  font-size: .75rem;
  font-weight: 700;
  gap: .35rem;
  margin-top: .1rem;
}

.scrape-live-badge {
  align-items: center;
  color: var(--bs-warning);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  gap: .3rem;
  line-height: 1;
  margin-left: .35rem;
  vertical-align: middle;
  white-space: nowrap;
}

.scrape-live-badge .spinner-border {
  --bs-spinner-height: .75rem;
  --bs-spinner-width: .75rem;
  --bs-spinner-border-width: .11rem;
}

.scrape-live-badge.is-compact span:last-child {
  display: none;
}

tr.is-scraping > td {
  background-image: linear-gradient(90deg, rgba(245, 158, 11, .08), transparent);
}

.spin {
  animation: spin 0.9s linear infinite;
}

.spinner-border,
.spinner-grow {
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  min-height: var(--bs-spinner-height, var(--bs-spinner-width, 1rem));
  min-width: var(--bs-spinner-width, 1rem);
}

.spinner-border-sm,
.spinner-grow-sm {
  min-height: var(--bs-spinner-height-sm, var(--bs-spinner-width-sm, .875rem));
  min-width: var(--bs-spinner-width-sm, .875rem);
}

.btn-icon-loading {
  flex: 0 0 auto;
  position: relative;
}

.btn-loading-ring,
.site-action-spinner {
  aspect-ratio: 1 / 1;
  animation: spin .75s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 1.1rem;
  left: 50%;
  margin-left: -.55rem;
  margin-top: -.55rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  width: 1.1rem;
}

.btn-icon-loading.is-loading i,
.site-action-btn.is-loading i {
  opacity: .25;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.engine-detail-row > td {
  background: var(--bs-tertiary-bg);
}

.engine-detail-content {
  padding: .75rem;
}

.analytics-tooltip {
  --bs-tooltip-bg: rgba(33, 37, 41, .9);
  --bs-tooltip-color: #fff;
  --bs-tooltip-font-size: .74rem;
  --bs-tooltip-max-width: 220px;
  --bs-tooltip-opacity: .92;
}

.analytics-tooltip .tooltip-inner {
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  line-height: 1.25;
  padding: .35rem .5rem;
}

.hidden-alerts-panel {
  padding: 1rem;
}

.hidden-alerts-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.section-pulse {
  animation: sectionPulse 1.1s ease;
}

@keyframes sectionPulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, .35); }
  100% { box-shadow: 0 0 0 14px rgba(13, 110, 253, 0); }
}

.msrp-drops-list {
  display: flex;
  gap: .5rem;
  overflow: hidden;
}

.msrp-drop-item {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-sm, 6px);
  color: inherit;
  display: grid;
  gap: .15rem;
  min-width: 0;
  padding: .65rem .75rem;
  text-decoration: none;
  width: 20%;
}

.msrp-drop-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msrp-drop-item strong {
  color: var(--bs-success);
}

.msrp-drop-item small {
  color: var(--bs-secondary-color);
}

.coverage-stats {
  display: grid;
  gap: .35rem;
  font-size: .88rem;
}

@media (max-width: 575.98px) {
  .triage-grid {
    grid-template-columns: 1fr;
  }

  .health-score-ring {
    --size: 94px;
  }

  .health-score-value {
    font-size: 1.55rem;
  }

  .health-trend {
    width: 100%;
    min-width: 0;
  }

  .analytics-page .table {
    min-width: 720px;
  }

  .analytics-page .card-body.p-0 {
    overflow-x: auto;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.app-health .health-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.save-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
  animation: slideUp 0.2s ease;
}

.save-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.permission-matrix {
  display: grid;
  gap: 2px;
  overflow: hidden;
  background: var(--bs-border-color);
  border-radius: 8px;
}

.permission-matrix .cell {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  color: var(--bs-body-color);
  background: var(--bs-card-bg);
}

.permission-matrix .cell[data-on="1"] {
  color: var(--bs-success-text-emphasis);
  background: var(--bs-success-bg-subtle);
}

.permission-matrix .permission-label {
  justify-items: start;
  place-items: center start;
  text-align: left;
}

.invite-link-box {
  padding: 0.9rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-control);
  background: var(--bs-tertiary-bg);
}

.tour-page {
  --tour-safe-bottom: calc(104px + env(safe-area-inset-bottom));
}

.tour-page h1,
.tour-page h2,
.tour-page h3,
.tour-page strong,
.tour-page .btn,
.tour-page .badge,
.tour-page .form-label,
.tour-page .tour-progress-label {
  font-weight: 500;
}

.tour-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tour-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tour-selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.tour-selection-aside .card-body {
  display: grid;
  gap: 1rem;
}

.tour-step-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.tour-quick-stat {
  display: grid;
  gap: 0.15rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.tour-quick-stat strong {
  font-size: 1.65rem;
}

.tour-store-list,
.tour-item-list {
  display: grid;
  gap: 0.85rem;
}

.tour-store-card {
  width: 100%;
  min-height: 48px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.tour-store-card:hover,
.tour-store-card:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand-magenta) 28%, var(--border));
  box-shadow: var(--shadow-soft);
}

.tour-store-card__head,
.tour-item-card__head,
.tour-store-summary__identity,
.tour-screen-head,
.tour-visit-topbar,
.tour-visit-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tour-store-card__meta,
.tour-store-summary__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tour-store-card__meta span,
.tour-store-summary__details span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tour-store-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-magenta);
  font-weight: 700;
}

.tour-empty-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  text-align: left;
}

.tour-empty-state i {
  font-size: 1.5rem;
}

.tour-store-summary {
  display: grid;
  gap: 0.75rem;
}

.tour-store-summary h2 {
  margin: 0;
}

.tour-visit-shell {
  display: grid;
  gap: 0.9rem;
}

.tour-progress-cluster {
  flex: 1 1 auto;
  display: grid;
  gap: 0.35rem;
}

.tour-progress-label {
  font-size: 1rem;
  text-align: center;
}

.tour-save-banner {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.tour-save-banner[data-tone="success"] {
  color: var(--success);
}

.tour-save-banner[data-tone="danger"] {
  color: var(--danger);
}

.tour-save-banner[data-tone="info"] {
  color: var(--info);
}

.tour-card-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92%, 92%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  padding-bottom: 0.3rem;
  scrollbar-width: none;
}

.tour-card-track::-webkit-scrollbar {
  display: none;
}

.tour-item-card {
  min-height: 48px;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-card) + 6px);
  background: var(--surface);
  scroll-snap-align: center;
  box-shadow: var(--shadow-soft);
}

.tour-item-card--compact {
  min-height: 0;
  gap: 0.65rem;
}

.tour-item-step {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
}

.tour-item-product {
  display: grid;
  grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.tour-item-product h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.tour-product-image,
.tour-product-image__placeholder {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

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

.tour-product-image__placeholder {
  color: var(--muted);
  font-size: 1.6rem;
}

.tour-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.tour-outcome-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.tour-item-form {
  display: grid;
  gap: 0.85rem;
}

.tour-field {
  display: grid;
  gap: 0.35rem;
}

.tour-page .btn,
.tour-page .form-control,
.tour-page .form-select,
.tour-page .input-group-text,
.tour-page .tour-store-card {
  min-height: 48px;
}

.tour-page textarea.form-control {
  min-height: 110px;
}

.tour-page .btn-success-subtle {
  color: #fff;
  background: var(--success);
  border-color: transparent;
}

.tour-page .btn-danger-subtle {
  color: #fff;
  background: var(--danger);
  border-color: transparent;
}

.tour-page .btn-secondary-subtle {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  border-color: var(--border);
}

.tour-competitor-badge {
  color: #7a3b00;
  background: rgba(255, 166, 0, 0.2);
  border: 1px solid rgba(255, 166, 0, 0.35);
}

.reporting-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.reporting-filter {
  display: grid;
  gap: 0.35rem;
}

.reporting-filter-panel .reporting-date-search {
  min-width: min(100%, 38rem);
}

.reporting-date-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.reporting-date-field {
  display: grid;
  gap: 0.35rem;
}

.reporting-date-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.reporting-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.reporting-kpi .card-body,
.reporting-summary-grid {
  display: grid;
  gap: 0.35rem;
}

.reporting-kpi strong,
.reporting-summary-grid strong {
  font-size: 1.7rem;
}

.reporting-campaign-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reporting-inline-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.reporting-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reporting-competition-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.reporting-gap-badge {
  font-variant-numeric: tabular-nums;
}

.reporting-page .app-page-hero {
  min-height: 118px;
  padding: var(--space-4);
}

.reporting-context-toolbar {
  display: block;
  padding: 0;
  overflow: visible;
}

.reporting-context-toolbar__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--text);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
  min-height: 46px;
  padding: .72rem 1rem;
}

.reporting-context-toolbar__summary::-webkit-details-marker {
  display: none;
}

.reporting-context-toolbar[open] .reporting-context-toolbar__summary .bi {
  transform: rotate(180deg);
}

.reporting-context-toolbar[open] .reporting-context-toolbar__summary {
  border-bottom: 1px solid var(--border);
}

.reporting-context-toolbar__body,
.reporting-toolbar-actions,
.reporting-scorecard-actions {
  display: flex;
  align-items: flex-end;
  gap: .65rem;
}

.reporting-context-toolbar__body {
  justify-content: space-between;
  padding: .85rem 1rem 1rem;
}

.reporting-toolbar-fields {
  display: grid;
  flex: 1 1 auto;
  gap: .75rem;
  align-items: end;
}

.reporting-toolbar-fields--board {
  grid-template-columns: minmax(9rem, .8fr) minmax(8rem, .7fr) minmax(14rem, 1.4fr);
}

.reporting-toolbar-fields--detailed {
  grid-template-columns: minmax(18rem, 1fr) minmax(14rem, .9fr) minmax(12rem, .8fr);
}

.reporting-toolbar-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reporting-filter-chip {
  min-width: 0;
  padding: .55rem .65rem;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.reporting-filter-chip .app-filter-field__label,
.reporting-filter-chip .reporting-date-field span {
  font-size: .68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reporting-filter-chip .form-select,
.reporting-filter-chip .form-control {
  min-height: 2rem;
  padding-top: .25rem;
  padding-bottom: .25rem;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  font-size: .84rem;
  font-weight: 800;
}

.reporting-toolbar-actions .btn svg,
.reporting-export-item svg {
  width: 1rem;
  height: 1rem;
}

.reporting-toolbar-menu {
  min-width: 15rem;
  padding: .45rem;
}

.reporting-actions-menu {
  min-width: 20rem;
}

.reporting-export-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 2.25rem;
  border-radius: calc(var(--radius-card) - 2px);
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: .86rem;
  font-weight: 700;
  text-align: left;
}

.reporting-scorecard-menu {
  min-width: 18rem;
  padding: .75rem;
}

.reporting-scorecard-quarter {
  margin-bottom: .7rem;
}

.reporting-scorecard-actions {
  flex-wrap: wrap;
}

.reporting-scorecard-actions .btn {
  flex: 1 1 4.5rem;
}

.reporting-toolbar-meta {
  align-self: center;
  min-width: 0;
}

.reporting-toolbar-meta .app-filter-panel__chips {
  max-width: 18rem;
}

.reporting-view-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.reporting-view-tabs .nav-link svg,
.reporting-macro-panel header .btn svg,
.reporting-macro-actions .btn svg {
  width: 1rem;
  height: 1rem;
}

.reporting-macro-controls {
  grid-template-columns: minmax(9rem, 0.8fr) minmax(8rem, 0.7fr) minmax(14rem, 1.4fr) auto;
  align-items: end;
}

.reporting-macro-site-field select {
  min-height: 4.8rem;
}

.reporting-macro-actions {
  align-self: end;
  justify-content: flex-end;
}

.reporting-macro-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.reporting-macro-kpi {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--macro-tone, #198754);
  border-radius: var(--radius-card);
  background: var(--bs-card-bg);
  box-shadow: var(--shadow-soft);
}

.reporting-macro-kpi[data-status="warn"] {
  --macro-tone: #b7791f;
}

.reporting-macro-kpi[data-status="ko"] {
  --macro-tone: #dc3545;
}

.reporting-macro-kpi[data-status="ok"] {
  --macro-tone: #198754;
}

.reporting-macro-kpi span,
.reporting-macro-panel header span,
.reporting-macro-list span,
.reporting-macro-metric span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.reporting-macro-kpi strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--text);
  overflow-wrap: anywhere;
}

.reporting-macro-kpi em {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.reporting-macro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reporting-macro-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--macro-tone, #198754);
  border-radius: var(--radius-card);
  background: var(--bs-card-bg);
  box-shadow: var(--shadow-soft);
}

.reporting-macro-panel--campaigns { --macro-tone: #198754; }
.reporting-macro-panel--competitors { --macro-tone: #0d6efd; }
.reporting-macro-panel--map { --macro-tone: #b7791f; }
.reporting-macro-panel--var { --macro-tone: #dc3545; }
.reporting-macro-panel--shelf { --macro-tone: #6f42c1; }
.reporting-macro-panel--sponsored { --macro-tone: #0ea5e9; }
.reporting-macro-panel--anomalies { --macro-tone: #0f766e; }

.image-review-page {
  background: var(--app-bg, #f8fafc);
  min-height: calc(100vh - 56px);
}

.image-review-toolbar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.image-review-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.image-review-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
}

.image-review-card.is-busy {
  opacity: 0.58;
  pointer-events: none;
}

.image-review-card__header,
.image-review-card__actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.image-review-card__header h2 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
}

.image-review-card__body {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-review-preview__label {
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.image-review-preview__frame {
  align-items: center;
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--bs-body-color) 4%, transparent);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.image-review-preview__frame img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.image-review-empty {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.image-review-source {
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .image-review-list,
  .image-review-card__body {
    grid-template-columns: 1fr;
  }
}

.reporting-macro-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.reporting-macro-panel h2 {
  margin: 0.2rem 0 0;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.reporting-macro-panel__body {
  display: grid;
  gap: 0.8rem;
}

.reporting-macro-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.reporting-macro-metric {
  min-width: 0;
  padding: 0.65rem;
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.reporting-macro-metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.reporting-macro-list {
  display: grid;
  gap: 0.45rem;
}

.reporting-macro-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.reporting-macro-list__row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.reporting-macro-panel canvas {
  width: 100% !important;
  max-height: 7.5rem;
  margin-top: 0.7rem;
}

.user-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.user-action-buttons .icon-only-btn svg {
  width: 1rem;
  height: 1rem;
}

.store-recap-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface-2);
}

.store-recap-tab {
  min-width: 0;
  min-height: 2.25rem;
  padding: .45rem .65rem;
  border: 0;
  border-radius: .55rem;
  color: var(--muted);
  background: transparent;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.store-recap-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .055);
}

.store-recap-tab:active {
  transform: scale(.96);
}

.store-recap-tab.active {
  color: #fff;
  background: #e3008c;
  box-shadow: 0 8px 20px rgba(227, 0, 140, .28);
}

@media (max-width: 575.98px) {
  .store-recap-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body {
    --bg: #080a12;
    --surface: #121722;
    --surface-2: #171d2a;
    --text: #f7f8fb;
    --muted: #aeb7c7;
    --border: rgba(255, 255, 255, .1);
    --bs-body-color: #f7f8fb;
    --bs-secondary-color: #aeb7c7;
    --bs-tertiary-bg: #171d2a;
    font-size: 14px;
    background:
      radial-gradient(circle at 50% -8rem, color-mix(in srgb, var(--brand-violet) 22%, transparent), transparent 23rem),
      radial-gradient(circle at 100% 8rem, color-mix(in srgb, var(--brand-magenta) 12%, transparent), transparent 18rem),
      #080a12;
  }

  .navbar {
    min-height: 58px;
    padding: 0.55rem 0.85rem !important;
    background: color-mix(in srgb, #0d101a 92%, transparent) !important;
    border-bottom: 0;
  }

  .navbar-brand {
    display: none;
  }

  .navbar-toggler {
    order: 1;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 16px;
    color: #f8fafc;
    background: transparent;
    box-shadow: none !important;
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
  }

  .navbar-toggler svg {
    width: 25px;
    height: 25px;
  }

  .mobile-navbar-actions {
    order: 2;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
  }

  .mobile-navbar-action {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    color: #f8fafc;
    background: #121722;
  }

  .mobile-navbar-action svg {
    width: 19px;
    height: 19px;
  }

  .mobile-navbar-action--bell {
    border-color: transparent;
    background: transparent;
  }

  .mobile-navbar-action--bell span {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand-magenta);
    box-shadow: 0 0 0 2px #080a12;
  }

  .navbar-collapse {
    position: fixed;
    inset: 0;
    z-index: 2050;
    width: 100%;
    height: 100dvh;
    margin: 0;
    overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 1.25rem calc(22px + env(safe-area-inset-bottom));
    color: #fff;
    background: #080a12;
    border: 0;
    border-radius: 0;
  }

  .navbar-nav {
    display: none;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .mobile-menu-drawer__head {
    width: min(100%, 430px);
    margin-inline: auto;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .navbar-collapse.show .mobile-menu-drawer__head,
  .navbar-collapse.collapsing .mobile-menu-drawer__head {
    display: flex;
  }

  .mobile-menu-country {
    width: min(100%, 430px);
    margin: 1.25rem auto 0;
    display: none;
    gap: .45rem;
    color: #aab3c7;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-menu-country select {
    min-height: 46px;
    margin-top: .45rem;
    border-radius: 14px;
    font-weight: 900;
  }

  .navbar-collapse.show .mobile-menu-country,
  .navbar-collapse.collapsing .mobile-menu-country {
    display: block;
  }

  .mobile-menu-drawer__eyebrow {
    color: #ff4fb7;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-menu-drawer__head h2 {
    margin: .15rem 0 0;
    color: #fff;
    font-family: var(--ui-font) !important;
    font-size: 1.5rem;
    font-weight: 900 !important;
    line-height: 1;
    text-transform: uppercase;
  }

  .navbar-collapse.show .navbar-nav,
  .navbar-collapse.collapsing .navbar-nav {
    display: none !important;
  }

  .mobile-menu-drawer__list {
    width: min(100%, 430px);
    display: none;
    gap: .55rem;
    margin: 1.75rem auto 0;
    overflow: visible;
  }

  .navbar-collapse.show .mobile-menu-drawer__list,
  .navbar-collapse.collapsing .mobile-menu-drawer__list {
    display: grid;
  }

  .mobile-menu-drawer__link {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .72rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 0 1rem !important;
    color: #e2e8f0 !important;
    background: #121722;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-menu-drawer__link svg {
    width: 19px;
    min-width: 19px;
    height: 19px;
    margin-right: 0 !important;
  }

  .mobile-menu-drawer__link.is-active {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(135deg, #ff7144, #e3008c 48%, #9b22e8);
  }

  .navbar-collapse > .d-flex {
    display: none !important;
  }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    background: rgba(8, 10, 18, .94);
  }

  .container-fluid {
    width: min(100%, 430px);
    padding: 0.9rem !important;
  }

  .app-page {
    --bg: #080a12;
    --surface: #121722;
    --surface-2: #171d2a;
    --text: #f7f8fb;
    --muted: #aeb7c7;
    --border: rgba(255, 255, 255, .1);
    --bs-body-color: #f7f8fb;
    --bs-secondary-color: #aeb7c7;
    --bs-tertiary-bg: #171d2a;
    color: var(--text);
    padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
  }

  .mobile-notifications-panel {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: block;
    overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 1.25rem calc(22px + env(safe-area-inset-bottom));
    color: #fff;
    background: #080a12;
  }

  .mobile-notifications-panel[hidden] {
    display: none;
  }

  .mobile-notifications-panel__head,
  .mobile-notifications-panel__body {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .mobile-notifications-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .mobile-notifications-panel__head span {
    color: #ff4fb7;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-notifications-panel__head h2 {
    margin: .15rem 0 0;
    color: #fff;
    font-family: var(--ui-font) !important;
    font-size: 1.5rem;
    font-weight: 900 !important;
    line-height: 1;
  }

  .mobile-notifications-panel__body {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
  }

  .mobile-notifications-panel article {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: #121722;
  }

  .mobile-notifications-panel strong {
    display: block;
    color: #fff;
    font-size: .9rem;
  }

  .mobile-notifications-panel p {
    margin: .35rem 0 0;
    color: #94a3b8;
    font-size: .86rem;
    line-height: 1.4;
  }

  .app-page-hero {
    display: block !important;
    margin-bottom: 1rem;
    padding: 0.25rem 0 0.1rem !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-page-hero h1 {
    max-width: none;
    margin: 0;
    color: #fff !important;
    font-family: var(--ui-font) !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    line-height: 1;
    letter-spacing: 0 !important;
    text-transform: uppercase;
  }

  .app-page-hero p {
    max-width: 28rem;
    margin-top: .5rem;
    color: #cbd5e1 !important;
    font-size: 15px;
    line-height: 1.35;
  }

  .app-page-hero .btn,
  .app-page-hero .app-segmented,
  .app-page-hero .dropdown {
    width: auto;
    margin-top: .8rem;
  }

  .mobile-section-rail {
    position: sticky;
    top: 58px;
    z-index: 1020;
    display: flex;
    gap: .45rem;
    margin: 0 -0.9rem .85rem;
    padding: .55rem .9rem;
    overflow-x: auto;
    background: linear-gradient(180deg, color-mix(in srgb, #080a12 96%, transparent), color-mix(in srgb, #080a12 82%, transparent));
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }

  .mobile-section-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-section-rail button {
    flex: 0 0 auto;
    min-height: 34px;
    max-width: 13rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    padding: .35rem .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem;
    font-weight: 800;
  }

  .mobile-section-rail button.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--brand-grad);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-magenta) 22%, transparent);
  }

  .card,
  .modal-content,
  .dropdown-menu,
  .app-filter-panel {
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--brand-magenta) 5%, transparent), transparent 42%),
      color-mix(in srgb, #121722 92%, var(--surface)) !important;
    border-color: rgba(255, 255, 255, .1) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .26) !important;
  }

  .dashboard-page .card,
  .dashboard-page .dropdown-menu,
  .dashboard-page .app-filter-panel {
    border: 1px solid rgba(255, 255, 255, .1) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .26) !important;
  }

  .dashboard-page .app-page-hero h1 {
    color: #fff !important;
  }

  .dashboard-page .app-page-hero p {
    color: #cbd5e1 !important;
  }

  .card-header,
  .card-footer,
  .table-light,
  .modal-header,
  .modal-footer {
    background: color-mix(in srgb, #171d2a 88%, transparent) !important;
  }

  .card-header {
    gap: .65rem;
  }

  .mobile-disclosure-card > .card-header {
    position: relative;
    min-height: 52px;
    padding-right: 3.2rem !important;
  }

  .mobile-card-toggle {
    position: absolute;
    top: 50%;
    right: .7rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-2) 86%, transparent);
    transform: translateY(-50%);
  }

  .mobile-card-toggle svg {
    width: 17px;
    height: 17px;
    transition: transform 160ms ease;
  }

  .mobile-card-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .mobile-disclosure-card.is-mobile-collapsed > .card-body,
  .mobile-disclosure-card.is-mobile-collapsed > .card-footer,
  .mobile-disclosure-card.is-mobile-collapsed > .table-responsive {
    display: none !important;
  }

  .app-filter-panel {
    border-radius: 14px;
  }

  .app-filter-panel__header,
  .app-filter-panel__body {
    padding-inline: .85rem;
  }

  .app-filter-panel__search .input-group {
    border-radius: 12px;
    background: color-mix(in srgb, #0e131f 86%, transparent);
  }

  .table-responsive,
  .price-table-scroll {
    margin-inline: -1px;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--brand-magenta) 12%, transparent), transparent 1.25rem),
      color-mix(in srgb, var(--surface) 92%, transparent);
  }

  .tour-filters,
  .tour-selection-layout,
  .tour-item-product,
  .reporting-filters,
  .reporting-date-filters,
  .reporting-kpis,
  .reporting-macro-controls,
  .reporting-macro-grid {
    grid-template-columns: 1fr;
  }

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

  .reporting-macro-actions {
    justify-content: stretch;
  }

  .reporting-macro-actions .btn {
    flex: 1 1 0;
  }

  .tour-hero {
    padding: 1rem;
  }

  .tour-visit-topbar,
  .tour-visit-bottombar,
  .tour-screen-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tour-card-track {
    grid-auto-columns: 100%;
  }

  .tour-page {
    padding-bottom: var(--tour-safe-bottom);
  }

  .d-flex.justify-content-between,
  .card-header.d-flex,
  .row.g-2.align-items-center {
    align-items: stretch !important;
  }

  .table-responsive,
  .price-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 44px;
  }

  .app-search-trigger {
    display: none !important;
  }

  .drop-radar-grid,
  .dashboard-cockpit,
  .cockpit-split {
    grid-template-columns: 1fr;
  }

  .dashboard-cockpit {
    min-height: 0;
  }

  .cockpit-list .card-body {
    max-height: 320px;
  }

  .drop-card-prices,
  .cockpit-kpis {
    grid-template-columns: 1fr;
  }

  .cockpit-detail-head {
    flex-direction: column;
  }

  .cockpit-best {
    width: 100%;
  }

  .history-controls,
  .history-layout,
  .history-leaderboard-layout,
  .history-timeline-layout {
    grid-template-columns: 1fr;
  }

  .history-controls {
    flex-wrap: nowrap;
    align-items: stretch;
    margin-inline: calc(var(--space-3) * -1);
    padding-inline: var(--space-3);
  }

  .history-product-search,
  .history-controls .form-select,
  .history-controls .btn {
    width: auto;
    min-width: 180px;
    flex: 0 0 auto;
  }

  .history-product-search {
    min-width: 260px;
    max-width: 320px;
  }

  .history-controls #historySiteFilter,
  .history-controls #historyZoom {
    width: auto;
    flex: 0 0 auto;
  }

  .timeline-event {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 991.98px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  input,
  select,
  textarea,
  .form-control,
  .form-select,
  .app-multi-select__button {
    font-size: 16px !important;
  }

  button,
  .btn,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }

  body.dashboard-filter-drawer-open {
    overflow-x: clip;
  }

  .mobile-tabbar,
  .mobile-more-menu {
    display: none !important;
  }

  .app-page {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
  }

  .dashboard-page {
    overflow-x: clip;
  }

  .dashboard-page .mobile-section-rail {
    display: none !important;
  }

  .dashboard-page .app-page-hero {
    margin-bottom: .75rem;
    padding-bottom: .2rem;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .dashboard-page .app-page-hero p {
    display: none;
  }

  .navbar {
    position: sticky;
    top: 0;
    z-index: 2040;
  }

  .dashboard-mobile-sticky-controls {
    position: sticky;
    top: 62px;
    z-index: 1030;
    display: grid;
    gap: .55rem;
    margin: 0 -0.9rem .75rem;
    padding: .55rem .9rem .65rem;
    background: #080a12;
    backface-visibility: hidden;
    contain: layout style;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .dashboard-filter-drawer-open .dashboard-mobile-sticky-controls {
    z-index: 2055;
  }

  .dashboard-mobile-sticky-controls:empty {
    display: none;
  }

  .dashboard-page .dashboard-mode-switch {
    width: 100%;
    margin-top: 0;
  }

  .dashboard-page .dashboard-mode-switch button {
    min-height: 40px;
  }

  .dashboard-page .dashboard-filter-panel {
    position: relative;
    top: auto;
    z-index: 1030;
    margin-bottom: 0;
    border-radius: 16px;
    overflow: visible;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__header {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: .55rem;
    align-items: start;
    padding: .6rem;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__quick-actions {
    padding-top: 0;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-icon-toggle {
    width: 42px;
    height: 42px;
    align-self: start;
    border-radius: 12px;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__search .input-group {
    min-height: 42px;
    border-radius: 12px;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__meta {
    display: none;
    min-height: 0;
    padding-top: .35rem;
  }

  .dashboard-page .dashboard-filter-panel.has-active-filters .app-filter-panel__meta {
    display: none;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__chips {
    display: none;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__toggle {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 42px;
    align-self: start;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 12px;
    color: #fff;
    background: #171d2a !important;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__toggle-badge:not([hidden]) {
    position: absolute;
    right: -.24rem;
    bottom: -.24rem;
    min-width: 1.08rem;
    height: 1.08rem;
    display: grid;
    place-items: center;
    padding: 0 .24rem;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta));
    box-shadow: 0 5px 14px rgba(0, 0, 0, .32);
    font-size: .62rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__header:has(.app-filter-panel__quick-actions:not(:empty)) .app-filter-panel__toggle {
    grid-column: auto;
    width: 42px;
    justify-content: center;
  }

  .dashboard-page .dashboard-filter-panel .app-filter-panel__toggle [data-filter-collapse-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .dashboard-page .dashboard-filter-panel:not(.is-mobile-drawer-open) .app-filter-panel__body {
    display: none !important;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open {
    position: relative;
    z-index: 2060;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 16px;
    overflow: visible;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-panel__header {
    padding: .6rem;
    border-bottom: 0;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-panel__body {
    display: block !important;
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    right: 0;
    max-height: min(58vh, 430px);
    overflow-y: auto;
    padding: .7rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--brand-magenta) 5%, transparent), transparent 45%),
      #121722;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .42);
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-field {
    gap: .24rem;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-field:nth-child(5) {
    grid-column: 1 / -1;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-field__label {
    font-size: .68rem;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-multi-select__button {
    min-height: 38px;
    border-radius: 10px;
    padding: .34rem .55rem;
    font-size: .82rem;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-field__control {
    height: 40px !important;
    min-height: 40px !important;
    overflow: hidden;
    border-radius: 10px !important;
    padding: .35rem .55rem;
    font-size: .84rem;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-panel__secondary {
    align-items: stretch;
    margin-top: .65rem;
    padding-top: .65rem;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open .app-filter-panel__actions {
    width: 100%;
  }

  .dashboard-page .dashboard-filter-panel.is-mobile-drawer-open #btnDashReset {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    color: #f7f8fb !important;
    background: #171d2a !important;
  }

  .dashboard-mobile-filter-apply {
    flex: 1 1 100%;
    min-height: 42px;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--brand-grad) !important;
  }

  .dashboard-page .dashboard-overview {
    gap: .75rem;
  }

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

  .dashboard-page .dashboard-kpi-card {
    min-height: 96px;
    padding: .75rem;
    border-radius: 14px;
  }

  .dashboard-page .dashboard-kpi-card:nth-child(4) {
    order: 1;
    grid-column: 1 / -1;
    min-height: 104px;
  }

  .dashboard-page .dashboard-kpi-card:nth-child(1) {
    order: 2;
  }

  .dashboard-page .dashboard-kpi-card:nth-child(7) {
    order: 3;
  }

  .dashboard-page .dashboard-kpi-card:nth-child(2) {
    order: 4;
  }

  .dashboard-page .dashboard-kpi-card:nth-child(5) {
    order: 5;
  }

  .dashboard-page .dashboard-kpi-card:nth-child(3),
  .dashboard-page .dashboard-kpi-card:nth-child(6) {
    display: none;
  }

  .dashboard-page .dashboard-kpi-top {
    gap: .4rem;
    font-size: .72rem;
  }

  .dashboard-page .dashboard-kpi-card strong {
    margin-top: .35rem;
    font-size: 1.32rem;
  }

  .dashboard-page .dashboard-kpi-card:nth-child(4) strong {
    font-size: 1.9rem;
  }

  .dashboard-page .dashboard-kpi-card small {
    margin-top: .28rem;
    font-size: .72rem;
  }

  .dashboard-page .dashboard-kpi-date {
    font-size: .88rem !important;
  }

  .dashboard-page .dashboard-sparkline {
    right: .5rem;
    bottom: .45rem;
    width: 42%;
    height: 28px;
  }

  .dashboard-page .dashboard-overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .dashboard-page .dashboard-overview-grid .dashboard-panel {
    min-height: 0;
  }

  .dashboard-page .dashboard-overview-grid .dashboard-panel:nth-child(3) {
    order: 1;
  }

  .dashboard-page .dashboard-overview-grid .dashboard-panel:nth-child(4) {
    order: 2;
  }

  .dashboard-page .dashboard-overview-grid .dashboard-panel:nth-child(1) {
    order: 3;
  }

  .dashboard-page .dashboard-overview-grid .dashboard-panel:nth-child(2) {
    order: 4;
  }

  .dashboard-page .dashboard-overview-grid .dashboard-panel:nth-child(5) {
    order: 5;
  }

  .dashboard-page .dashboard-panel .card-header {
    padding: .8rem .9rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #f7f8fb;
    background: color-mix(in srgb, #171d2a 92%, transparent) !important;
  }

  .dashboard-page .dashboard-panel .card-header h5 {
    color: #fff;
    font-size: .98rem;
  }

  .dashboard-page .dashboard-panel .card-header .text-muted {
    color: #aeb7c7 !important;
    font-size: .75rem;
    line-height: 1.25;
  }

  .dashboard-page #overviewWatchCard.mobile-disclosure-card > .card-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center !important;
    padding-right: .9rem !important;
  }

  .dashboard-page #overviewWatchCard .mobile-card-toggle {
    display: none;
  }

  .dashboard-page #overviewWatchCard [data-switch-dashboard-mode="matrix"] {
    width: 48px;
    min-width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 14px !important;
    color: #fff !important;
    background: #171d2a !important;
  }

  .dashboard-page #overviewWatchCard [data-switch-dashboard-mode="matrix"] span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .dashboard-page #overviewWatchCard [data-switch-dashboard-mode="matrix"] i {
    margin: 0 !important;
  }

  .dashboard-page .overview-alert-list {
    max-height: 280px;
    overflow-y: auto;
  }

  .dashboard-page #overviewWatchCard .table-responsive {
    overflow-x: hidden;
  }

  .dashboard-page .overview-watch-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-page .overview-watch-table th,
  .dashboard-page .overview-watch-table td {
    padding: .65rem .5rem;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
  }

  .dashboard-page .overview-watch-table thead.table-light th {
    border-color: rgba(255, 255, 255, .08);
    color: #aeb7c7;
    background: #171d2a !important;
  }

  .dashboard-page .overview-watch-table tbody td {
    border-color: rgba(255, 255, 255, .08);
    color: #f7f8fb;
    background: #121722;
  }

  .dashboard-page .overview-watch-table th:nth-child(2),
  .dashboard-page .overview-watch-table td:nth-child(2),
  .dashboard-page .overview-watch-table th:nth-child(4),
  .dashboard-page .overview-watch-table td:nth-child(4),
  .dashboard-page .overview-watch-table th:nth-child(5),
  .dashboard-page .overview-watch-table td:nth-child(5),
  .dashboard-page .overview-watch-table th:nth-child(6),
  .dashboard-page .overview-watch-table td:nth-child(6),
  .dashboard-page .overview-watch-table th:nth-child(7),
  .dashboard-page .overview-watch-table td:nth-child(7) {
    display: none;
  }

  .dashboard-page .overview-watch-table th:nth-child(1),
  .dashboard-page .overview-watch-table td:nth-child(1) {
    width: 54%;
  }

  .dashboard-page .overview-watch-table th:nth-child(3),
  .dashboard-page .overview-watch-table td:nth-child(3) {
    width: 24%;
  }

  .dashboard-page .overview-watch-table th:nth-child(8),
  .dashboard-page .overview-watch-table td:nth-child(8) {
    width: 22%;
  }

  .dashboard-page .overview-watch-table td:first-child strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .dashboard-page .overview-watch-table td:first-child .small {
    font-size: .7rem;
  }

  .dashboard-page .overview-alert-pill {
    max-width: 100%;
    justify-content: center;
    padding-inline: .45rem;
    text-align: center;
    white-space: normal;
  }

  .dashboard-page .overview-watch-pagination {
    gap: .6rem;
    padding: .75rem .85rem;
  }

  .dashboard-page .overview-watch-pagination small {
    display: none;
  }

  .dashboard-page #matrixView.dashboard-price-card {
    height: auto;
    min-height: 0;
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .dashboard-page #matrixView.mobile-disclosure-card.is-mobile-collapsed > .card-body {
    display: block !important;
  }

  .dashboard-page #matrixView.mobile-disclosure-card.is-mobile-collapsed > .card-footer {
    display: flex !important;
  }

  .dashboard-page #matrixView .mobile-card-toggle {
    display: none !important;
  }

  .dashboard-page #matrixView > .card-header {
    display: none !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center !important;
    padding: .78rem .85rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #f7f8fb;
    background: #171d2a !important;
  }

  .dashboard-page #matrixView > .card-header h5 {
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: .98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page #matrixView > .card-header h5 i {
    color: #aeb7c7 !important;
  }

  .dashboard-page #matrixView > .card-header > .d-flex:last-child {
    min-width: 0;
    justify-content: flex-end;
    gap: .45rem !important;
  }

  .dashboard-page #matrixView #tableUpdated {
    display: none;
  }

  .dashboard-page #matrixView #btnSiteVisibility {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 12px !important;
    color: #f7f8fb !important;
    background: #101522 !important;
    box-shadow: none !important;
    font-size: 0;
  }

  .dashboard-page #matrixView #btnSiteVisibility i {
    margin: 0 !important;
    font-size: 1rem;
  }

  .dashboard-page #matrixView #hiddenSiteCount {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .25rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: .62rem;
  }

  .dashboard-page #matrixView .dropdown-menu {
    max-width: calc(100vw - 1.5rem);
    max-height: min(64vh, 460px);
    overflow: auto;
  }

  .dashboard-page #matrixView .card-body {
    padding: 0 !important;
    background: transparent;
  }

  .dashboard-page #matrixView .price-table-scroll {
    margin: 0;
    overflow-x: hidden;
    border-radius: 0;
    background: transparent;
  }

  .dashboard-page #matrixView > .card-footer {
    display: none !important;
  }

  .dashboard-page #priceTable {
    display: block;
    width: 100%;
    min-width: 0 !important;
    border-collapse: separate;
  }

  .dashboard-page #priceTable thead {
    display: none;
  }

  .dashboard-page #priceTable tbody {
    display: grid;
    width: 100%;
    gap: .72rem;
  }

  .dashboard-page #priceTable[hidden],
  .dashboard-page #matrixMobileList[hidden] {
    display: none !important;
  }

  .dashboard-page #matrixMobileList {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: .72rem;
    padding: .18rem .25rem .65rem;
    background: transparent;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-card {
    position: relative;
    width: 100%;
    min-width: 0;
    display: grid;
    gap: .58rem;
    overflow: hidden;
    padding: .74rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--brand-magenta) 6%, transparent), transparent 50%),
      #121722;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-card *,
  .dashboard-page #matrixMobileList .matrix-mobile-card *::before,
  .dashboard-page #matrixMobileList .matrix-mobile-card *::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-card::selection,
  .dashboard-page #matrixMobileList .matrix-mobile-card *::selection {
    color: inherit;
    background: transparent;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-card-summary {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "product product product"
      "visual price actions"
      "visual price actions"
      "visual ean ean";
    column-gap: .76rem;
    row-gap: .36rem;
    min-width: 0;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-card.has-no-product-image .matrix-mobile-card-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "product product"
      "price actions"
      "ean ean";
  }

  .dashboard-page #matrixMobileList .matrix-product-cell {
    grid-area: product;
  }

  .dashboard-page #matrixMobileList .matrix-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    align-items: start;
  }

  .dashboard-page #matrixMobileList .matrix-product-copy {
    min-width: 0;
  }

  .dashboard-page #matrixMobileList .matrix-product-cell a {
    display: -webkit-box;
    overflow: hidden;
    color: #fff !important;
    font-size: .94rem;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .dashboard-page #matrixMobileList .matrix-product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .28rem;
  }

  .dashboard-page #priceTable .matrix-product-meta,
  .dashboard-page #matrixMobileList .matrix-product-meta {
    max-width: 100%;
    margin-top: .18rem;
    overflow: hidden;
    color: #aeb7c7 !important;
    font-size: .76rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-detail-toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #f7f8fb;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta));
    touch-action: manipulation;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-detail-toggle:focus {
    outline: 0;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-detail-toggle b {
    min-width: 0;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    font-size: .82rem;
    font-weight: 900;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-detail-toggle[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-magenta) 22%, transparent);
  }

  .dashboard-page #matrixMobileList .matrix-mobile-detail-toggle.is-empty {
    display: none;
  }

  .dashboard-page #matrixMobileList .matrix-product-visual-cell {
    grid-area: visual;
    width: calc(104px + .74rem) !important;
    height: 126px !important;
    min-width: calc(104px + .74rem);
    max-width: calc(104px + .74rem);
    min-height: 126px;
    max-height: 126px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: -.74rem;
    overflow: hidden;
    pointer-events: none;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-card.has-no-product-image .matrix-product-visual-cell,
  .dashboard-page #matrixMobileList .matrix-product-visual:empty {
    display: none !important;
  }

  .dashboard-page #matrixMobileList .matrix-product-visual {
    width: calc(104px + .74rem) !important;
    height: 126px !important;
    min-width: calc(104px + .74rem);
    max-width: calc(104px + .74rem);
    min-height: 126px;
    max-height: 126px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .dashboard-page #matrixMobileList .matrix-product-image {
    display: block !important;
    width: 118px !important;
    height: 148px !important;
    min-width: 118px;
    max-width: 118px !important;
    min-height: 148px;
    max-height: 148px !important;
    object-fit: contain !important;
    object-position: right center !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 0;
    background: transparent;
    transform: translateX(-.28rem);
    -webkit-user-drag: none;
  }

  .dashboard-page #matrixMobileList .matrix-identity-cell {
    grid-area: ean;
    display: flex;
    align-items: center;
    align-self: end;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
    text-align: right;
  }

  .dashboard-page #matrixMobileList .matrix-ref-label {
    display: none;
  }

  .dashboard-page #matrixMobileList .ean-badge {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: rgba(174, 183, 199, .62);
    background: transparent;
    font-size: .64rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page #matrixMobileList .matrix-best-cell {
    grid-area: price;
    min-width: 0;
    align-self: center;
    justify-self: start;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-card.has-no-product-image .matrix-best-cell {
    margin-top: .34rem;
  }

  .dashboard-page #matrixMobileList .matrix-best-content {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: .05rem;
    justify-items: start;
    overflow: hidden;
    text-align: left;
  }

  .dashboard-page #matrixMobileList .matrix-best-cell strong {
    color: #fff !important;
    font-size: 1.72rem;
    line-height: .98;
    white-space: nowrap;
  }

  .dashboard-page #matrixMobileList .matrix-best-content .best-site-badge {
    display: none;
  }

  .dashboard-page #matrixMobileList .matrix-best-content .text-muted {
    max-width: 100%;
    overflow: hidden;
    color: #aeb7c7 !important;
    font-size: .78rem !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis;
  }

  .dashboard-page #matrixMobileList .matrix-action-cell {
    grid-area: actions;
    align-self: center;
    justify-self: end;
  }

  .dashboard-page #matrixMobileList .matrix-action-cell .btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 12px !important;
    color: #f7f8fb !important;
    background: #171d2a !important;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-details {
    display: none;
    gap: .42rem;
  }

  .dashboard-page #matrixMobileList .matrix-mobile-card.is-mobile-expanded .matrix-mobile-details {
    display: grid;
  }

  .dashboard-page #matrixMobileList .matrix-site-cell {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(5.1rem, .54fr) minmax(0, 1fr) 4.7rem;
    gap: .32rem;
    align-items: center;
    overflow: hidden;
    padding: .5rem .62rem !important;
    border: 1px solid color-mix(in srgb, var(--matrix-site-accent, #38bdf8) 26%, rgba(255, 255, 255, .09)) !important;
    border-radius: 12px;
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--matrix-site-accent, #38bdf8) 24%, #171d2a), #171d2a 64%) !important;
  }

  .dashboard-page #matrixMobileList .matrix-site-mobile-name {
    display: block;
    min-width: 0;
    margin-bottom: 0;
    overflow: hidden;
    color: #f7f8fb;
    font-size: .76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .dashboard-page #matrixMobileList .matrix-price-cell {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .1rem;
    align-items: center;
    text-align: left;
  }

  .dashboard-page #matrixMobileList .matrix-price-main,
  .dashboard-page #matrixMobileList .matrix-price-status,
  .dashboard-page #matrixMobileList .matrix-price-meta {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: .22rem;
  }

  .dashboard-page #matrixMobileList .matrix-price-main {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .dashboard-page #matrixMobileList .matrix-price-status,
  .dashboard-page #matrixMobileList .matrix-price-meta,
  .dashboard-page #matrixMobileList .matrix-price-msrp,
  .dashboard-page #matrixMobileList .matrix-price-delta {
    grid-column: 1 / -1;
  }

  .dashboard-page #matrixMobileList .matrix-price-status:empty,
  .dashboard-page #matrixMobileList .matrix-price-msrp--empty,
  .dashboard-page #matrixMobileList .matrix-price-meta {
    display: none;
  }

  .dashboard-page #matrixMobileList .matrix-price-value {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .dashboard-page #matrixMobileList .matrix-price-seen {
    grid-column: 3;
    grid-row: 1;
    min-width: 4.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    align-self: center;
    overflow: hidden;
    color: #cbd5e1;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page #matrixMobileList .matrix-price-seen i,
  .dashboard-page #matrixMobileList .matrix-price-meta {
    display: none;
  }

  .dashboard-page #matrixMobileList .matrix-site-cell .price-normal {
    color: #f7f8fb !important;
  }

  .dashboard-page #matrixMobileList .matrix-site-cell .price-best,
  .dashboard-page #matrixMobileList .matrix-site-cell .price-drop-glow {
    color: var(--brand-magenta) !important;
  }

  .dashboard-page #matrixMobileList .matrix-price-msrp,
  .dashboard-page #matrixMobileList .matrix-price-delta {
    color: #aeb7c7;
    font-size: .66rem;
  }

  .dashboard-page #priceTable tr.matrix-product-row,
  .dashboard-page #priceTable tr.matrix-empty-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "product product"
      "identity actions"
      "price actions";
    width: 100%;
    min-width: 0;
    column-gap: .62rem;
    row-gap: .38rem;
    padding: .74rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--brand-magenta) 6%, transparent), transparent 50%),
      #121722;
    box-shadow: none;
  }

  .dashboard-page #priceTable tr.matrix-product-row,
  .dashboard-page #priceTable tr.matrix-product-row > td,
  .dashboard-page #priceTable tr.matrix-product-row > td * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #priceTable tr.matrix-product-row::selection,
  .dashboard-page #priceTable tr.matrix-product-row > td::selection,
  .dashboard-page #priceTable tr.matrix-product-row > td *::selection {
    color: inherit;
    background: transparent;
  }

  .dashboard-page #priceTable tr.matrix-product-row.has-product-image {
    grid-template-columns: 104px minmax(0, 1fr) auto;
    grid-template-areas:
      "product product product"
      "visual identity actions"
      "visual price actions";
    row-gap: .2rem;
    min-height: 11.65rem;
  }

  .dashboard-page #priceTable tr.matrix-product-row > td,
  .dashboard-page #priceTable tr.matrix-empty-row > td {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    padding: 0 !important;
    border: 0 !important;
    color: #f7f8fb;
    background: transparent !important;
    white-space: normal;
    word-break: normal;
  }

  .dashboard-page #priceTable .matrix-product-top {
    grid-area: product;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    align-items: start;
  }

  .dashboard-page #priceTable .matrix-product-cell {
    grid-area: product;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #priceTable .matrix-product-cell *,
  .dashboard-page #priceTable .matrix-identity-cell,
  .dashboard-page #priceTable .matrix-identity-cell *,
  .dashboard-page #priceTable .matrix-mobile-detail-toggle,
  .dashboard-page #priceTable .matrix-mobile-detail-toggle * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #priceTable .matrix-product-cell::selection,
  .dashboard-page #priceTable .matrix-product-cell *::selection,
  .dashboard-page #priceTable .matrix-identity-cell::selection,
  .dashboard-page #priceTable .matrix-identity-cell *::selection,
  .dashboard-page #priceTable .matrix-mobile-detail-toggle::selection,
  .dashboard-page #priceTable .matrix-mobile-detail-toggle *::selection {
    color: inherit;
    background: transparent;
  }

  .dashboard-page #priceTable .matrix-product-copy {
    min-width: 0;
  }

  .dashboard-page #priceTable .matrix-product-cell a {
    display: -webkit-box;
    overflow: hidden;
    color: #fff !important;
    font-size: .94rem;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .dashboard-page #priceTable .matrix-product-cell .text-muted,
  .dashboard-page #priceTable .matrix-identity-cell .text-muted {
    color: #aeb7c7 !important;
  }

  .dashboard-page #priceTable .matrix-product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .28rem;
  }

  .dashboard-page #priceTable .matrix-product-msrp {
    display: none;
  }

  .dashboard-page #priceTable .matrix-mobile-detail-toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #f7f8fb;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-magenta));
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #priceTable .matrix-mobile-detail-toggle:focus {
    outline: 0;
  }

  .dashboard-page #priceTable .matrix-mobile-detail-toggle b {
    min-width: 0;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    font-size: .82rem;
    font-weight: 900;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #priceTable .matrix-mobile-detail-toggle span {
    display: none;
  }

  .dashboard-page #priceTable .matrix-mobile-detail-toggle[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-magenta) 22%, transparent);
  }

  .dashboard-page #priceTable .matrix-mobile-detail-toggle.is-empty {
    display: none;
  }

  .dashboard-page #priceTable .matrix-product-visual-cell {
    grid-area: visual;
    grid-column: 1;
    grid-row: 2 / 4;
    position: relative;
    z-index: 1;
    display: none !important;
    align-self: start;
    pointer-events: none;
  }

  .dashboard-page #priceTable tr.matrix-product-row.has-product-image .matrix-product-visual-cell {
    width: 104px !important;
    height: 126px !important;
    min-width: 104px;
    max-width: 104px;
    min-height: 126px;
    max-height: 126px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
  }

  .dashboard-page #priceTable tr.matrix-product-row.has-product-image .matrix-product-inline-visual {
    display: none !important;
  }

  .dashboard-page #priceTable .matrix-product-visual {
    position: relative;
    width: 104px !important;
    height: 126px !important;
    min-width: 104px;
    max-width: 104px;
    min-height: 126px;
    max-height: 126px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .dashboard-page #priceTable .matrix-product-visual img,
  .dashboard-page #priceTable .matrix-product-inline-visual img {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 118px !important;
    height: 148px !important;
    min-width: 118px;
    max-width: 118px !important;
    min-height: 148px;
    max-height: 148px !important;
    flex: 0 0 118px;
    object-fit: contain !important;
    object-position: right center !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0;
    border: 0;
    background: transparent;
    mix-blend-mode: normal;
    transform: translate3d(0, 0, 0);
    -webkit-user-drag: none;
    -webkit-filter: none;
    filter: none;
  }

  .dashboard-page #priceTable tr.matrix-product-row.has-no-product-image .matrix-product-visual-cell,
  .dashboard-page #priceTable tr.matrix-product-row.has-no-product-image .matrix-product-inline-visual,
  .dashboard-page #priceTable .matrix-product-visual:empty {
    display: none !important;
  }

  .dashboard-page #priceTable .matrix-identity-cell {
    grid-area: identity;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    align-content: start;
    align-self: start;
    gap: .2rem .42rem;
    margin-top: 0;
    padding-top: 0 !important;
    border-top: 0 !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #priceTable .matrix-identity-cell::before {
    content: none;
  }

  .dashboard-page #priceTable .matrix-ref-label {
    color: #aeb7c7;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #priceTable .matrix-identity-cell .ean-badge {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: #f7f8fb;
    background: transparent;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none !important;
  }

  .dashboard-page #priceTable tr.matrix-product-row.has-product-image .matrix-identity-cell,
  .dashboard-page #priceTable tr.matrix-product-row.has-product-image .matrix-best-cell {
    width: 100%;
    margin-left: 0;
  }

  .dashboard-page #priceTable .matrix-best-cell {
    grid-area: price;
    display: block !important;
    min-width: 0;
    align-self: start;
    justify-self: start;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
  }

  .dashboard-page #priceTable .matrix-best-cell::before {
    content: none;
  }

  .dashboard-page #priceTable .matrix-best-cell strong {
    color: #fff !important;
    font-size: 1.72rem;
    line-height: .98;
    white-space: nowrap;
  }

  .dashboard-page #priceTable tr.matrix-product-row.is-mobile-expanded.has-product-image .matrix-best-cell {
    padding-bottom: 0 !important;
  }

  .dashboard-page #priceTable .matrix-best-content {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: .05rem;
    justify-items: start;
    overflow: hidden;
    text-align: left;
  }

  .dashboard-page #priceTable .matrix-best-content .best-site-badge,
  .dashboard-page #priceTable .matrix-best-content .text-muted {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-page #priceTable .matrix-best-content .best-site-badge {
    display: none;
  }

  .dashboard-page #priceTable .matrix-best-content .text-muted {
    color: #aeb7c7 !important;
    font-size: .78rem !important;
    line-height: 1.05 !important;
  }

  .dashboard-page #priceTable tr.matrix-product-row > td[data-matrix-site] {
    grid-column: 1 / -1;
    order: var(--matrix-mobile-order, 20);
    position: relative;
    z-index: 2;
    display: none;
    height: auto !important;
    min-height: 0;
    overflow: hidden;
    padding: .5rem .62rem !important;
    border: 1px solid color-mix(in srgb, var(--matrix-site-accent, #38bdf8) 26%, rgba(255, 255, 255, .09)) !important;
    border-radius: 12px;
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--matrix-site-accent, #38bdf8) 24%, #171d2a), #171d2a 64%) !important;
  }

  .dashboard-page #priceTable tr.matrix-product-row.is-mobile-expanded > td[data-matrix-site]:not(.matrix-site-cell--no-price) {
    display: grid;
    grid-template-columns: minmax(5.1rem, .54fr) minmax(0, 1fr) 4.7rem;
    gap: .32rem;
    align-items: center;
  }

  .dashboard-page #priceTable tr.matrix-product-row.is-mobile-expanded.has-product-image > td[data-matrix-site]:not(.matrix-site-cell--no-price) {
    margin-top: .16rem;
  }

  .dashboard-page #priceTable tr.matrix-product-row.is-mobile-expanded.has-product-image > td.matrix-site-cell--first-mobile-price {
    margin-top: .16rem;
  }

  .dashboard-page #priceTable tr.matrix-product-row.is-mobile-expanded > td.matrix-site-cell--no-price {
    display: none !important;
  }

  .dashboard-page #priceTable tr.matrix-product-row > td[data-matrix-site]::before {
    content: none;
  }

  .dashboard-page #priceTable .matrix-site-mobile-name {
    display: block;
    min-width: 0;
    margin-bottom: 0;
    overflow: hidden;
    color: #f7f8fb;
    font-size: .76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .dashboard-page #priceTable .matrix-price-cell {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .1rem;
    align-items: center;
    text-align: left;
  }

  .dashboard-page #priceTable .matrix-price-main,
  .dashboard-page #priceTable .matrix-price-status,
  .dashboard-page #priceTable .matrix-price-meta {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: .22rem;
  }

  .dashboard-page #priceTable .matrix-price-main {
    grid-column: 1;
    grid-row: 1;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .dashboard-page #priceTable .matrix-price-status,
  .dashboard-page #priceTable .matrix-price-meta,
  .dashboard-page #priceTable .matrix-price-msrp,
  .dashboard-page #priceTable .matrix-price-delta {
    grid-column: 1 / -1;
  }

  .dashboard-page #priceTable .matrix-price-status:empty,
  .dashboard-page #priceTable .matrix-price-msrp--empty,
  .dashboard-page #priceTable .matrix-price-meta {
    display: none;
  }

  .dashboard-page #priceTable .matrix-price-value {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .dashboard-page #priceTable .matrix-price-seen {
    grid-column: 3;
    grid-row: 1;
    min-width: 4.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    align-self: center;
    overflow: hidden;
    color: #cbd5e1;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-page #priceTable .matrix-price-seen i {
    display: none;
  }

  .dashboard-page #priceTable .matrix-site-cell .price-normal {
    color: #f7f8fb !important;
  }

  .dashboard-page #priceTable .matrix-site-cell .price-best,
  .dashboard-page #priceTable .matrix-site-cell .price-drop-glow {
    color: var(--brand-magenta) !important;
  }

  .dashboard-page #priceTable .matrix-price-msrp,
  .dashboard-page #priceTable .matrix-price-delta,
  .dashboard-page #priceTable .matrix-price-meta {
    color: #aeb7c7;
    font-size: .66rem;
  }

  .dashboard-page #priceTable .matrix-search-cell {
    text-align: right;
  }

  .dashboard-page #priceTable .matrix-search-cell .matrix-search-btn {
    color: #f7f8fb !important;
    background: rgba(255, 255, 255, .08) !important;
  }

  .dashboard-page #priceTable .matrix-action-cell > .d-flex {
    grid-area: actions;
    justify-content: flex-end;
  }

  .dashboard-page #priceTable .matrix-action-cell {
    grid-area: actions;
    align-self: center;
    justify-self: end;
  }

  .dashboard-page #priceTable .matrix-action-cell .open-url-search-btn,
  .dashboard-page #priceTable .matrix-search-cell {
    display: none !important;
  }

  .dashboard-page #priceTable .matrix-action-cell .btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-radius: 12px !important;
    color: #f7f8fb !important;
    background: #171d2a !important;
  }

  .dashboard-page #matrixView > .card-footer {
    display: none !important;
    gap: .5rem;
    align-items: center;
    justify-content: center !important;
    padding: .7rem .85rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #aeb7c7 !important;
    background: #101522 !important;
    text-align: center;
  }

  .dashboard-page #matrixView #dashPagination {
    overflow-x: hidden;
    background: transparent;
  }

  .dashboard-page #matrixView .matrix-infinite-status {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .85rem .95rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #aeb7c7;
  }

  .dashboard-page #matrixView .matrix-infinite-status small {
    font-size: .75rem;
    font-weight: 700;
  }

  .dashboard-page #matrixView .matrix-load-more-btn {
    display: inline-flex;
    min-width: 0;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .45rem .72rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #f7f8fb;
    background: rgba(255, 255, 255, .06);
    font-size: .78rem;
    font-weight: 800;
  }

  .dashboard-page #matrixView .matrix-infinite-done {
    color: #f7f8fb;
    font-size: .75rem;
    font-weight: 800;
  }
}

@media (max-width: 991.98px) {
  .reporting-context-toolbar__body {
    flex-direction: column;
    align-items: stretch;
  }

  .reporting-toolbar-fields--board,
  .reporting-toolbar-fields--detailed,
  .reporting-date-filters {
    grid-template-columns: 1fr;
  }

  .reporting-toolbar-actions {
    justify-content: stretch;
  }

  .reporting-toolbar-actions > .btn,
  .reporting-toolbar-actions > .dropdown {
    flex: 1 1 10rem;
  }

  .reporting-toolbar-actions > .dropdown > .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .reporting-page .app-page-hero {
    display: flex !important;
    min-height: 112px;
    padding: .9rem !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(14,14,18,.28), rgba(14,14,18,.5)), var(--brand-grad) !important;
    box-shadow: var(--shadow-soft) !important;
  }

  .reporting-page .app-page-hero p {
    display: none;
  }

  .reporting-page .app-page-hero .btn {
    width: auto;
    margin-top: .75rem;
  }

  .reporting-context-toolbar {
    padding: 0;
    overflow: hidden;
  }

  .reporting-context-toolbar__summary {
    display: flex;
    min-height: 46px;
    padding: .75rem .85rem;
    border-bottom: 1px solid var(--border);
  }

  .reporting-context-toolbar__body {
    padding: .85rem;
  }

  .reporting-toolbar-actions > .btn,
  .reporting-toolbar-actions > .dropdown {
    flex-basis: 100%;
  }

  .reporting-toolbar-menu {
    width: 100%;
    min-width: 0;
  }
}

/* ---- Bulles d'aide (data-tooltip) ------------------------------------- */
/* Usage : <span class="help-tip" tabindex="0" data-tooltip="Texte d'aide"></span>
   ou n'importe quel element portant data-tooltip. Le contenu est traduit par
   app.js (attribut suivi par le systeme i18n). */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  z-index: 1080;
  width: max-content;
  max-width: min(280px, 72vw);
  padding: .5rem .65rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface-2);
  color: var(--text);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease .35s, transform .15s ease .35s, visibility 0s linear .5s;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: .35s;
}
[data-tooltip].tooltip-bottom::after {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
}
[data-tooltip].tooltip-bottom:hover::after,
[data-tooltip].tooltip-bottom:focus-visible::after {
  transform: translateX(-50%) translateY(0);
}
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: .3rem;
  vertical-align: text-top;
  border: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
  border-radius: 50%;
  color: var(--text-muted, var(--text));
  font-size: .68rem;
  font-weight: 600;
  line-height: 1;
  cursor: help;
  user-select: none;
}
.help-tip::before {
  content: "?";
}
.help-tip:hover,
.help-tip:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 55%, transparent);
}
