:root {
  color-scheme: light;
  --ink: #233331;
  --muted: #66716e;
  --line: #e6ded3;
  --paper: #fbf7f0;
  --panel: #fffdf8;
  --accent: #bf654d;
  --mint: #d9eadc;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: url("/cursor-burger.png") 16 16, auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(35, 51, 49, 0.04);
}

.titleBlock {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.titleBurgerButton {
  flex: 0 0 auto;
  width: clamp(58px, 5.6vw, 78px);
  height: clamp(58px, 5.6vw, 78px);
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: url("/cursor-burger-pointer.svg") 19 19, pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.titleBurgerButton:hover {
  transform: translateY(-1px) rotate(-3deg);
  filter: drop-shadow(0 10px 18px rgba(196, 105, 78, 0.18));
}

.titleBurgerButton:active {
  transform: translateY(0) scale(0.96) rotate(3deg);
}

.titleBurgerButton:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.titleBurger {
  width: clamp(54px, 5.4vw, 74px);
  height: clamp(54px, 5.4vw, 74px);
  object-fit: contain;
  transform: translateY(1px);
  filter: drop-shadow(0 8px 14px rgba(35, 51, 49, 0.08));
}

.titleBurgerButton.isShuffling .titleBurger {
  animation: burgerShuffle 380ms ease;
}

@keyframes burgerShuffle {
  0% {
    transform: translateY(1px) rotate(0deg) scale(1);
  }
  35% {
    transform: translateY(0) rotate(-10deg) scale(1.05);
  }
  70% {
    transform: translateY(0) rotate(8deg) scale(1.03);
  }
  100% {
    transform: translateY(1px) rotate(0deg) scale(1);
  }
}

.titleText {
  min-width: 0;
}

.topbarActions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.promoMenu {
  position: relative;
}

.reportMenu {
  position: relative;
}

.topbarActions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.promoToggleButton,
.adminUnlockButton,
.reportToggleButton,
.deepRefreshButton,
.stopRefreshButton {
  gap: 8px;
  border: 1px solid #e4d8ca;
  background: rgba(255, 253, 248, 0.88);
  color: var(--muted);
  box-shadow: 0 6px 16px rgba(35, 51, 49, 0.06);
}

.promoToggleButton.active,
.reportToggleButton.active {
  border-color: #e7b5a7;
  background: #fff5f1;
  color: var(--accent);
}

.promoToggleButton:hover,
.adminUnlockButton:hover,
.reportToggleButton:hover,
.deepRefreshButton:hover,
.stopRefreshButton:hover {
  border-color: #d8bfaf;
  background: #fffdf8;
  color: var(--ink);
}

.stopRefreshButton {
  color: #9a3f2e;
}

#stopRefreshButton[hidden] {
  display: none;
}

.adminUnlockButton {
  color: #5f7666;
}

.adminUnlockButton.active {
  border-color: #bfd9c3;
  background: #eef8f0;
  color: #2f6b3c;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.tagline span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f6ded7;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

button,
input {
  font: inherit;
}

a {
  cursor: url("/cursor-burger-pointer.svg") 19 19, pointer;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: white;
  background: var(--ink);
  cursor: url("/cursor-burger-pointer.svg") 19 19, pointer;
}

#refreshButton {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(35, 51, 49, 0.12);
}

#refreshButton:hover {
  background: #304542;
}

.deepRefreshButton {
  color: var(--ink);
}

button:disabled {
  cursor: url("/cursor-burger.png") 16 16, wait;
  opacity: 0.65;
}

main {
  padding: 22px 24px 40px;
}

.controls {
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-columns:
    minmax(190px, 1.22fr)
    minmax(190px, 1.12fr)
    minmax(126px, 0.72fr)
    minmax(126px, 0.72fr)
    minmax(126px, 0.72fr)
    minmax(210px, 1.18fr)
    38px;
  gap: 6px;
  align-items: start;
  margin-bottom: 18px;
  overflow: visible;
}

.stateOnlyFilter {
  display: none !important;
}

label,
.filterGroup {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filterGroup {
  grid-template-rows: 24px 42px;
}

.filterGroup.isOpen {
  z-index: 120;
}

.filterHead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
}

