:root {
  --primary-cyan: #00a694;
  --primary-yellow: #fcca45;
  --primary-green: #03a600;
  --primary-red: #b60c0c;
  --primary-black: #212121;
  --primary-white: #ffffff;
  --secondary-super-light-grey: #f0f0f0;
  --secondary-light-grey: #e6e6e6;
  --secondary-grey: #cccccc;
  --secondary-medium-grey: #808080;
  --secondary-dark-blue: #3f474d;
  --secondary-teal-green: #1e957a;
  --secondary-light-teal-green: rgba(30, 149, 122, 0.1);
  --secondary-light-red: #ffe3e3;
  --secondary-super-light-yellow: rgba(252, 202, 69, 0.2);
  --bg: #fffdf8;
  --bg-accent: #f7f2e6;
  --card-bg: rgba(255, 255, 255, 0.96);
  --card-border: var(--secondary-light-grey);
  --text: var(--primary-black);
  --muted: var(--secondary-dark-blue);
  --button: var(--primary-yellow);
  --button-hover: #f0bf2e;
  --button-text: var(--primary-black);
  --ghost-bg: var(--primary-white);
  --ghost-border: var(--secondary-light-grey);
  --accent: var(--secondary-teal-green);
  --result-hover: var(--secondary-super-light-yellow);
  --error: var(--primary-red);
  --shadow: 0 8px 20px rgba(63, 71, 77, 0.08);
  --soft-shadow: 0 4px 12px rgba(63, 71, 77, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Fredoka", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(252, 202, 69, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 166, 148, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-accent));
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

.hero {
  padding: 4px 0 16px;
}

.primary-tabs,
.secondary-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.primary-tab,
.secondary-tab {
  border: 1px solid rgba(63, 71, 77, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
}

.primary-tab:hover,
.secondary-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 149, 122, 0.25);
}

.primary-tab.is-active,
.secondary-tab.is-active {
  background: var(--secondary-teal-green);
  color: var(--primary-white);
  border-color: transparent;
}

.tab-panel[hidden],
.product-panel[hidden] {
  display: none;
}

.hero-copy {
  max-width: 620px;
  padding: 6px 2px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-medium-grey);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.05;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
  font-size: 0.94rem;
  line-height: 1.5;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 22px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.32rem;
}

.product-sheet-shell,
.faq-shell {
  overflow: hidden;
}

.product-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(30, 149, 122, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 230, 0.9)),
    radial-gradient(circle at top right, rgba(252, 202, 69, 0.28), transparent 34%);
  box-shadow: var(--soft-shadow);
  margin-bottom: 18px;
}

.product-kicker,
.product-card-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--secondary-medium-grey);
}

.product-copy h3,
.product-info-card h4,
.product-media-header h4,
.faq-group h3,
.faq-section h4 {
  margin: 0 0 8px;
}

.product-note,
.product-info-card p:not(.product-card-label),
.media-placeholder p,
.faq-item p,
.faq-list li {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-description + .product-description,
.product-description + .product-description-list,
.product-description-list + .product-description {
  margin-top: 12px;
}

.product-description-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.product-description-list li + li {
  margin-top: 8px;
}

.product-subheading {
  margin: 18px 0 10px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}

.product-link {
  color: var(--secondary-teal-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(252, 202, 69, 0.24);
  color: #7a5e00;
  font-size: 0.78rem;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.product-info-card-wide {
  grid-column: 1 / -1;
}

.product-info-card,
.product-media-card,
.faq-section {
  border: 1px solid rgba(63, 71, 77, 0.12);
  border-radius: 10px;
  padding: 18px;
  background: #f5f5f5;
  box-shadow: none;
}

.product-media-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-media-count {
  font-size: 0.78rem;
  color: var(--secondary-medium-grey);
}

.media-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.media-placeholder {
  min-height: 140px;
  border-radius: 18px;
  border: 1px dashed rgba(63, 71, 77, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 240, 240, 0.7));
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-placeholder--image {
  min-height: unset;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
  border-radius: 8px;
}

.media-placeholder--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: opacity 0.18s ease;
}

.media-download-link {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.media-download-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-white);
  background: rgba(33, 33, 33, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease;
  border-radius: 8px;
}

.media-download-link:hover img {
  opacity: 0.85;
}

.media-download-link:hover .media-download-hint {
  opacity: 1;
}

.media-placeholder span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(30, 149, 122, 0.12);
  color: var(--secondary-teal-green);
  font-size: 0.76rem;
  font-weight: 600;
}

.faq-group {
  display: grid;
  gap: 18px;
}

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

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(63, 71, 77, 0.1);
  background: rgba(255, 255, 255, 0.84);
  padding: 14px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--secondary-teal-green);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p,
.faq-list {
  margin-top: 10px;
}

.faq-list {
  padding-left: 18px;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.picker-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(240, 240, 240, 0.5)
  );
  box-shadow: var(--soft-shadow);
}

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

