:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --line: #d9e0e8;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --alert: #ef4444;
  --gold: #d97706;
  --shadow: 0 16px 36px rgba(17, 24, 39, 0.10);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 48px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid rgba(217, 224, 232, 0.85);
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #111827;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.topnav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a.active {
  color: var(--ink);
  background: #edf2f7;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
}

.icon-action[hidden] {
  display: none;
}

.shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 18px 14px calc(126px + env(safe-area-inset-bottom));
}

.shell.narrow {
  width: min(560px, 100%);
  padding-top: 28px;
}

.site-footer {
  display: grid;
  gap: 14px;
  width: min(1160px, calc(100% - 28px));
  margin: -92px auto 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.site-footer a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.legal-page {
  width: min(820px, 100%);
}

.legal-hero,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-hero {
  margin-bottom: 14px;
  padding: 20px;
}

.legal-hero h1 {
  margin: 4px 0 0;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 0.98;
}

.legal-hero span {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-card {
  padding: 20px;
}

.legal-card h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0 0 12px;
  color: #344054;
  line-height: 1.72;
}

.legal-card a {
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.market-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 16px;
}

.lede.tight {
  max-width: 680px;
  margin: 10px 0 0;
}

.home-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.home-focus article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfe8dd;
  border-radius: var(--radius);
  background: #f8fffb;
}

.home-focus span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.home-focus strong,
.home-focus small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-focus strong {
  font-size: 14px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: 32px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 20px;
}

p {
  line-height: 1.55;
}

.muted,
.product-card p,
.lede {
  color: var(--muted);
}

.lede {
  margin: 14px 0 18px;
  font-size: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #b7e2d8;
  border-radius: var(--radius);
  color: #0f513f;
  background: #e9fbf6;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.notice-band {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #f5d08a;
  border-radius: var(--radius);
  background: #fff7e6;
  color: #7c4a03;
}

.ticker-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ticker-strip div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.ticker-strip b,
.ticker-strip span {
  display: block;
}

.ticker-strip b {
  font-size: 20px;
}

.ticker-strip span {
  color: var(--muted);
  font-size: 12px;
}

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

.market-rules article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfe8dd;
  border-radius: var(--radius);
  background: #f0fbf6;
}

.market-rules span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #0f766e;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.market-rules strong,
.market-rules small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.market-rules strong {
  font-size: 14px;
}

.market-rules small {
  color: var(--muted);
  line-height: 1.35;
}

.need-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  background: #f8fbff;
}

.need-entry-card h2,
.need-entry-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.need-entry-card h2 {
  font-size: 20px;
}

.need-entry-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.market-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.market-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: #111827;
  color: #ffffff;
  background: #111827;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-left: auto;
  padding: 10px 12px;
  border: 1px solid #b7e2d8;
  border-radius: var(--radius);
  color: #0f513f;
  background: #e9fbf6;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-count b {
  font-size: 16px;
}

.market-pagination,
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.market-pagination[hidden],
.admin-pagination[hidden],
.product-card[hidden] {
  display: none !important;
}

.market-pagination button,
.admin-pagination button,
.admin-pagination a,
.admin-pagination .pager-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 84px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  touch-action: manipulation;
}

.market-pagination button:disabled,
.admin-pagination button:disabled,
.admin-pagination .pager-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.market-pagination span,
.admin-pagination span {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.cover-link {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe7ef;
}

.cover-link img {
  height: 100%;
  object-fit: contain;
}

.product-copy {
  display: grid;
  gap: 10px;
  padding: 14px;
  min-width: 0;
}

.card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  color: #155e75;
  background: #e7f8fc;
  font-size: 12px;
  font-weight: 800;
}

.price {
  font-weight: 850;
  overflow-wrap: anywhere;
  text-align: right;
}

.product-card h2,
.product-card p {
  overflow-wrap: anywhere;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  color: #374151;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
}

.meter {
  overflow: hidden;
  height: 8px;
  border-radius: 99px;
  background: #e5e7eb;
}

.meter span {
  display: block;
  height: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.card-actions,
.action-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-detail-actions {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-top: 12px;
}

.action-stack .preview-first-action {
  grid-column: 1 / -1;
  border-color: rgba(15, 118, 110, 0.32);
  background: #ecfdf5;
  color: #0f513f;
}

.action-stack .preview-first-action.is-previewed {
  min-height: 44px;
  border-color: #99d8c7;
  background: #f8fffb;
  color: #0f766e;
}

.card-actions .primary-action,
.card-actions .ghost-action {
  white-space: nowrap;
}

.primary-action,
.ghost-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.primary-action {
  border: 1px solid #111827;
  color: #ffffff;
  background: #111827;
}

.primary-action.attention {
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.ghost-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.primary-action.large,
.ghost-action.large {
  min-height: 56px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.google-auth-block {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 48px;
}

.google-signin-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.google-mark {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #1a73e8;
  background: #f8fafc;
  font-weight: 900;
}

.text-action {
  min-height: 44px;
  border: 0;
  color: var(--accent-2);
  background: transparent;
}

.detail-shell {
  display: grid;
  gap: 16px;
}

.detail-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dfe7ef;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.detail-media img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: contain;
}

.deal-clock {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(17, 24, 39, 0.88);
  font-variant-numeric: tabular-nums;
}

.deal-clock.urgent {
  background: rgba(185, 28, 28, 0.94);
}

.deal-clock.static-clock {
  background: rgba(15, 118, 110, 0.92);
}

.deal-clock span {
  min-width: 2ch;
  font-weight: 850;
}

.deal-clock small {
  color: #cbd5e1;
}

.detail-panel {
  display: grid;
  align-content: start;
  min-width: 0;
}

.detail-panel h1 {
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: 0;
}

.detail-panel .lede {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 14px;
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.last-chance-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #dc2626;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  animation: flashPulse 780ms ease-in-out infinite;
}

.last-chance-badge[hidden] {
  display: none;
}

@keyframes flashPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.18);
  }
}