.filterHead > span {
  white-space: nowrap;
}

.filterActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.brandFilter,
.choiceFilter {
  position: relative;
  display: grid;
  gap: 7px;
}

.brandToggleArea,
.choiceToggleArea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: left;
}

.brandToggleArea:hover,
.brandToggleArea[aria-expanded="true"],
.choiceToggleArea:hover,
.choiceToggleArea[aria-expanded="true"] {
  border-color: #d8bfb4;
}

.brandSummary,
.choiceSummary {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brandHint,
.choiceHint {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.brandToggleArea,
.choiceToggleArea {
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.ghostButton {
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.searchFilter {
  position: relative;
  z-index: 30;
  align-self: end;
  justify-self: start;
}

.iconButton {
  position: relative;
  width: 38px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.iconButton::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.iconButton::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 25px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(45deg);
  transform-origin: left center;
}

.iconButton:hover,
.iconButton.active {
  border-color: #d8bfb4;
  background: #fff5f1;
}

.searchPanel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(340px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(35, 51, 49, 0.12);
}

.searchPanel[hidden] {
  display: none;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--ink);
}

.checkList {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  width: min(760px, calc(100vw - 64px));
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(35, 51, 49, 0.12);
}

.checkList[hidden] {
  display: none;
}

.sourceList {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  display: grid;
  gap: 6px;
  width: min(280px, calc(100vw - 64px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(35, 51, 49, 0.12);
}

.sourcePicker {
  gap: 0;
  width: min(620px, calc(100vw - 64px));
  max-height: 420px;
  overflow: auto;
  padding: 0;
}

.sourcePickerHeader {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  background: var(--panel);
}

.sourceSearch {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  outline: none;
}

.sourceSearch:focus {
  border-color: #d8bfb4;
  box-shadow: 0 0 0 3px rgba(216, 191, 180, 0.22);
}

.sourceQuickActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.sourceQuickButton {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.sourceQuickButton:hover,
.sourceQuickButton.active {
  border-color: #e7b5a7;
  background: #fff5f1;
  color: var(--accent);
}

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

.choiceList {
  width: min(360px, calc(100vw - 64px));
  max-height: min(620px, 70vh);
  overflow: auto;
}

#genderList,
#sizeList {
  left: auto;
  right: 0;
}

#sizeList {
  left: auto;
  right: 0;
  width: min(620px, calc(100vw - 64px));
  max-height: min(560px, calc(100vh - 220px));
  overflow: auto;
}

#sizeList .sourceOption {
  min-height: 36px;
}

.sizeGroup {
  border-top: 1px solid var(--line);
  padding: 9px 10px 10px;
}

.sizeGroupLabel {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#sizeList .sizeGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

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

.sourceList[hidden] {
  display: none;
}

.sourceOption {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.sourceOptionLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sourceCheck {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1.5px solid #98a39d;
  border-radius: 4px;
  background: var(--panel);
}

.sourceOption.selected .sourceCheck {
  border-color: var(--accent);
  background: var(--accent);
}

.sourceOption.selected .sourceCheck::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sourceOption:hover,
.sourceOption.selected {
  border-color: #e7b5a7;
  background: #fff5f1;
  color: var(--accent);
}

.sourceEmpty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.brandDirectory {
  display: grid;
  gap: 0;
}

.brandPickerHeader {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  background: var(--panel);
}

.brandSearch {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  outline: none;
}

.brandSearch:focus {
  border-color: #d8bfb4;
  box-shadow: 0 0 0 3px rgba(216, 191, 180, 0.22);
}

.brandLetters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}

.brandLetters button,
.brandOption {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 0;
  padding: 0;
  text-align: left;
  cursor: url("/cursor-burger-pointer.svg") 19 19, pointer;
}

.brandLetters button {
  border-radius: 999px;
  padding: 5px 9px;
  color: #78abc4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brandLetters button.active,
.brandLetters button:hover {
  background: #f6ded7;
  color: var(--accent);
}

.brandStyleCollections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.brandStyleButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid #eadbcf;
  border-radius: 999px;
  padding: 0 10px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.brandStyleButton:hover,
.brandStyleButton.active {
  border-color: #e7b5a7;
  background: #fff5f1;
  color: var(--accent);
}

.brandStyleCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  background: #f6ded7;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.brandSection {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
}

.brandSection:last-child {
  border-bottom: 0;
}

.brandLetter {
  color: #5bb5a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.brandNames {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
}

.brandOption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.brandOption::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1.5px solid #98a39d;
  border-radius: 4px;
  background: var(--panel);
}

.brandOption.selected::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--panel);
}

.brandOption > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.brandTag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 6px;
  background: #edf5ef;
  color: #5a7a68;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brandTag.shoes {
  background: #eef4fb;
  color: #54738a;
}

