:root {
  color-scheme: light;
  --bg: #f7f5fb;
  --surface: #fbfaff;
  --text: #201a2e;
  --muted: #71677f;
  --line: #ded6ea;
  --panel: #ffffff;
  --accent: #7c2d83;
  --accent-dark: #5f2367;
  --accent-soft: #f3e7f7;
  --accent-2: #305c9f;
  --success: #6f3d9a;
  --danger: #b4234a;
  --shadow: 0 14px 34px rgba(52, 32, 76, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: #f7f5fb;
  background:
    linear-gradient(180deg, #fbf8ff 0, var(--bg) 360px),
    var(--bg);
  color: #201a2e;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(124, 45, 131, 0.1), rgba(48, 92, 159, 0.06) 45%, rgba(255, 255, 255, 0.94) 78%),
    rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(48, 34, 68, 0.05);
}

.brand-block {
  min-width: 0;
  flex: 1;
}

.brand {
  color: #7c2d83;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 25px;
  color: #241631;
  line-height: 1.15;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

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

main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  min-width: 0;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

nav button.ghost {
  border: 1px solid rgba(124, 45, 131, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

nav button.ghost.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 45, 131, 0.16);
}

.install-prompt {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  width: 560px;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(124, 45, 131, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(52, 32, 76, 0.2);
  backdrop-filter: blur(12px);
}

.install-prompt > div {
  min-width: 0;
}

.install-prompt strong {
  display: block;
  font-size: 14px;
}

.install-text,
.install-prompt p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.install-text p {
  margin: 3px 0 0;
}

.install-text ol {
  margin: 6px 0 0;
  padding-left: 18px;
}

.install-text li {
  margin: 3px 0;
}

.install-details {
  max-height: min(42vh, 320px);
  overflow: auto;
  padding-right: 4px;
}

.install-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.install-actions button {
  min-width: 0;
}

.push-prompt {
  top: 72px;
  bottom: auto;
  width: 760px;
  max-width: calc(100vw - 24px);
  min-height: 0;
  max-height: 140px;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 16px 20px;
  border-color: rgba(124, 45, 131, 0.48);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 246, 255, 0.98));
  box-shadow: 0 12px 30px rgba(52, 32, 76, 0.18);
}

.push-prompt strong {
  display: inline;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
}

.push-prompt .install-text {
  margin-top: 1px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.28;
  color: #3d2f4d;
}

.push-prompt .install-actions {
  gap: 8px;
  margin-left: auto;
}

.push-prompt button {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 8px;
  white-space: nowrap;
}

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

button {
  border: 0;
  border-radius: 6px;
  background: #7c2d83;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 42px;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(124, 45, 131, 0.16);
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

button:hover {
  background: #5f2367;
  background: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(124, 45, 131, 0.22);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  background: var(--accent-2);
  box-shadow: 0 8px 18px rgba(48, 92, 159, 0.14);
}

button.ghost {
  background: #f1edf7;
  background: #f1edf7;
  color: #201a2e;
  color: var(--text);
  box-shadow: none;
}

button.ghost:hover {
  background: #e8deef;
}

button.danger {
  background: var(--danger);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(124, 45, 131, 0.16);
}

.button-link:hover {
  background: var(--accent-dark);
  color: #fff;
}

button:disabled {
  cursor: default;
  opacity: 0.78;
  transform: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ded6ea;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  min-height: 42px;
  color: #201a2e;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b16bb9;
  box-shadow: 0 0 0 3px rgba(124, 45, 131, 0.12);
  outline: none;
}

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

.band,
.panel,
.card {
  background: #ffffff;
  background: var(--panel);
  border: 1px solid #ded6ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.band {
  padding: 20px;
  margin-bottom: 24px;
}

.auth-screen {
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 118px);
  display: grid;
  align-items: center;
  justify-items: center;
}

.login-panel {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  background: var(--panel);
  border: 1px solid #ded6ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 18px 46px rgba(52, 32, 76, 0.1);
}

.login-form {
  display: block;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.login-form label,
.profile-panel label {
  display: block;
  display: grid;
  gap: 6px;
  color: #71677f;
  color: var(--muted);
  font-size: 14px;
}

.profile-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-panel {
  display: block;
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.profile-warning {
  border: 1px solid #ead6a2;
  border-radius: 8px;
  background: #fff8df;
  color: #6a4d00;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.bank-suggest {
  position: relative;
  z-index: 6;
  margin-top: -6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(52, 32, 76, 0.12);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.bank-suggest button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  box-shadow: none;
  text-align: left;
  font-size: 14px;
  line-height: 1.25;
}

.bank-suggest button + button {
  border-top: 1px solid #f0eaf5;
}

.bank-suggest button:hover,
.bank-suggest button:focus {
  background: var(--accent-soft);
}

.profile-panel button {
  width: 100%;
}

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

.inline-form input,
.inline-form select {
  min-width: 0;
}

.view {
  display: block;
}

.hidden {
  display: none !important;
}

.section-head {
  margin: 20px 0 14px;
}

.section-head h2 {
  color: #2b193b;
}

.cards {
  display: block;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  align-items: stretch;
}

.cards > .card + .card {
  margin-top: 12px;
}

@supports (display: grid) {
  .cards > .card + .card {
    margin-top: 0;
  }
}

.cards > *,
.purchase-list > * {
  min-width: 0;
}

.card,
.panel {
  padding: 18px;
}

.card {
  overflow: hidden;
  min-width: 0;
}

.card h3 {
  color: #2b193b;
}

.card > button {
  width: 100%;
  margin-top: 4px;
}

.card .hint {
  display: inline-flex;
  margin-top: 10px;
}

.product-card {
  padding: 10px;
  display: block;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  height: 100%;
  min-width: 0;
}

.product-card > * + * {
  margin-top: 10px;
}

@supports (display: grid) {
  .product-card > * + * {
    margin-top: 0;
  }
}

.product-media {
  position: relative;
  min-width: 0;
  background: #f8f2fb;
  border-radius: 8px;
  overflow: hidden;
}

.product-carousel {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.product-carousel-track {
  display: flex;
  min-width: 0;
  transform: translateX(calc(var(--slide, 0) * -100%));
  transition: transform 180ms ease;
}

.product-carousel-track .offer-image {
  flex: 0 0 100%;
}

.product-image-open {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  min-height: 24px;
  border: 1px solid rgba(124, 45, 131, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transform: translateY(-50%);
  box-shadow: 0 6px 14px rgba(52, 32, 76, 0.08);
}

.carousel-prev {
  left: 6px;
}

.carousel-next {
  right: 6px;
}

.carousel-dots {
  display: none;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  min-height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
}

.carousel-dots button.active {
  width: 16px;
  background: #fff;
}

.cashback-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7b7df;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  box-shadow: 0 8px 18px rgba(124, 45, 131, 0.18);
}

.product-final-price {
  border: 1px solid #d7b7df;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8ecfb 100%);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(124, 45, 131, 0.06);
}

.product-final-price span {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.product-final-price strong {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.product-final-price em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.product-info {
  display: block;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  min-width: 0;
}

.product-info > * + * {
  margin-top: 8px;
}

@supports (display: grid) {
  .product-info > * + * {
    margin-top: 0;
  }
}

.product-card h3 {
  font-size: 15px;
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-calc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-calc span {
  border-radius: 999px;
  background: #f7f3fb;
  padding: 4px 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.offer-limits {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  grid-column: 1 / -1;
  width: 100%;
}

.offer-limits summary {
  cursor: pointer;
  list-style: none;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  padding: 7px 9px;
}

.offer-limits summary::-webkit-details-marker {
  display: none;
}

.offer-limits summary::after {
  content: "⌄";
  float: right;
  color: var(--muted);
}

.offer-limits[open] summary::after {
  content: "⌃";
}

.offer-limit-list {
  display: block;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  border-top: 1px solid var(--line);
  padding: 8px 10px;
}

.offer-limit-list div + div {
  margin-top: 5px;
}

@supports (display: grid) {
  .offer-limit-list div + div {
    margin-top: 0;
  }
}

.offer-limit-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.offer-limit-list strong {
  color: var(--text);
}

.product-benefit {
  border-radius: 8px;
  background: #f4ecfb;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.product-meta {
  margin: 0;
  gap: 5px;
}

.product-meta .pill {
  font-size: 12px;
  padding: 4px 7px;
}

.product-card > .product-info > button {
  width: 100%;
  min-height: 44px;
  align-self: end;
}

.product-link {
  justify-content: center;
  margin-top: 0;
}

.participation {
  position: relative;
  border-width: 2px;
  margin-bottom: 18px;
}

.participation + .participation {
  margin-top: 22px;
}

.purchase-list {
  display: block;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.purchase-list > .card + .card {
  margin-top: 12px;
}

@supports (display: grid) {
  .purchase-list > .card + .card {
    margin-top: 0;
  }
}

.purchase-card {
  cursor: pointer;
  height: 100%;
}

.purchase-card h3 {
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.purchase-body {
  display: block;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.purchase-body > * + * {
  margin-top: 8px;
}

@supports (display: grid) {
  .purchase-body > * + * {
    margin-top: 0;
  }
}

.purchase-card p {
  font-size: 13px;
}

.purchase-media .offer-image {
  aspect-ratio: 1 / 1;
}

.purchase-progress {
  height: 5px;
  border-radius: 999px;
  background: #eee8f5;
  overflow: hidden;
  margin-top: 8px;
}

.purchase-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #305c9f);
}

.purchase-step-count {
  width: fit-content;
  border-radius: 999px;
  background: #f4ecfb;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  padding: 4px 8px;
}

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

.purchase-card button {
  width: 100%;
  min-height: 44px;
  align-self: end;
}

.participation-active {
  border-color: #8c3a92;
  box-shadow: 0 16px 38px rgba(124, 45, 131, 0.14);
}

.participation-muted {
  background: #fcfbff;
  border-color: #d7cde3;
}

.participation-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 12px;
  background: #eef2ff;
  color: #314684;
  font-size: 12px;
  font-weight: 800;
}

.participation-active .participation-label {
  background: #f3e7f7;
  color: var(--accent-dark);
}

.offer-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: #f1edf7;
  object-fit: contain;
  display: block;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf8ff;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  color: var(--accent);
  font-weight: 700;
}

.status-review,
.status-paid,
.status-returned {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 800;
}

.status-review {
  border: 1px solid #f0c36f;
  background: #fff6df;
  color: #7c4a03;
}

.status-paid {
  border: 1px solid #c9b4e4;
  background: #f4ecfb;
  color: #5a2f78;
}

.status-returned {
  border: 1px solid #f0c7c7;
  background: #fff3f3;
  color: #9a1f1f;
}

.status-pill.status-review,
.status-pill.status-paid,
.status-pill.status-returned {
  color: inherit;
}

.journey-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.journey-product {
  display: block;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.journey-product > * + * {
  margin-top: 8px;
}

@supports (display: grid) {
  .journey-product > * + * {
    margin-top: 0;
  }
}

.journey-product h3 {
  overflow-wrap: anywhere;
}

.journey-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: 0 0 auto;
}

.bonus-due {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  border: 1px solid #dcc9e7;
  border-radius: 999px;
  background: #fff;
  padding: 6px 9px;
  box-shadow: 0 8px 18px rgba(52, 32, 76, 0.07);
  white-space: nowrap;
}

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

.bonus-due strong {
  color: var(--accent);
  font-size: 17px;
  line-height: 1.1;
}

.participation-product-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.participation-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.participation-product-empty {
  display: grid;
  place-items: center;
  background: #f1edf7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.progress-number {
  color: var(--accent);
  font-weight: 800;
}

.progress {
  height: 8px;
  background: #eee8f5;
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #305c9f);
}

.steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.step {
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 6px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  min-height: 46px;
  min-width: 0;
  box-shadow: none;
}

.step:hover {
  border-color: #b16bb9;
  background: #fbf2ff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(124, 45, 131, 0.08);
}

.step:active {
  transform: none;
}

.step:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 45, 131, 0.12);
}

.step span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1edf7;
  color: var(--text);
  flex: 0 0 auto;
  font-size: 12px;
}

.step div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.step.current {
  border-color: var(--accent);
  color: var(--text);
  background: #fbf2ff;
  box-shadow: inset 0 0 0 1px rgba(124, 45, 131, 0.08);
}

.step.done {
  color: var(--accent-dark);
}

.step.done span {
  background: linear-gradient(135deg, var(--accent), #305c9f);
  color: #fff;
}

.step.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.step-history {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.task {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  margin: 14px 0;
}

.task-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.task-copy {
  display: block;
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.task-copy p,
.expected p {
  margin: 0;
  line-height: 1.45;
}

.expected {
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  margin-top: 12px;
  background: #fff;
  color: var(--text);
  display: block;
  display: grid;
  gap: 4px;
}

.expected-label {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.action-flow {
  display: block;
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.action-flow > * + * {
  margin-top: 7px;
}

@supports (display: grid) {
  .action-flow > * + * {
    margin-top: 0;
  }
}

.action-intro {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.primary-action-hint {
  border: 1px solid #dbc2e3;
  border-radius: 8px;
  background: #fbf7fd;
  color: var(--accent-dark);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.action-steps {
  display: flex;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.action-steps span {
  flex: 1 1 46%;
}

.action-steps span {
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.action-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(95, 35, 103, 0.22);
}

.open-wb.action-link,
.open-wb.action-link:visited,
.open-wb.action-link:focus,
.open-wb.action-link:active,
.open-wb.action-link:hover {
  color: #fff;
}

.action-link:visited,
.action-link:focus,
.action-link:active,
.action-link:hover {
  background: var(--accent);
  color: #fff;
}

.review-sent {
  border: 1px solid #c9b4e4;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  background: #f4ecfb;
  color: #5a2f78;
  font-weight: 700;
}

.target-product {
  display: block;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin-top: 12px;
}

.target-product > * + * {
  margin-top: 10px;
}

@supports (display: grid) {
  .target-product > * + * {
    margin-top: 0;
  }
}

.image-zoom {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  background: #f5f1f9;
  padding: 0;
}

.image-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.participation-product-thumb.image-zoom {
  width: 64px;
  height: 64px;
  background: var(--surface);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(28, 18, 43, 0.78);
  padding: 24px;
}

.image-modal img {
  max-width: min(92vw, 760px);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
}

.image-modal button {
  position: fixed;
  top: 18px;
  right: 18px;
}

.image-modal .gallery-arrow {
  position: fixed;
  top: 50%;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0;
  transform: translateY(-50%);
}

.image-modal .gallery-prev {
  left: 18px;
  right: auto;
}

.image-modal .gallery-next {
  right: 18px;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  background: rgba(28, 18, 43, 0.72);
  padding: 18px;
}

.terms-dialog {
  width: min(920px, 100%);
  height: min(86vh, 780px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.terms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.terms-head button {
  min-height: 34px;
  padding: 7px 10px;
}

.terms-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.open-terms {
  width: 100%;
  margin-top: 8px;
}

.open-wb {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  color: var(--accent-2);
  font-weight: 700;
}

.confirm-step {
  margin-top: 14px;
  width: 100%;
}

.task-error {
  margin-top: 12px;
  border: 1px solid #f5a3b9;
  border-radius: 6px;
  background: #fff0f4;
  color: var(--danger);
  padding: 10px 12px;
}

.earn-task-grid {
  align-items: stretch;
}

.earn-task-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background: #f8fafc;
  overflow: hidden;
  border-radius: 8px;
}

.earn-task-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.earn-task-pay strong {
  color: #166534;
}

.earn-task-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.earn-task-details > * + * {
  margin-top: 12px;
}

.earn-action-steps {
  margin-top: 0;
}

.earn-task-workspace {
  display: grid;
  gap: 16px;
}

.earn-work-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.earn-work-media {
  width: 100%;
}

.earn-work-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

@media (max-width: 760px) {
  .earn-work-layout {
    grid-template-columns: 1fr;
  }
}

.chat-code {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  margin-top: 8px;
}

.chat-code-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.chat-code-text {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.copy-chat-text {
  min-height: 34px;
  margin-top: 8px;
  padding: 7px 10px;
  width: auto;
}

.mini-help {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 8px;
  padding: 8px 10px;
}

.mini-help summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.mini-help ol {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.chat-check {
  border: 1px solid #c9b4e4;
  border-radius: 8px;
  background: #f8f2fb;
  padding: 12px;
  margin-top: 12px;
}

.chat-check-title {
  color: var(--accent-dark);
  font-weight: 800;
}

.chat-check-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  margin-top: 10px;
}

.chat-check-status.legal-warning {
  display: block;
  width: 100%;
  border-radius: 8px;
  color: #5f2367;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.chat-sent-button {
  width: 100%;
  margin-top: 12px;
}

.stack {
  display: grid;
  gap: 24px;
}

.proof-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.proof-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.proof-field span {
  display: block;
}

.proof-file-name {
  display: none;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.proofs {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.proof {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
}

.proof img {
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 8px;
}

.admin-proof-image {
  cursor: zoom-in;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

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

.admin-workspace {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.admin-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.admin-stat span,
.admin-user-box span,
.report-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.admin-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
}

.admin-tabs,
.admin-toolbar,
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-tabs {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.admin-toolbar {
  justify-content: space-between;
  margin: 10px 0 12px;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

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

.analytics-period-controls select,
.analytics-period-controls input {
  width: auto;
  min-width: 140px;
}

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

.admin-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
}

.admin-subhead h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.admin-subhead span {
  font-size: 13px;
  font-weight: 700;
}

.admin-request-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 150px;
  gap: 10px;
  padding: 12px;
}

.admin-requests-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 12px;
  align-items: start;
}

.admin-table-panel {
  padding: 0;
  overflow: hidden;
}

.admin-table-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-table {
  display: grid;
  overflow-x: auto;
}

.admin-queues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.admin-queue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
}

.admin-queue.active {
  border-color: rgba(122, 48, 196, 0.34);
  background: #fbf5ff;
  color: var(--primary);
}

.admin-queue span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(122, 48, 196, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.admin-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-bulk-bar > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-download-hint {
  display: none;
  margin: -4px 0 12px;
  border: 1px solid #d9c6ea;
  border-radius: 8px;
  background: #fbf5ff;
  color: var(--primary);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.admin-download-hint.visible {
  display: block;
}

.admin-product-notice {
  border: 1px solid #d8e5d2;
  border-radius: 8px;
  background: #f6fbf4;
  color: #2d6031;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.admin-check input,
.admin-row-check {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.tax-report-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.tax-report-builder strong {
  display: block;
  font-size: 15px;
}

.tax-report-builder p,
.muted-line,
.tax-report-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tax-report-controls {
  display: grid;
  grid-template-columns: 170px 190px auto;
  gap: 10px;
  align-items: end;
}

.tax-jobs {
  display: grid;
  gap: 8px;
}

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

.tax-job span,
.tax-job small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: 34px 86px minmax(170px, 1.15fr) minmax(180px, 1.2fr) 150px 58px 82px 58px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 940px;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.admin-table-row:hover,
.admin-table-row.selected {
  background: #fbf5ff;
}

.admin-table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.admin-table-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.admin-table-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.admin-table-header {
  min-height: 34px;
  background: #f7f3fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
}

.admin-table-row .status-pill {
  display: inline-block;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}

.admin-empty-row {
  padding: 18px;
  color: var(--muted);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.analytics-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.analytics-metric,
.analytics-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

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

.analytics-metric:last-child,
.analytics-row:last-child {
  border-bottom: 0;
}

.analytics-metric strong {
  text-align: right;
  font-size: 18px;
}

.analytics-metric strong small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.analytics-table {
  margin-top: 12px;
}

.analytics-row {
  grid-template-columns: minmax(0, 1.7fr) .55fr .55fr .45fr;
  font-size: 13px;
}

.contacts-table .analytics-row {
  grid-template-columns: minmax(0, 1.4fr) .8fr .45fr .45fr;
}

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

.analytics-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.analytics-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.communications-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 14px;
  margin-top: 14px;
}

.communications-history {
  grid-column: 1 / -1;
}

.communications-row {
  grid-template-columns: minmax(0, 1.5fr) .4fr .4fr .4fr .35fr;
}

.communications-history-row {
  grid-template-columns: minmax(0, 1.2fr) .4fr .8fr .5fr;
}

.admin-audit-row {
  grid-template-columns: .75fr .8fr .8fr minmax(0, 1.4fr);
}

.communication-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.communication-form textarea {
  min-height: 92px;
}

.admin-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

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

.admin-controls textarea {
  min-height: 72px;
}

.admin-request-details {
  position: sticky;
  top: 92px;
}

.admin-request-details .admin-row {
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding: 14px;
}

.admin-row-head,
.admin-offer-head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-row-head img,
.admin-offer-head img,
.admin-offer-empty {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3fb;
}

.admin-row-head h3 {
  margin-bottom: 4px;
  line-height: 1.25;
}

.admin-row-head p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.admin-user-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.admin-user-box div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  min-width: 0;
}

.admin-user-box strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.admin-wb-chat-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(124, 45, 131, 0.2);
  border-radius: 8px;
  background: #fbf7ff;
  padding: 10px;
}

.admin-wb-chat-box span,
.admin-wb-chat-box small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-wb-chat-box strong {
  display: block;
  margin: 3px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-auto-check {
  margin-top: 10px;
  border: 1px solid #d8e5d2;
  border-radius: 8px;
  background: #f6fbf4;
  padding: 10px;
}

.admin-auto-check.problem {
  border-color: #f0c7c7;
  background: #fff7f7;
}

.admin-auto-check span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-auto-check strong {
  display: block;
  margin-top: 4px;
  white-space: pre-line;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-quick-actions {
  margin-top: 12px;
}

.admin-products-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-product-list,
.admin-product-editor {
  display: grid;
  gap: 10px;
}

.admin-product-list {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.admin-product-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 6px;
}

.admin-product-list-head strong {
  font-size: 14px;
}

.admin-product-list-head span {
  border-radius: 999px;
  background: #f3e7f7;
  color: var(--accent-dark);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 850;
}

.admin-new-product {
  width: 100%;
  min-height: 40px;
}

.admin-product-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 4px;
}

.admin-product-switch button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
}

.admin-offer-list-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.admin-offer-list-card.selected {
  border-color: var(--accent);
  background: #fbf5ff;
  box-shadow: 0 10px 24px rgba(124, 45, 131, 0.12);
}

.admin-offer-list-card img,
.admin-offer-list-card .admin-offer-empty {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3fb;
}

.admin-offer-list-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-offer-list-card strong,
.admin-offer-list-card small,
.admin-offer-list-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-offer-list-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.admin-offer-list-card small,
.admin-offer-list-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.admin-offer-form,
.admin-offer-edit {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-offer-form h3,
.admin-offer-form .wide,
.admin-offer-form button[type="submit"],
.admin-offer-edit .wide {
  grid-column: 1 / -1;
}

.admin-wb-import {
  align-self: end;
  min-height: 40px;
  white-space: nowrap;
}

.admin-offer-form label,
.admin-offer-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.search-scenario-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

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

.admin-competitor-import {
  align-self: end;
  min-height: 40px;
}

.competitor-target {
  border-color: #d8d3e8;
  background: #fbfbff;
}

.own-target {
  border-color: #d8e5d2;
  background: #f8fff6;
}

.target-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.target-badge.dont-buy {
  background: #fff3f3;
  color: #9a1f1f;
}

.target-badge.buy {
  background: #f0fbec;
  color: #2d6031;
}

.proof-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.target-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1edf7;
}

.daily-limit-editor {
  display: grid;
  gap: 8px;
}

.daily-limit-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.daily-limit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.daily-limit-row {
  display: grid;
  grid-template-columns: 64px 142px 82px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px;
}

.daily-limit-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.daily-limit-row input {
  min-width: 0;
}

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

.admin-offer-actions {
  grid-template-columns: auto auto auto auto;
  justify-content: start;
}

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

.report-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.wide-report-card {
  margin-bottom: 12px;
}

.wide-report-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .topbar,
  .inline-form,
  .proof-form,
  .admin-actions {
    display: block;
    display: grid;
    grid-template-columns: 1fr;
  }

  main {
    width: auto;
    max-width: none;
    overflow: hidden;
    padding: 8px;
  }

  .auth-screen {
    display: block;
    justify-items: stretch;
  }

  .login-panel {
    width: auto;
    max-width: none;
    padding: 18px;
    overflow: hidden;
  }

  .login-form {
    display: block;
    margin-top: 14px;
  }

  .login-form label {
    display: block;
    margin-bottom: 10px;
  }

  .login-form input {
    display: block;
    width: 100%;
    margin-top: 6px;
  }

  .login-form button {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: #7c2d83;
    color: #fff;
  }

  .login-panel p,
  .section-head p,
  .brand-block h1 {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .topbar {
    display: block;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand-block {
    width: 100%;
    max-width: 100%;
  }

  .brand {
    font-size: 10px;
  }

  h1 {
    font-size: 17px;
    max-width: 100%;
  }

  .brand-subtitle {
    display: none;
  }

  h3 {
    font-size: 15px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }

  nav button {
    display: inline-block;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(124, 45, 131, 0.22);
    background: #fff;
    color: #201a2e;
  }

  nav button.ghost.active {
    background: #7c2d83;
    border-color: #7c2d83;
    color: #fff;
  }

  .install-prompt {
    align-items: stretch;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .install-prompt:not(.push-prompt) {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    margin: 8px 10px 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(52, 32, 76, 0.12);
  }

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

  .push-prompt {
    top: 70px;
    width: min(430px, calc(100vw - 16px));
    max-height: 112px;
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
  }

  .push-prompt strong {
    font-size: 17px;
  }

  .push-prompt .install-text {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.22;
  }

  .push-prompt .install-actions {
    display: flex;
    grid-template-columns: none;
    flex-shrink: 0;
  }

  .push-prompt button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 8px;
  }

  .install-details {
    max-height: 38vh;
  }

  .panel,
  .card {
    padding: 10px;
  }

  .admin-summary,
  .admin-user-box,
  .admin-wb-chat-box,
  .admin-request-filters,
  .admin-requests-layout,
  .admin-products-layout,
  .admin-offer-form,
  .admin-offer-edit,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-list {
    position: static;
    max-height: none;
  }

  .admin-request-details {
    position: static;
  }

  .admin-request-details .admin-row {
    max-height: none;
  }

  .tax-report-controls,
  .tax-job {
    grid-template-columns: 1fr;
  }

  .admin-table-head {
    display: grid;
  }

  .admin-table-row {
    grid-template-columns: 32px 74px minmax(150px, 1.1fr) minmax(160px, 1fr) 132px 52px 72px 52px;
    min-width: 800px;
    padding: 7px 9px;
  }

  .admin-row-head,
  .admin-offer-head {
    grid-template-columns: 58px 1fr;
    gap: 10px;
  }

  .admin-row-head img,
  .admin-offer-head img,
  .admin-offer-empty {
    width: 58px;
    height: 58px;
  }

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

  .admin-tabs button {
    width: 100%;
  }

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

  .analytics-row,
  .contacts-table .analytics-row {
    grid-template-columns: 1fr .5fr .5fr .4fr;
    font-size: 12px;
  }

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

  .communications-row {
    grid-template-columns: 1fr .35fr .35fr .35fr .35fr;
  }

  .communications-history-row {
    grid-template-columns: 1fr .45fr .7fr .55fr;
  }

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

  .product-card {
    padding: 8px;
    gap: 8px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .cashback-badge {
    font-size: 10px;
    padding: 5px 7px
  }

  .product-final-price {
    padding: 8px;
  }

  .product-final-price strong {
    font-size: 30px;
  }

  .product-benefit,
  .offer-limits summary,
  .offer-limit-list div,
  .product-meta .pill,
  .product-link {
    font-size: 11px;
  }

  .product-benefit {
    padding: 6px 7px;
  }

  .product-calc {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 5px;
  }

  .offer-limit-list {
    grid-template-columns: 1fr;
  }

  .participation {
    margin-bottom: 8px;
    border-width: 1px;
  }

  .purchase-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow);
  }

  #purchasesView .section-head {
    margin: 8px 0 10px;
  }

  #purchasesView .section-head p {
    margin-top: 4px;
    font-size: 13px;
  }

  .purchase-list {
    display: block;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .purchase-body {
    gap: 7px;
  }

  .purchase-card h3 {
    display: -webkit-box;
    min-height: 33px;
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .purchase-progress {
    height: 5px;
    margin-top: 0;
  }

  .purchase-meta {
    font-size: 11px;
  }

  .purchase-step-count {
    font-size: 11px;
    padding: 3px 7px;
  }

  .purchase-card button {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 13px;
    width: 100%;
  }

  .participation-label {
    padding: 4px 8px;
    margin-bottom: 8px;
    font-size: 11px;
  }

  .journey-head {
    align-items: stretch;
    gap: 8px;
  }

  .journey-product {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .participation-product-thumb,
  .participation-product-thumb.image-zoom {
    width: 44px;
    height: 44px;
  }

  .status {
    font-size: 13px;
  }

  .journey-summary {
    align-items: flex-end;
    gap: 4px;
  }

  .bonus-due {
    gap: 4px;
    padding: 5px 7px;
  }

  .bonus-due span {
    font-size: 10px;
  }

  .bonus-due strong {
    font-size: 14px;
  }

  .progress-number {
    font-size: 11px;
    color: var(--muted);
  }

  .participation > .meta {
    display: none;
  }

  .progress {
    height: 5px;
    margin: 8px 0;
  }

  .target-product {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin-top: 8px;
  }

  .target-product strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
  }

  .target-product p {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .target-product .hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.25;
  }

  .steps {
    display: flex;
    flex-wrap: nowrap;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
    margin-bottom: 8px;
  }

  .step {
    flex: 1 1 0;
    justify-content: center;
    min-height: 32px;
    padding: 4px 2px;
    font-size: 12px;
  }

  .step span {
    width: 22px;
    height: 22px;
  }

  .step div {
    display: none;
  }

  .task {
    padding: 10px;
    margin: 8px 0 0;
  }

  .task-kicker {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .task-copy {
    gap: 4px;
    margin-top: 6px;
  }

  .task-copy p,
  .expected p,
  .chat-check p,
  .target-product p {
    font-size: 15px;
    line-height: 1.42;
  }

  .expected {
    padding: 8px 10px;
    margin-top: 8px;
  }

  .expected-label {
    font-size: 10px;
  }

  .action-flow {
    gap: 6px;
    margin-top: 7px;
  }

  .action-intro {
    font-size: 13px;
    line-height: 1.3;
  }

  .action-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .action-steps span {
    min-height: 50px;
    padding: 6px 3px;
    font-size: 10px;
  }

  .task[data-step="find_product_in_search"] {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .task[data-step="find_product_in_search"] .target-product {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 8px;
  }

  .task[data-step="find_product_in_search"] .target-product .image-zoom {
    width: 76px;
    height: 76px;
  }

  .task[data-step="find_product_in_search"] .expected {
    padding: 7px 9px;
    margin-top: 7px;
  }

  .task[data-step="find_product_in_search"] .proof-form {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
  }

  .task[data-step="find_product_in_search"] .proof-form input,
  .task[data-step="find_product_in_search"] .proof-form button {
    min-height: 38px;
    width: 100%;
  }

  .action-link {
    min-height: 38px;
    margin-top: 0;
    font-size: 14px;
  }

  .open-wb {
    min-height: 32px;
    margin-top: 8px;
    font-size: 13px;
  }

  .terms-modal {
    padding: 8px;
  }

  .terms-dialog {
    height: 88vh;
  }

  .confirm-step,
  .chat-sent-button,
  .copy-chat-text {
    min-height: 38px;
    margin-top: 8px;
  }

  .chat-code,
  .chat-check {
    padding: 8px;
    margin-top: 8px;
  }

  .chat-check-status.legal-warning {
    font-size: 11px;
    line-height: 1.3;
    padding: 7px 8px;
  }

  .chat-code-text {
    font-size: 13px;
  }

  .image-zoom {
    width: 100%;
    height: 150px;
  }

  .target-product .image-zoom {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 380px) {
  .topbar {
    padding: 8px;
  }

  h1 {
    font-size: 16px;
    line-height: 1.16;
  }

  nav button {
    padding: 7px 9px;
  }

  .cards,
  .purchase-list {
    grid-template-columns: 1fr;
  }

  .product-card h3,
  .purchase-card h3 {
    font-size: 14px;
  }

  .product-card,
  .purchase-card,
  .login-panel {
    max-width: 100%;
  }
}

.legacy-android main {
  padding: 8px;
  overflow: hidden;
}

.legacy-android .cards,
.legacy-android .purchase-list {
  display: block !important;
}

.legacy-android .card,
.legacy-android .panel,
.legacy-android .product-card,
.legacy-android .purchase-card {
  display: block !important;
  width: 100%;
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 8px;
}

.legacy-android .product-card > * + *,
.legacy-android .purchase-card > * + *,
.legacy-android .product-info > * + *,
.legacy-android .purchase-body > * + * {
  margin-top: 8px;
}

.legacy-android .product-card h3,
.legacy-android .purchase-card h3 {
  display: block;
  min-height: 0;
  max-height: none;
  overflow: visible;
  font-size: 15px;
  line-height: 1.25;
}

.legacy-android .product-media,
.legacy-android .purchase-media {
  width: 100%;
}

.legacy-android .offer-image {
  height: auto;
  max-height: 220px;
}

.legacy-android .product-carousel {
  display: block;
  overflow: hidden;
}

.legacy-android .product-carousel-track {
  display: block;
  transform: none !important;
  transition: none;
}

.legacy-android .product-carousel-track .product-image-open {
  display: none;
}

.legacy-android .product-carousel-track .product-image-open:first-child {
  display: block;
}

.legacy-android .carousel-arrow {
  display: none !important;
}

.legacy-android .carousel-dots {
  display: none;
}

.legacy-android .cashback-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #5f2367;
}

.legacy-android .product-calc {
  display: block;
}

.legacy-android .product-calc span {
  display: inline-block;
  margin: 0 5px 5px 0;
}

.legacy-android .product-final-price,
.legacy-android .product-benefit,
.legacy-android .offer-limits {
  margin-top: 8px;
}

.legacy-android .product-card button,
.legacy-android .purchase-card button,
.legacy-android .action-link {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

.legacy-android .install-prompt,
.legacy-android .push-prompt {
  display: none !important;
}

.legacy-android .participation {
  padding: 8px;
  border-width: 1px;
}

.legacy-android .journey-head {
  display: block;
}

.legacy-android .journey-product {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legacy-android .journey-product > * + * {
  margin-top: 0;
}

.legacy-android .participation-product-thumb,
.legacy-android .participation-product-thumb.image-zoom {
  width: 44px;
  height: 44px;
}

.legacy-android .journey-product h3 {
  font-size: 14px;
  line-height: 1.25;
}

.legacy-android .journey-summary {
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 8px;
}

.legacy-android .bonus-due {
  border-radius: 8px;
  white-space: normal;
}

.legacy-android .progress {
  height: 5px;
  margin: 8px 0;
}

.legacy-android .steps {
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 5px;
  overflow: visible;
  padding: 0;
  margin-bottom: 8px;
}

.legacy-android .step {
  display: flex;
  flex: 0 0 auto !important;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  justify-content: flex-start;
  text-align: left;
  background: #fff;
  color: #201a2e;
}

.legacy-android .step span {
  width: 24px;
  height: 24px;
  font-size: 12px;
  background: #f1edf7;
  color: #201a2e;
}

.legacy-android .step div {
  display: block;
  overflow: visible;
  white-space: normal;
  font-size: 12px;
  line-height: 1.2;
  color: #201a2e;
}

.legacy-android .step.current {
  background: #fbf2ff;
  border-color: #7c2d83;
  color: #201a2e;
}

.legacy-android .step.current span,
.legacy-android .step.done span {
  background: #7c2d83;
  color: #fff;
}

.legacy-android .task {
  display: block;
  padding: 10px;
  margin-top: 8px;
}

.legacy-android .task h3 {
  font-size: 16px;
  line-height: 1.25;
}

.legacy-android .task-copy,
.legacy-android .expected,
.legacy-android .action-flow,
.legacy-android .target-product,
.legacy-android .purchase-body,
.legacy-android .product-info {
  display: block !important;
}

.legacy-android .task-copy > * + *,
.legacy-android .expected > * + *,
.legacy-android .action-flow > * + *,
.legacy-android .target-product > * + * {
  margin-top: 8px;
}

.legacy-android .action-steps {
  display: block !important;
}

.legacy-android .action-steps span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 34px;
  margin-top: 6px;
  padding: 7px 8px;
  text-align: left;
}

.legacy-android .target-product {
  padding: 8px;
}

.legacy-android .target-product .image-zoom {
  width: 100%;
  height: 120px;
}

.legacy-android .proof-form,
.legacy-android .confirm-step,
.legacy-android .chat-sent-button,
.legacy-android .copy-chat-text {
  display: block;
  width: 100%;
}

.legacy-android .proof-form {
  margin-top: 10px;
}

.legacy-android .proof-field {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: #5f5368;
}

.legacy-android .proof-field span {
  margin-bottom: 5px;
}

.legacy-android .proof-field input {
  display: block;
  width: 100%;
}

.legacy-android input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  overflow: hidden;
}

.legacy-android .proof-file-field::after {
  content: "Выбрать фото";
  display: block;
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  background: #7c2d83;
  color: #fff;
  padding: 12px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 850;
  box-sizing: border-box;
}

.legacy-android .proof-file-name {
  display: block;
}

.legacy-android .proof-form button {
  width: 100%;
  margin-top: 10px;
}