.deal-box {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.91fr) minmax(0, 0.91fr);
  gap: 8px;
  margin: 0 0 10px;
}

.deal-box.single {
  grid-template-columns: 1fr;
}

.deal-box div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.detail-panel .deal-box div:first-child {
  border-color: #99d8c7;
  background: #f0fdfa;
}

.deal-box span,
.deal-box strong {
  display: block;
  overflow-wrap: anywhere;
}

.deal-box span {
  color: var(--muted);
  font-size: 12px;
}

.deal-box strong {
  margin-top: 5px;
  font-size: 18px;
}

.detail-panel .deal-box div:first-child strong {
  color: #0f513f;
  font-size: 23px;
}

.detail-panel .deal-box:not(.single) strong {
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.deal-box strong.price-pulse,
.detail-sticky-deal strong.price-pulse {
  color: #0f766e;
  animation: pricePulse 780ms ease;
}

@keyframes pricePulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.demand-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demand-panel div {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.demand-panel strong,
.demand-panel span {
  display: block;
  overflow-wrap: anywhere;
}

.demand-panel strong {
  color: #0f513f;
  font-size: 14px;
}

.demand-panel span,
.conversion-note {
  color: var(--muted);
  font-size: 12px;
}

.conversion-note {
  margin: 0 0 10px;
}

.conversion-note.active-note {
  color: #0f766e;
  font-weight: 800;
}

.path-kicker {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.detail-section-label {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.purchase-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.purchase-steps div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d6e0ea;
  border-radius: var(--radius);
  background: #ffffff;
}

.purchase-steps span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  background: #111827;
  font-size: 13px;
  font-weight: 850;
}

.purchase-steps strong,
.purchase-steps small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.purchase-steps strong {
  font-size: 14px;
}

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

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #b9e6ca;
  border-radius: var(--radius);
  background: #ecfdf5;
}

.checkout-summary div {
  min-width: 0;
}

.checkout-summary strong,
.checkout-summary span {
  display: block;
  overflow-wrap: anywhere;
}

.checkout-summary strong {
  color: #0f513f;
  font-size: 14px;
}

.checkout-summary span {
  margin-top: 3px;
  color: #315a4b;
  font-size: 12px;
  line-height: 1.35;
}

.release-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.release-panel.released {
  border-color: #99d8c7;
  background: #f0fbf6;
}

.release-panel.released {
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.release-progress {
  display: none;
  overflow: hidden;
  height: 10px;
  border-radius: 99px;
  background: #e5e7eb;
}

.release-panel.is-loading .release-progress {
  display: block;
}

.release-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 160ms ease;
}

.release-state {
  display: none;
  color: var(--muted);
  font-size: 14px;
}

.release-panel.is-loading .release-state {
  display: block;
}

.preview-nudge {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #eff6ff;
}

.preview-nudge strong {
  color: #1e3a8a;
  font-size: 14px;
}

.preview-nudge span {
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.release-preview-action {
  width: 100%;
}

.release-preview-action.is-previewed {
  border-color: #99d8c7;
  color: #0f766e;
  background: #f8fffb;
}

.release-panel.released > .release-progress,
.release-panel.released > .release-state,
.release-panel.released > .preview-nudge,
.release-panel.released > .release-preview-action {
  display: none;
}

.preview-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #cfe8dd;
  border-radius: var(--radius);
  background: #ffffff;
}

.preview-card[hidden] {
  display: none;
}

.preview-card strong,
.preview-card span,
.preview-card small {
  overflow-wrap: anywhere;
}

.preview-card strong {
  color: #0f513f;
  font-size: 15px;
}

.preview-card small {
  color: var(--muted);
}

.preview-demo {
  display: grid;
  gap: 10px;
  margin: 6px 0;
  padding: 12px;
  border: 1px solid #d6e0ec;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.preview-demo[hidden] {
  display: none;
}

.preview-demo-head {
  display: grid;
  gap: 4px;
}

.preview-demo-head > span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f8f3;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.preview-demo-head > strong {
  color: var(--ink);
  font-size: 16px;
}

.preview-demo ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: preview-step;
}

.preview-demo li {
  position: relative;
  min-height: 34px;
  padding: 8px 10px 8px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.preview-demo li::before {
  counter-increment: preview-step;
  content: counter(preview-step);
  position: absolute;
  left: 10px;
  top: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

.preview-demo p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.preview-card-cta {
  width: 100%;
  margin-top: 4px;
}

.blind-box-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d8c9ff;
  border-radius: var(--radius);
  background: #f7f3ff;
}

.blind-box-panel[data-tier="super"] {
  border-color: #9cc3ff;
  background: #edf5ff;
}

.blind-box-panel[data-tier="golden"] {
  border-color: #f0bd4f;
  background: #fff8df;
}

.blind-box-panel h2 {
  font-size: 18px;
}

.detail-sticky-deal {
  position: sticky;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #99d8c7;
  border-radius: var(--radius);
  background: rgba(240, 253, 250, 0.96);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.18);
  backdrop-filter: blur(10px);
}