.brandTag.accessories {
  background: #f0eaf8;
  color: #765a9c;
}

.brandTag.both {
  background: #f6ded7;
  color: var(--accent);
}

.brandOption:hover,
.brandOption.selected {
  border-color: #e7b5a7;
  background: #fff5f1;
  color: var(--accent);
}

.brandOption.selected {
  box-shadow: inset 0 0 0 1px #e7b5a7;
}

.brandEmpty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.brandCount {
  position: sticky;
  bottom: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--muted);
}

.status strong {
  color: var(--ink);
}

.statusLeft {
  display: flex;
  align-items: center;
  gap: 10px;
}

.statusButton {
  background: var(--panel);
}

.statusButton.active {
  border-color: #e7b5a7;
  background: #fff5f1;
  color: var(--accent);
}

.progressWrap {
  margin: 0 0 18px;
}

.progressBar {
  overflow: hidden;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.progressBar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.progressText {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.refreshReport {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 260;
  width: min(760px, calc(100vw - 64px));
  max-height: min(620px, calc(100vh - 132px));
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fffdf8;
  box-shadow: 0 14px 30px rgba(35, 51, 49, 0.12);
}

.clickReport {
  width: min(980px, calc(100vw - 64px));
}

.refreshReport[hidden],
.reportDetails[hidden] {
  display: none;
}

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

.reportEyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.refreshReport h2,
.refreshReport h3 {
  margin: 0;
  color: var(--ink);
}

.refreshReport h2 {
  font-size: 18px;
}

.refreshReport h3 {
  font-size: 13px;
}

.reportStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.reportStat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbf7f0;
}

.reportStat strong,
.reportStat span {
  display: block;
}

.reportStat strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.reportStat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.reportDetails {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.reportGroup {
  display: grid;
  gap: 8px;
}

.reportGroup.problem .reportItem {
  background: #fff1ee;
}

.reportList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.reportItem {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f7f1e9;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.reportItem strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reportItem a {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.reportItem a:hover {
  color: var(--accent);
}

.promoBoard {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(560px, calc(100vw - 64px));
  max-height: min(520px, calc(100vh - 132px));
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffdfa;
  box-shadow: 0 14px 30px rgba(35, 51, 49, 0.12);
}

.promoCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 20px;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 8px;
  background: #f6ded7;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.promoDisclaimer {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.storeListSearch {
  width: 100%;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  outline: none;
}

.storeListSearch:focus {
  border-color: #d88f7b;
  box-shadow: 0 0 0 3px rgba(216, 143, 123, 0.16);
}

.promoList {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.promoItem {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff5f1;
  color: #8a4435;
  font-size: 12px;
  line-height: 1.35;
}

.promoItem.noPromo {
  background: #f7f1e9;
  color: var(--muted);
}

.promoEmpty {
  border-radius: 8px;
  padding: 14px;
  background: #f7f1e9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.promoItem strong,
.promoItem a {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.promoSourceLine {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
}

.promoItem .instagramLink {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  padding: 0;
  color: #9a3f2e;
  opacity: 0.78;
}

.promoItem .instagramLink svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.promoItem .instagramLink:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: none;
}

.promoItem small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.promoItem a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.trustedStoreBadge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid #bfd9c3;
  border-radius: 999px;
  padding: 1px 6px;
  background: #eef8f0;
  color: #2f6b3c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.cautionStoreBadge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid #e6c2a5;
  border-radius: 999px;
  padding: 1px 6px;
  background: #fff0e5;
  color: #9a4c28;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card.isNew {
  border-color: #e7b5a7;
  box-shadow: 0 10px 24px rgba(191, 101, 77, 0.12);
}

.imageWrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  overflow: hidden;
}

.imageWrap img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  object-position: center center;
  display: block;
}

.imageFallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.card.imageMissing .imageWrap img {
  display: none;
}

.card.imageMissing .imageFallback {
  display: flex;
}

.cardBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.metaRow,
.priceRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metaRow {
  min-height: 30px;
  flex-wrap: nowrap;
  align-items: center;
}

.source {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 64px);
  min-height: 28px;
  border: 1px solid #dfc8bd;
  border-radius: 999px;
  padding: 3px 9px;
  background: #fff8f4;
  color: #7a3c2e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandPill {
  width: auto;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  cursor: url("/cursor-burger-pointer.svg") 19 19, pointer;
}

.source:hover {
  border-color: #d88f7b;
  color: var(--accent);
}

.newBadge {
  position: absolute;
  top: 12px;
  left: -28px;
  z-index: 1;
  min-width: 96px;
  padding: 6px 0;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(191, 101, 77, 0.2);
}

h2 {
  min-height: 38px;
  max-height: 38px;
  margin: 10px 0 8px;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storeBlock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 96px;
  margin: 0 0 12px;
  border-radius: 8px;
  padding: 4px 12px 12px;
  background: #fff5f1;
  overflow: hidden;
}

.storeLine {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  min-width: 0;
}

.storeLink {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: url("/cursor-burger-pointer.svg") 19 19, pointer;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  text-align: left;
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storeLink:hover {
  color: var(--accent);
  text-decoration: underline;
}

.storeLine .trustedStoreBadge {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 18px;
  width: 18px;
  min-height: 18px;
  padding: 0;
  font-size: 12px;
  line-height: 1;
}

.storeLine .cautionStoreBadge {
  flex: 0 0 auto;
  min-height: 18px;
  padding: 1px 5px;
  font-size: 10px;
  line-height: 1;
}

.storeLine:empty {
  display: none;
}

.storeLine[hidden] {
  display: none;
}

.promoNote {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #9a3f2e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.promoNote[hidden] {
  display: none;
}

.sizes {
  min-height: 36px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.priceRow {
  min-height: 34px;
  margin-bottom: 4px;
}

.sale {
  font-size: 18px;
  font-weight: 850;
}

.original {
  color: var(--muted);
  text-decoration: line-through;
}

.discount {
  border-radius: 999px;
  padding: 3px 8px;
  background: #f6ded7;
  color: #9a3f2e;
  font-size: 12px;
  font-weight: 850;
}

.priceChange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0;
  background: #edf5ef;
  color: #456d54;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

.priceChange.up {
  background: #f6ded7;
  color: #9a3f2e;
}

.priceChange.down {
  background: #d9eadc;
  color: #345f42;
}

.openLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 38px;
  width: 100%;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 750;
}

.empty,
.error {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.siteFooter {
  padding: 0 32px 30px;
}

.siteFooter p {
  max-width: 960px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 780px) {
  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    gap: 14px;
  }

  .topbarActions {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
    order: 2;
  }

  .promoMenu,
  .reportMenu,
  .topbarActions > button {
    flex: 1 1 145px;
  }

  .promoToggleButton,
  .reportToggleButton,
  .topbarActions > button {
    width: 100%;
    justify-content: center;
  }

  .refreshReport {
    left: 0;
    right: auto;
    width: calc(100vw - 36px);
    margin-left: 0;
    max-height: min(560px, calc(100vh - 118px));
  }

  .promoBoard {
    left: 0;
    right: auto;
    width: calc(100vw - 36px);
  }

  h1 {
    font-size: 28px;
  }

  .titleBlock {
    gap: 10px;
  }

  .titleBurgerButton {
    width: 50px;
    height: 50px;
  }

  .titleBurger {
    width: 48px;
    height: 48px;
  }

  main {
    padding: 18px;
  }

  .siteFooter {
    padding: 0 18px 24px;
  }

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

  .checkList,
  .searchPanel,
  .sourceList,
  .choiceList {
    left: 0;
    right: auto;
    width: calc(100vw - 36px);
  }

  .searchFilter {
    justify-self: start;
  }

  .status {
    flex-direction: column;
    gap: 4px;
  }
}