.picker-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.picker-search-wrap[hidden] {
  display: none;
}

.picker-header h3 {
  margin: 0;
  font-size: 1rem;
}

.picker-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--secondary-dark-blue);
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 10px;
  border: 1px solid var(--primary-black);
  background: var(--primary-white);
  color: var(--text);
}

input:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 4px rgba(0, 166, 148, 0.12);
}

.search-input-wrap {
  position: relative;
  margin-top: 12px;
}

.search-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(63, 71, 77, 0.4);
  pointer-events: none;
}

.search-input {
  margin-top: 0;
  padding: 8px 14px 8px 34px;
  border: 1px solid rgba(63, 71, 77, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  font-size: 0.88rem;
}

.search-input::placeholder {
  color: rgba(63, 71, 77, 0.38);
}

.search-input:focus {
  outline: none;
  border-color: rgba(0, 166, 148, 0.45);
  background: var(--primary-white);
  box-shadow: 0 0 0 3px rgba(0, 166, 148, 0.1);
}

.button,
.ghost-button,
.icon-button {
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.button {
  border: none;
  background: var(--button);
  color: var(--button-text);
  padding: 11px 18px;
  min-width: 160px;
  box-shadow: var(--soft-shadow);
}

.button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.ghost-button {
  border: 1px solid var(--ghost-border);
  background: var(--ghost-bg);
  color: var(--text);
  padding: 10px 14px;
  box-shadow: var(--soft-shadow);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ghost-border);
  background: var(--ghost-bg);
  color: var(--muted);
  padding: 0;
  box-shadow: var(--soft-shadow);
}

.icon-button span {
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.ghost-button:hover,
.icon-button:hover {
  background: var(--result-hover);
  transform: translateY(-1px);
}

.selected-variant {
  min-height: 90px;
  border-radius: 18px;
  border: 1px solid var(--ghost-border);
  padding: 12px;
  background: var(--secondary-light-teal-green);
}

.selected-variant.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.selected-variant p {
  margin: 0;
  text-align: center;
}

.selected-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.variant-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--secondary-super-light-grey);
}

.selected-copy {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.selected-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.selected-copy strong,
.search-result-copy strong {
  font-size: 0.96rem;
}

.selected-copy span,
.search-result-copy span,
.search-result-copy small {
  color: var(--muted);
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.variant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--ghost-border);
  color: var(--muted);
  text-decoration: none;
  background: var(--primary-white);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.variant-link:hover {
  background: var(--result-hover);
  border-color: var(--secondary-grey);
  color: var(--text);
}

.variant-link span {
  font-size: 0.9rem;
  line-height: 1;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--ghost-border);
  padding: 3px 8px;
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--primary-white);
}

.search-results {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.search-placeholder {
  border-radius: 14px;
  border: 1px dashed var(--ghost-border);
  padding: 14px;
  color: var(--muted);
  background: var(--primary-white);
}

.search-result {
  width: 100%;
  text-align: left;
  border: 1px solid var(--ghost-border);
  background: var(--primary-white);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.search-result:hover {
  background: rgba(252, 202, 69, 0.08);
  border-color: var(--secondary-grey);
  transform: none;
}

.search-result-copy {
  display: grid;
  gap: 2px;
}

.search-result-copy strong {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
}

.search-result-copy span {
  font-size: 0.85rem;
  line-height: 1.25;
}

.search-result-copy small {
  font-size: 0.8rem;
  line-height: 1.2;
}

.activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.activity-search-input {
  flex: 0 1 200px;
  min-width: 140px;
  max-width: 260px;
  padding: 5px 9px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(63, 71, 77, 0.12);
  border-radius: 10px;
  box-shadow: none;
}

.activity-search-input::placeholder {
  color: rgba(63, 71, 77, 0.45);
}

.activity-search-input:focus {
  outline: none;
  border-color: rgba(30, 149, 122, 0.35);
  background: var(--primary-white);
}

.activity-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  color: var(--muted);
}

.activity-page-fraction {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
  min-width: 2.25rem;
  text-align: center;
}

.activity-page-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.activity-page-icon-btn:hover:not(:disabled) {
  background: rgba(63, 71, 77, 0.06);
  color: var(--text);
}

.activity-page-icon-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.activity-muted {
  color: var(--secondary-medium-grey);
  font-size: 0.88rem;
}

.activity-net-amount {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.activity-matched-offers {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
}

.activity-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 260px;
}

.activity-status-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.activity-refresh-btn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--secondary-medium-grey);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.activity-refresh-btn:hover:not(:disabled) {
  background: rgba(63, 71, 77, 0.08);
  color: var(--muted);
}

.activity-refresh-btn:disabled {
  opacity: 0.35;
  cursor: wait;
}

.activity-order-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.activity-refs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.activity-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--secondary-medium-grey);
  background: rgba(63, 71, 77, 0.06);
  border: 1px solid rgba(63, 71, 77, 0.12);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  user-select: all;
}