.detail-sticky-deal div {
  min-width: 0;
}

.detail-sticky-deal span,
.detail-sticky-deal strong,
.detail-sticky-deal small {
  display: block;
  overflow-wrap: anywhere;
}

.detail-sticky-deal span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.detail-sticky-deal strong {
  margin-top: 2px;
  color: #111827;
  font-size: 18px;
}

.detail-sticky-deal small {
  margin-top: 2px;
  color: #315a4b;
  font-size: 12px;
  line-height: 1.35;
}

.detail-sticky-deal .primary-action {
  min-height: 48px;
  padding-inline: 12px;
  white-space: nowrap;
}

.bonus-result {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.bonus-result strong {
  color: var(--ink);
  font-size: 16px;
}

.bonus-result span,
.bonus-result small {
  overflow-wrap: anywhere;
}

.bonus-result small {
  display: block;
  color: #38516a;
}

.delivery {
  display: grid;
  gap: 16px;
}

.success-burst {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #f0bd4f;
  border-radius: var(--radius);
  background: #fff8df;
}

.success-burst::before,
.success-burst::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  animation: burstDrift 1.8s ease-in-out infinite alternate;
}

.success-burst::before {
  right: -44px;
  top: -42px;
}

.success-burst::after {
  left: -62px;
  bottom: -58px;
  animation-delay: 220ms;
}

.burst-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #d97706;
  font-weight: 900;
}

.success-burst > div:not(.burst-mark) {
  position: relative;
  z-index: 1;
}

.success-burst h1 {
  font-size: 24px;
}

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

.delivery-summary div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #cfe8dd;
  border-radius: var(--radius);
  background: #f0fbf6;
}

.delivery-summary span,
.delivery-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.delivery-summary span {
  color: var(--muted);
  font-size: 12px;
}

.delivery-summary strong {
  margin-top: 5px;
  color: #0f513f;
  font-size: 16px;
}

.delivery-steps {
  display: grid;
  gap: 8px;
}

.delivery-steps div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.delivery-steps span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  background: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.delivery-steps strong,
.delivery-steps small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.delivery-steps small {
  color: var(--muted);
  line-height: 1.35;
}

.delivery-actions {
  display: grid;
  gap: 10px;
}

.delivery-retention-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #b7e4d5;
  border-radius: var(--radius);
  background: #f8fffb;
}

.delivery-retention-panel h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.delivery-retention-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.delivery-retention-actions {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.delivery-retention-actions form {
  display: grid;
  margin: 0;
}

.delivery-support-link {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #c8d7e6;
  border-radius: var(--radius);
  background: #ffffff;
}

.delivery-support-link strong {
  color: #0f766e;
  font-size: 14px;
}

.delivery-support-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.delivery-action-plan {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #b7e4d5;
  border-radius: var(--radius);
  background: #f8fffb;
}

.delivery-action-grid {
  display: grid;
  gap: 8px;
}

.delivery-action-grid a,
.delivery-action-grid button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(10rem, 1fr);
  gap: 2px 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.delivery-action-grid a:hover,
.delivery-action-grid button:hover {
  border-color: #9bd6c7;
  background: #f0fbf6;
}

.delivery-action-grid span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.delivery-action-grid strong,
.delivery-action-grid small {
  min-width: 0;
  overflow-wrap: normal;
}

.delivery-action-grid strong {
  display: block;
  word-break: keep-all;
  line-height: 1.35;
}

.delivery-action-grid small {
  color: var(--muted);
  line-height: 1.35;
  word-break: normal;
}

.asset-open-feedback {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #9bd6c7;
  border-radius: var(--radius);
  color: #064e3b;
  background: #ecfdf5;
}

.asset-open-feedback[hidden] {
  display: none;
}

.asset-open-feedback strong,
.asset-open-feedback span {
  display: block;
  overflow-wrap: anywhere;
}

.asset-open-feedback span {
  color: #0f513f;
  font-size: 13px;
  line-height: 1.45;
}

.repurchase-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #b7e4d5;
  border-radius: var(--radius);
  background: #f1fbf7;
}

.repurchase-panel h2 {
  font-size: 20px;
}

.repurchase-meta {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #d6e7e0;
  border-radius: 8px;
  background: #ffffff;
}

.repurchase-meta span,
.repurchase-meta small {
  color: var(--muted);
}

.repurchase-meta strong {
  font-size: 22px;
}

.repurchase-pricing {
  display: grid;
  gap: 8px;
}

.repurchase-pricing div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.repurchase-pricing span {
  color: var(--muted);
  font-size: 13px;
}

.repurchase-pricing s {
  color: var(--muted);
  font-weight: 800;
}

.repurchase-pricing strong {
  color: var(--ink);
  font-size: 20px;
}

.repurchase-pricing .saving {
  color: #0f766e;
}

.success-actions {
  display: grid;
  gap: 10px;
}

@keyframes burstDrift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(8px) scale(1.08);
  }
}

.share-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.share-card img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #dfe7ef;
}

.share-card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.credential-strip span {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid #f0bd4f;
  border-radius: var(--radius);
  color: #5f3b05;
  background: #fff8df;
  font-size: 12px;
  font-weight: 900;
}

