: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;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbf8ff 0, var(--bg) 360px),
    var(--bg);
  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: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(48, 34, 68, 0.05);
}

.brand {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

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

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

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

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

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

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

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

button {
  border: 0;
  border-radius: 6px;
  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: 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;
  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 var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  min-height: 42px;
  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: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

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

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

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

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

.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: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

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

.card {
  overflow: hidden;
}

.card h3 {
  color: #2b193b;
}

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

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

.product-card {
  padding: 10px;
  display: grid;
  gap: 10px;
}

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

.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: grid;
  gap: 8px;
}

.product-card h3 {
  font-size: 15px;
  line-height: 1.25;
}

.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;
}

.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;
}

.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: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

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

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

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

.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-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: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 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: 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: grid;
  gap: 4px;
}

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

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

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

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

.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: 42px;
  margin-top: 0;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  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: 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;
}

.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;
}

.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;
}

.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-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;
}

.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;
}

.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);
}

.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-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,
.admin-offer-edit .wide {
  grid-column: 1 / -1;
}

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

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

.admin-offer-actions {
  grid-template-columns: 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: grid;
    grid-template-columns: 1fr;
  }

  main {
    padding: 8px;
  }

  .topbar {
    gap: 8px;
    padding: 8px 10px;
  }

  .brand {
    font-size: 10px;
  }

  h1 {
    font-size: 18px;
  }

  h3 {
    font-size: 15px;
  }

  nav {
    gap: 5px;
  }

  nav button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 13px;
  }

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

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

  .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%;
  }

  .cards {
    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,
  .product-meta .pill,
  .product-link {
    font-size: 11px;
  }

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

  .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 {
    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-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: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
    margin-bottom: 8px;
  }

  .step {
    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 {
    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-code-text {
    font-size: 13px;
  }

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

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