.col-contact {
  width: 36px;
  text-align: right;
  padding-right: 6px;
}

.activity-contact-btn {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--secondary-medium-grey);
  background: transparent;
  text-decoration: none;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.activity-contact-btn:hover,
.activity-contact-btn:focus-visible {
  background: rgba(63, 71, 77, 0.08);
  color: var(--secondary-teal-green);
  outline: none;
}

.badge-has-tooltip {
  position: relative;
  cursor: default;
}

.badge-has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #1c1c1c;
  color: #f5f5f5;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  width: max-content;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.badge-has-tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1c1c1c;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.badge-has-tooltip:hover::after,
.badge-has-tooltip:hover::before {
  opacity: 1;
}

.order-admin-link {
  color: var(--secondary-teal-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.order-admin-link:hover {
  color: #157a63;
  border-bottom-color: rgba(30, 149, 122, 0.45);
}

.table-wrapper {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--card-border);
  text-align: left;
  padding: 10px 8px;
  font-size: 0.92rem;
}

th {
  color: var(--muted);
  background: var(--secondary-super-light-yellow);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-success {
  background: rgba(3, 166, 0, 0.12);
  color: #047a00;
  border: 1px solid rgba(3, 166, 0, 0.25);
}

.badge-error {
  background: rgba(182, 12, 12, 0.1);
  color: #9a0a0a;
  border: 1px solid rgba(182, 12, 12, 0.22);
}

.badge-warning {
  background: rgba(252, 202, 69, 0.22);
  color: #7a5e00;
  border: 1px solid rgba(252, 202, 69, 0.45);
}

.badge-pending {
  background: rgba(63, 71, 77, 0.08);
  color: var(--secondary-medium-grey);
  border: 1px solid rgba(63, 71, 77, 0.15);
}

.env-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-env-test {
  background: rgba(0, 166, 148, 0.1);
  color: #006b60;
  border: 1px solid rgba(0, 166, 148, 0.25);
}

.badge-env-production {
  background: rgba(182, 12, 12, 0.08);
  color: #9a0a0a;
  border: 1px solid rgba(182, 12, 12, 0.2);
}

.status {
  min-height: 1.5rem;
  margin: 14px 0 0;
  color: var(--secondary-teal-green);
}

.status.error {
  color: var(--error);
}

.settings-footer {
  margin-top: 8px;
  margin-bottom: 18px;
  padding: 6px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.settings-footer-copy {
  display: grid;
  gap: 3px;
}

.settings-footer-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-medium-grey);
}

.settings-footer-hint {
  margin: 0;
  font-size: 0.88rem;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(63, 71, 77, 0.14);
  background: rgba(63, 71, 77, 0.16);
  padding: 3px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.switch-thumb {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-white);
  box-shadow: 0 4px 12px rgba(33, 33, 33, 0.18);
  transition: transform 0.16s ease;
}

.switch input:checked + .switch-track {
  border-color: rgba(30, 149, 122, 0.9);
  background: rgba(30, 149, 122, 0.9);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(22px);
}

.switch input:focus-visible + .switch-track {
  box-shadow: 0 0 0 4px rgba(0, 166, 148, 0.14);
}

.switch-text {
  font-size: 0.9rem;
  color: var(--text);
}

.health-footer {
  margin-top: 6px;
  padding: 8px 2px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.health-footer-copy {
  display: grid;
  gap: 3px;
}

.health-footer-label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-medium-grey);
}

.health-footer-status {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.health-list {
  display: grid;
  gap: 6px;
}

.health-item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.82rem;
}

.health-item-label {
  color: var(--muted);
}

.health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(63, 71, 77, 0.16);
}

.health-dot.is-pending {
  background: rgba(63, 71, 77, 0.25);
}

.health-dot.is-ok {
  background: var(--secondary-teal-green);
}

.health-dot.is-empty {
  background: var(--primary-yellow);
}

.health-dot.is-error {
  background: var(--primary-red);
}

.health-detail {
  margin: 0;
  max-width: 320px;
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--secondary-medium-grey);
}

.health-action {
  display: flex;
  justify-content: flex-end;
}

.health-button {
  border: 1px solid var(--ghost-border);
  background: var(--primary-white);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.health-button:hover {
  background: var(--result-hover);
  border-color: var(--secondary-grey);
}

@media (max-width: 700px) {
  .primary-tabs,
  .secondary-tabs {
    gap: 8px;
  }

  .section-heading,
  .picker-header,
  .product-hero-card,
  .product-media-header {
    flex-direction: column;
  }

  .primary-tab,
  .secondary-tab,
  .button,
  .ghost-button,
  .icon-button {
    width: 100%;
    justify-content: center;
  }

  .settings-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .health-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .health-footer-status {
    justify-items: start;
  }

  .health-action {
    justify-content: flex-start;
  }

  .health-item {
    justify-content: flex-start;
  }

  .health-detail {
    max-width: none;
    text-align: left;
  }
}