.share-card-body h1 {
  font-size: 28px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.share-card-body .lede {
  overflow-wrap: anywhere;
}

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

.share-credential-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.share-credential-grid small,
.share-credential-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.share-credential-grid small {
  color: var(--muted);
  font-size: 11px;
}

.share-credential-grid strong {
  margin-top: 4px;
  font-size: 13px;
}

.share-card-actions {
  display: grid;
  gap: 8px;
}

.share-card-actions small {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.auth-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  min-height: 48px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.auth-form .password-toggle {
  width: fit-content;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 14px;
}

.auth-shell {
  max-width: 640px;
}

.feedback-page {
  display: grid;
  gap: 14px;
}

.feedback-hero,
.feedback-context,
.feedback-form,
.success-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feedback-context {
  gap: 4px;
  border-color: #b7e4d5;
  background: #f0fbf6;
}

.feedback-context span,
.feedback-form .muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.feedback-form textarea {
  resize: vertical;
  line-height: 1.55;
}

.feedback-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.need-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.need-hero {
  border-color: #c7d2fe;
  background: #f8fbff;
}

.need-community-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  background: #ffffff;
}

.need-community-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.need-community-list a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #f8fbff;
  text-decoration: none;
}

.need-community-list a:hover {
  border-color: #a8b8ff;
  background: #f1f5ff;
}

.need-community-list strong,
.need-community-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.need-community-list span {
  color: var(--muted);
  font-size: 13px;
}

.account-page {
  display: grid;
  gap: 16px;
}

.account-hero,
.account-section,
.account-community {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.account-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  align-items: end;
  border-color: #b7e4d5;
  background: linear-gradient(135deg, #f4fbf8 0%, #ffffff 55%, #f8fbff 100%);
}

.account-hero h1,
.account-community h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.04;
}

.account-hero .lede,
.account-community p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.account-person {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
}

.account-person .ghost-action {
  min-height: 42px;
}

.account-person strong {
  font-size: 18px;
}

.account-person span {
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

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

.account-metrics div {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.account-metrics span,
.account-content-meta,
.account-mini-list small,
.account-need-list small,
.account-offer-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-metrics strong {
  font-size: 28px;
  line-height: 1;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-section-head.compact {
  align-items: start;
}

.account-section-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

.account-empty {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #b7c4d4;
  border-radius: var(--radius);
  background: #f8fafc;
}

.account-empty.compact {
  padding: 14px;
}

.account-content-list,
.account-mini-list,
.account-need-list,
.account-offer-list {
  display: grid;
  gap: 12px;
}

.account-content-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(150px, 0.24fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.account-thumb {
  display: grid;
  place-items: center;
  min-height: 108px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef6f3;
}

.account-thumb img {
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
}

.account-thumb.is-empty span {
  padding: 10px;
  color: #0f766e;
  font-weight: 900;
  text-align: center;
}

.account-content-main {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.account-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-content-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.account-content-card p {
  display: -webkit-box;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.account-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-content-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f6f9;
}

.account-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.account-state.is-available {
  color: #0f513f;
  background: #dcfce7;
}

.account-state.is-expired {
  color: #991b1b;
  background: #fee2e2;
}

.account-state.is-pending {
  color: #92400e;
  background: #fef3c7;
}

.account-state.is-muted {
  color: #475467;
  background: #eef2f6;
}

.account-card-actions {
  display: grid;
  gap: 8px;
  align-content: center;
}

.account-card-actions form {
  display: grid;
  margin: 0;
}

.account-card-actions .primary-action,
.account-card-actions .ghost-action,
.account-card-actions button,
.account-offer-card .primary-action,
.account-mini-list .ghost-action {
  width: 100%;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.account-mini-list article,
.account-need-list article,
.account-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.account-mini-list article div,
.account-need-list article div,
.account-offer-card div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.account-mini-list strong,
.account-need-list strong,
.account-offer-card strong {
  overflow-wrap: anywhere;
}

.account-need-list strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.account-community {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.24fr);
  align-items: center;
  border-color: #c7d2fe;
  background: #f8fbff;
}

.auth-panel {
  display: grid;
  gap: 16px;
  padding: 18px 0 36px;
}

.auth-panel h1 {
  font-size: clamp(32px, 6vw, 48px);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-links .secondary-action {
  min-height: 46px;
}

.error-text {
  color: var(--alert);
  font-weight: 700;
}

.admin-grid {
  display: grid;
  gap: 16px;
}

.admin-view-tabs {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  scrollbar-width: thin;
}

.admin-view-tabs a {
  display: inline-flex;
  min-height: 42px;
  min-width: max-content;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.admin-view-tabs a.is-active {
  border-color: #111827;
  color: #ffffff;
  background: #111827;
}

.admin-grid[data-admin-view] .admin-screen {
  display: none;
}

.admin-grid[data-admin-view="overview"] .admin-screen-overview,
.admin-grid[data-admin-view="products"] .admin-screen-products,
.admin-grid[data-admin-view="content"] .admin-screen-content,
.admin-grid[data-admin-view="orders"] .admin-screen-orders,
.admin-grid[data-admin-view="needs"] .admin-screen-needs,
.admin-grid[data-admin-view="feedback"] .admin-screen-feedback,
.admin-grid[data-admin-view="funnel"] .admin-screen-funnel,
.admin-grid[data-admin-view="ops"] .admin-screen-ops,
.admin-grid[data-admin-view="config"] .admin-screen-config {
  display: grid;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-hero {
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-hero h1 {
  font-size: 30px;
}

.admin-hero .muted {
  max-width: 680px;
  margin: 10px 0 0;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 380px);
}

.admin-actions form {
  margin: 0;
  display: contents;
}

.admin-actions .ghost-action {
  width: 100%;
  min-height: 84px;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1.25;
}

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

.admin-quick div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfe8dd;
  border-radius: var(--radius);
  background: #f0fbf6;
}

.admin-quick strong,
.admin-quick span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-quick strong {
  color: #0f513f;
  font-size: 14px;
}

.admin-quick span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.automation-center {
  gap: 14px;
}

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

.touchpoint-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.automation-card {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.automation-card.is-ready {
  border-color: #b9e6ca;
  background: #effcf5;
}

.automation-card.needs-work {
  border-color: #fed7aa;
  background: #fff7ed;
}

.automation-card span,
.automation-card strong,
.automation-card small {
  display: block;
  overflow-wrap: anywhere;
}

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

.automation-card strong {
  margin-top: 8px;
  color: #0f766e;
  font-size: 28px;
  line-height: 1;
}

.automation-card.needs-work strong {
  color: #b45309;
}

.automation-card small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.automation-actions form {
  margin: 0;
}

.automation-actions .primary-action,
.automation-actions .mini-action {
  min-height: 44px;
}

.ops-todos {
  gap: 12px;
}

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

.ops-todo {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  background: #f8fbff;
}

.ops-todo.is-high {
  border-color: #fecaca;
  background: #fff7f7;
}

.ops-todo strong,
.ops-todo span {
  display: block;
  overflow-wrap: anywhere;
}

.ops-todo strong {
  color: #102033;
  font-size: 15px;
}

.ops-todo span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ops-todo .mini-action {
  justify-self: start;
}

.ops-todo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-analytics-strip,
.support-snippet-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.offer-analytics-strip div {
  display: grid;
  gap: 4px;
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.offer-analytics-strip strong,
.offer-analytics-strip span {
  display: block;
  overflow-wrap: anywhere;
}

.offer-analytics-strip strong {
  font-size: 22px;
  line-height: 1;
}

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

.config-checks {
  gap: 12px;
}

.config-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.config-check {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.config-check strong,
.config-check small {
  display: block;
  overflow-wrap: anywhere;
}

.config-check strong {
  color: var(--ink);
  font-size: 15px;
}

.config-check small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.config-state {
  justify-self: start;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.config-state.is-ready {
  color: #065f46;
  background: #dff7ec;
}

.config-state.needs-work {
  color: #92400e;
  background: #fff3cd;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-card h2 {
  font-size: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-head .inline-form {
  margin: 0;
}

.inline-tools,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form,
.delete-form {
  display: inline-flex;
  margin: 0;
}

.delete-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  background: #fff7f7;
}

.admin-cleanup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background: #fff7ed;
}

.admin-cleanup-form label {
  display: grid;
  gap: 6px;
  min-width: 160px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-cleanup-form select,
.admin-cleanup-form input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
}

.admin-cleanup-form small {
  flex: 1 1 260px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.mini-action.active {
  border-color: #9cc3ff;
  color: #123b7a;
  background: #edf5ff;
}

.mini-action.copied {
  border-color: #9bd6c7;
  color: #064e3b;
  background: #ecfdf5;
}

.mini-action.danger {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff7f7;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.ops-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.ops-metric strong,
.ops-metric span {
  display: block;
  overflow-wrap: anywhere;
}

.ops-metric strong {
  color: #0f766e;
  font-size: 24px;
  line-height: 1;
}

.ops-metric span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-workbench {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.section-head.compact {
  align-items: flex-end;
  padding-top: 2px;
}

.section-head.compact h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.funnel-deep h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.funnel-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.funnel-columns > div {
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.micro-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12px;
}

.micro-table th,
.micro-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.micro-table th {
  color: var(--muted);
  background: #f8fafc;
  font-weight: 850;
}

.micro-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.3;
}

.template-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 2fr) 120px auto;
  gap: 8px;
  align-items: end;
}

.template-form label {
  display: grid;
  gap: 4px;
  font-weight: 850;
  color: var(--muted);
}

.template-form input,
.template-form textarea,
.template-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.template-form textarea {
  min-height: 84px;
  resize: vertical;
}

.template-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #cfe8dd;
  border-radius: 8px;
  background: #f5fcf8;
}

.template-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.template-preview strong {
  color: #062f2a;
  font-size: 15px;
  line-height: 1.35;
}

.template-preview p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #334155;
  line-height: 1.5;
}

.template-preview small {
  color: #0f6b55;
  line-height: 1.35;
}

.template-preview small.is-warning {
  color: #9a3412;
}

.template-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.template-actions .cell-note {
  align-self: center;
  margin-top: 0;
}

@media (min-width: 1120px) {
  .funnel-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-columns > div:first-child {
    grid-column: 1 / -1;
  }
}

.state-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #cfe8dd;
  border-radius: 6px;
  color: #0f513f;
  background: #f0fbf6;
  font-size: 12px;
  font-weight: 850;
}

.state-pill.is-due {
  border-color: #f5c16c;
  color: #7a4410;
  background: #fff7e6;
}

.code-snippet {
  display: block;
  max-width: 360px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.cell-main {
  display: block;
  max-width: 380px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.cell-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cell-note.strong {
  margin-top: 0;
  color: var(--ink);
  font-weight: 800;
}

.raw-config {
  margin-top: 8px;
}

.raw-config summary {
  min-height: 32px;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  touch-action: manipulation;
}

.raw-config[open] .code-snippet {
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.asset-template-bar,
.package-create-form,
.package-template-bar,
.product-template-bar,
.identifier-helper,
.i18n-template-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.asset-template-bar span,
.package-create-form span,
.package-template-bar span,
.product-template-bar span,
.identifier-helper span,
.i18n-template-bar span {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.asset-template-bar button,
.package-create-form button,
.package-template-bar button,
.product-template-bar button,
.identifier-helper button,
.i18n-template-bar button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
  touch-action: manipulation;
}

.asset-template-bar button.is-active,
.package-template-bar button.is-active,
.product-template-bar button.is-active,
.i18n-template-bar button.is-active {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.package-create-form .primary-action {
  border-color: #111827;
  color: #ffffff;
  background: #111827;
}

.identifier-helper small,
.package-create-form small,
.package-template-bar small,
.product-template-bar small,
.i18n-template-bar small {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #b7e4d5;
  border-radius: var(--radius);
  background: #f0fbf6;
}

.admin-note strong {
  color: #064e3b;
  font-size: 14px;
}

.admin-note small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 46px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.admin-form textarea {
  resize: vertical;
}

.cover-manager {
  display: grid;
  gap: 10px;
}

.cover-workbench {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.cover-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.cover-preview img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.cover-preview.is-empty {
  border-style: dashed;
}

.cover-preview span {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.cover-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.cover-upload {
  color: #ffffff;
  border-color: var(--ink);
  background: var(--ink);
}

.cover-controls .form-help {
  flex: 0 0 100%;
}

.cover-controls [data-state="ok"] {
  color: #047857;
}

.cover-controls [data-state="loading"] {
  color: #1d4ed8;
}

.cover-controls [data-state="error"] {
  color: #b91c1c;
}

.admin-form .checkline {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 46px;
}

.admin-form input[type="checkbox"] {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  accent-color: var(--ink);
}

.error-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-table h2 {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.admin-table-tools {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-table-tools label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-table-tools input {
  min-height: 44px;
  width: min(420px, 100%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.feedback-row-form {
  display: grid;
  gap: 8px;
  min-width: min(280px, 100%);
}

.feedback-row-form select,
.feedback-row-form input {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.mini-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
}

.admin-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-filter-chips button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
  touch-action: manipulation;
}

.admin-filter-chips button.is-active {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.admin-filter-chips span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-filter-empty {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.readiness-pill {
  display: inline-flex;
  max-width: 260px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.readiness-pill.is-ready {
  border-color: #b9e6ca;
  color: #0f5b3e;
  background: #eaf8ef;
}

.readiness-pill.needs-work {
  border-color: #f2d095;
  color: #7a4410;
  background: #fff7e6;
}

body[data-active-tab="admin"] [data-install-button],
body[data-active-tab="admin"] [data-install-shelf] {
  display: none !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.install-shelf {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(74px, auto) 44px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #b9d2ff;
  border-radius: var(--radius);
  color: #102a56;
  background: #eef5ff;
  box-shadow: var(--shadow);
}

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

.install-shelf[hidden] {
  display: none;
}

.install-shelf strong,
.install-shelf span {
  display: block;
}

.install-shelf span {
  color: #31527d;
  font-size: 13px;
}

.install-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.install-benefits li {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 850;
}

.install-shelf button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--accent-2);
  font-weight: 800;
}

.install-shelf [data-install-confirm] {
  grid-column: auto;
  width: auto;
}

.install-shelf .install-dismiss {
  grid-column: auto;
  grid-row: auto;
  width: 44px;
  padding: 0;
  border: 1px solid #bfd4f5;
  color: #27476f;
  background: #ffffff;
  font-size: 22px;
  line-height: 1;
}

.reward-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 41;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #f0bd4f;
  border-radius: var(--radius);
  color: #4b3205;
  background: #fff8df;
  box-shadow: var(--shadow);
}

.reward-toast[hidden] {
  display: none;
}

.reward-toast strong,
.reward-toast span {
  display: block;
}

.reward-toast strong {
  font-size: 14px;
}

.reward-toast span {
  color: #7c4a03;
  font-size: 13px;
}

.checkout-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  gap: 3px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid #99d8c7;
  border-radius: var(--radius);
  color: #073b2f;
  background: #ecfdf5;
  box-shadow: var(--shadow);
}

.checkout-toast[hidden] {
  display: none;
}

.checkout-toast strong,
.checkout-toast span {
  display: block;
  overflow-wrap: anywhere;
}

.checkout-toast strong {
  font-size: 14px;
}

.checkout-toast span {
  color: #315a4b;
  font-size: 13px;
}

.primary-action.is-locking,
.ghost-action.is-locking {
  pointer-events: none;
}

@media (display-mode: standalone) {
  .install-shelf,
  [data-install-button] {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .home-focus {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .topbar {
    grid-template-columns: 1fr auto 44px;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .topnav a {
    padding-left: 9px;
    padding-right: 9px;
  }

  .icon-action {
    width: 44px;
    height: 44px;
  }

  .deal-box,
  .delivery-summary,
  .demand-panel,
  .need-entry-card,
  .need-form-grid,
  .ticker-strip,
  .purchase-steps,
  .home-focus {
    grid-template-columns: 1fr;
  }

  .market-rules article {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 10px;
  }

  .market-rules span {
    min-width: 42px;
    height: 42px;
  }

  .card-actions,
  .action-stack {
    grid-template-columns: 1fr;
  }

  .need-entry-card .ghost-action {
    width: 100%;
  }

  .admin-quick {
    grid-template-columns: 1fr;
  }

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

  .install-shelf {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .install-shelf [data-install-confirm] {
    grid-column: 1 / 2;
    width: 100%;
  }

  .install-shelf .install-dismiss {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }

  .reward-toast {
    bottom: calc(140px + env(safe-area-inset-bottom));
  }

  .checkout-toast {
    bottom: calc(140px + env(safe-area-inset-bottom));
  }

  .detail-sticky-deal {
    grid-template-columns: 1fr;
  }

  .share-credential-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 719px) {
  .delivery-retention-panel,
  .account-hero,
  .account-grid,
  .account-community,
  .account-content-card {
    grid-template-columns: 1fr;
  }

  .delivery-retention-actions {
    min-width: 0;
  }

  .need-community-list {
    grid-template-columns: 1fr;
  }

  .account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-card-actions form {
    min-width: 0;
  }

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

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

  .automation-actions form,
  .automation-actions .primary-action,
  .automation-actions .mini-action {
    width: 100%;
  }

  .micro-table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  .template-form {
    grid-template-columns: minmax(240px, 1fr);
    min-width: 260px;
  }

  .admin-table {
    display: grid;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table h2 {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
  }

  .admin-table-tools {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
  }

  .admin-table-tools input {
    width: 100%;
  }

  .admin-table table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-table table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .admin-table tr[hidden] {
    display: none !important;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 10px;
  }

  .admin-table tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
  }

  .admin-table td {
    position: relative;
    display: grid;
    grid-template-columns: minmax(88px, 32%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .admin-table td:last-child {
    border-bottom: 0;
  }

  .admin-table td::before {
    content: "";
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
  }

  .admin-table td[colspan] {
    display: block;
  }

  .admin-table td[colspan]::before {
    display: none;
  }

  .admin-table .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .admin-table .row-actions::before {
    content: "操作";
    flex: 0 0 100%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }

  .admin-table .row-actions .mini-action {
    flex: 1 1 88px;
    justify-content: center;
    min-height: 40px;
  }

  .admin-table .row-actions .inline-form,
  .admin-table .row-actions .delete-form {
    flex: 1 1 88px;
  }

  .admin-table .row-actions .inline-form .mini-action,
  .admin-table .row-actions .delete-form .mini-action {
    width: 100%;
  }

  .admin-cleanup-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  [data-admin-products] td:nth-child(1)::before { content: "ID"; }
  [data-admin-products] td:nth-child(2)::before { content: "编码"; }
  [data-admin-products] td:nth-child(3)::before { content: "标题"; }
  [data-admin-products] td:nth-child(4)::before { content: "状态"; }
  [data-admin-products] td:nth-child(5)::before { content: "发布检查"; }
  [data-admin-products] td:nth-child(6)::before { content: "已售/限量"; }
  [data-admin-products] td:nth-child(7)::before { content: "窗口关闭"; }

  [data-admin-assets] td:nth-child(1)::before { content: "ID"; }
  [data-admin-assets] td:nth-child(2)::before { content: "商品"; }
  [data-admin-assets] td:nth-child(3)::before { content: "类型"; }
  [data-admin-assets] td:nth-child(4)::before { content: "标题"; }
  [data-admin-assets] td:nth-child(5)::before { content: "文件"; }
  [data-admin-assets] td:nth-child(6)::before { content: "链接"; }

  [data-admin-orders] td:nth-child(1)::before { content: "ID"; }
  [data-admin-orders] td:nth-child(2)::before { content: "订单号"; }
  [data-admin-orders] td:nth-child(3)::before { content: "商品"; }
  [data-admin-orders] td:nth-child(4)::before { content: "订单状态"; }
  [data-admin-orders] td:nth-child(5)::before { content: "支付状态"; }
  [data-admin-orders] td:nth-child(6)::before { content: "金额"; }
  [data-admin-orders] td:nth-child(7)::before { content: "创建时间"; }
  [data-admin-orders] td:nth-child(8)::before { content: "处理建议"; }

  [data-admin-offers] td:nth-child(1)::before { content: "ID"; }
  [data-admin-offers] td:nth-child(2)::before { content: "来源订单"; }
  [data-admin-offers] td:nth-child(3)::before { content: "来源商品"; }
  [data-admin-offers] td:nth-child(4)::before { content: "推荐商品"; }
  [data-admin-offers] td:nth-child(5)::before { content: "减免"; }
  [data-admin-offers] td:nth-child(6)::before { content: "状态"; }
  [data-admin-offers] td:nth-child(7)::before { content: "到期"; }
  [data-admin-offers] td:nth-child(8)::before { content: "处理建议"; }

  [data-admin-price-schedules] td:nth-child(1)::before { content: "ID"; }
  [data-admin-price-schedules] td:nth-child(2)::before { content: "商品"; }
  [data-admin-price-schedules] td:nth-child(3)::before { content: "目标价格"; }
  [data-admin-price-schedules] td:nth-child(4)::before { content: "状态"; }
  [data-admin-price-schedules] td:nth-child(5)::before { content: "开始"; }
  [data-admin-price-schedules] td:nth-child(6)::before { content: "结束"; }
  [data-admin-price-schedules] td:nth-child(7)::before { content: "原因"; }
  [data-admin-price-schedules] td:nth-child(8)::before { content: "处理建议"; }
  [data-admin-price-schedules] td:nth-child(9)::before { content: "操作"; }

  [data-admin-experiments] td:nth-child(1)::before { content: "ID"; }
  [data-admin-experiments] td:nth-child(2)::before { content: "实验名称"; }
  [data-admin-experiments] td:nth-child(3)::before { content: "状态"; }
  [data-admin-experiments] td:nth-child(4)::before { content: "适用人群"; }
  [data-admin-experiments] td:nth-child(5)::before { content: "当前策略"; }
  [data-admin-experiments] td:nth-child(6)::before { content: "时间窗口"; }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topnav a {
    min-height: 36px;
    padding: 8px 10px;
  }

  .account-page {
    gap: 12px;
  }

  .account-hero,
  .account-section {
    gap: 12px;
    padding: 14px;
  }

  .account-hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .account-hero .lede {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
  }

  .account-person {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .account-person strong,
  .account-person span {
    grid-column: 1 / -1;
  }

  .account-person .ghost-action {
    width: 100%;
    min-height: 44px;
    padding: 10px;
  }

  .account-metrics {
    gap: 8px;
  }

  .account-metrics div {
    min-height: 82px;
    padding: 12px;
  }

  .account-metrics strong {
    font-size: 26px;
  }

  .icon-action {
    width: 44px;
    height: 44px;
  }

  .account-section-head,
  .account-mini-list article,
  .account-need-list article,
  .account-offer-card {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .account-offer-card .primary-action {
    width: 100%;
  }

  .account-section-head .ghost-action {
    width: auto;
    min-height: 40px;
    justify-self: start;
  }

  .account-thumb,
  .account-thumb img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .account-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-card-actions .primary-action:first-child {
    grid-column: 1 / -1;
  }

  .market-head {
    display: grid;
    align-items: start;
    gap: 12px;
  }

  .status-pill {
    width: fit-content;
  }

  .admin-head,
  .admin-actions {
    display: grid;
    justify-content: stretch;
  }

  .admin-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .admin-actions .ghost-action,
  .admin-actions button {
    width: 100%;
    min-height: 76px;
    padding: 10px 8px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .cover-workbench {
    grid-template-columns: 1fr;
  }

  .cover-preview,
  .cover-preview img {
    min-height: 160px;
  }

  .cover-controls .mini-action {
    flex: 1 1 calc(50% - 8px);
  }

  .install-shelf {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .install-shelf [data-install-confirm] {
    grid-column: 1 / 2;
    width: 100%;
  }

  .install-shelf .install-dismiss {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }

  .detail-shell {
    padding-bottom: 168px;
  }

  .detail-panel h1 {
    font-size: 30px;
  }

  .detail-panel .lede {
    -webkit-line-clamp: 4;
  }

  .deal-box {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .detail-panel .deal-box div:first-child {
    grid-column: 1 / -1;
  }

  .path-kicker {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .purchase-steps {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .purchase-steps div {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    padding: 9px 10px;
  }

  .purchase-steps span {
    grid-row: span 2;
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .purchase-steps strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .purchase-steps small {
    font-size: 12px;
    line-height: 1.35;
  }

  .checkout-summary {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 9px 10px;
  }

  .checkout-summary div {
    display: grid;
    grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
  }

  .checkout-summary strong,
  .checkout-summary span {
    font-size: 12px;
    line-height: 1.35;
  }

  .detail-sticky-deal {
    position: fixed;
    grid-template-columns: minmax(0, 1fr) minmax(108px, auto);
    left: 12px;
    right: 12px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 18;
    display: none;
    margin: 0;
    padding: 9px;
  }

  .detail-sticky-deal small {
    display: none;
  }

  .detail-sticky-deal .primary-action {
    min-height: 44px;
  }

  .detail-sticky-deal.is-visible {
    display: grid;
  }
}

@media (min-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto 52px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .shell {
    padding: 28px 24px 120px;
  }

  h1 {
    font-size: 44px;
  }

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

  .market-rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-form .wide,
  .admin-form button {
    grid-column: 1 / -1;
  }

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

  .install-shelf {
    left: auto;
    right: 24px;
    width: min(420px, calc(100vw - 48px));
  }

  .reward-toast {
    left: auto;
    right: 24px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 48px));
  }

  .checkout-toast {
    left: auto;
    right: 24px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 48px));
  }

  .share-card-body {
    padding: 22px;
  }

  .share-card-body h1 {
    font-size: 40px;
  }
}

@media (min-width: 960px) {
  .shell {
    padding-bottom: 120px;
  }

  .detail-shell {
    width: min(1240px, 100%);
    grid-template-columns: minmax(420px, 0.96fr) minmax(430px, 1.04fr);
    align-items: start;
    gap: 20px;
    padding-top: 34px;
  }

  .detail-media {
    position: sticky;
    top: 92px;
  }
}

@media (min-width: 1060px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .admin-quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .account-metrics {
    grid-template-columns: 1fr;
  }

  .topnav a.account-link {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topnav a.recover-link {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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