:root {
  color-scheme: light dark;
  --page: #f3f1eb;
  --surface: #f8f7f2;
  --surface-strong: #ffffff;
  --text: #18231f;
  --muted: #58635d;
  --faint: #7a827e;
  --line: #d9d8d0;
  --line-strong: #bfc5be;
  --accent: #176c54;
  --accent-hover: #105640;
  --accent-soft: #dcebe4;
  --danger: #9f2f32;
  --danger-soft: #f8e4e4;
  --warning: #7b5510;
  --warning-soft: #f7edcf;
  --success: #226b45;
  --success-soft: #dff0e7;
  --radius: 12px;
  --font-sans: "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111615;
    --surface: #151c1a;
    --surface-strong: #1a2220;
    --text: #e8eeec;
    --muted: #aeb9b5;
    --faint: #87928e;
    --line: #2d3734;
    --line-strong: #44514d;
    --accent: #7ecab8;
    --accent-hover: #9ad9ca;
    --accent-soft: #173b33;
    --danger: #f2a2a3;
    --danger-soft: #402426;
    --warning: #e2bd6e;
    --warning-soft: #3a311e;
    --success: #8dd3aa;
    --success-soft: #1e3a2b;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  background: var(--page);
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 9% 2%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 40%, var(--page)) 0, var(--page) 36rem);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 22px auto 0;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 24rem),
    color-mix(in srgb, var(--surface-strong) 90%, var(--accent-soft));
  box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 12%, transparent);
}

.header-copy h1 {
  max-width: 17ch;
  margin: 8px 0 12px;
  font-size: clamp(34px, 5.8vw, 68px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-copy > p:last-child {
  max-width: 58ch;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.75;
  text-wrap: pretty;
}

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

.product-label {
  color: var(--accent) !important;
  font-size: 12px;
  font-weight: 700;
}

.header-actions,
.section-heading,
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.page-size-control select {
  min-width: 76px;
}

/* 商家授权与兼容同步功能保留在代码中，但当前不在首页显示。 */
.merchant-compatibility-controls[hidden] {
  display: none;
}

main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

section + section {
  margin-top: 30px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0 0 2px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease,
    transform 80ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.primary {
  background: var(--accent);
  color: var(--page);
}

@media (prefers-color-scheme: light) {
  .button.primary {
    color: #ffffff;
  }
}

.button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--text);
}

.button.secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.button.text {
  align-self: end;
  background: transparent;
  color: var(--muted);
}

.button.text:hover {
  color: var(--accent);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.status-badge.neutral {
  background: var(--surface-strong);
  color: var(--muted);
  border: 1px solid var(--line);
}

.status-badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.notice {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--line));
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--warning);
}

.notice.error {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}

.resource-hub {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(300px, 1.35fr) minmax(220px, 0.9fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.resource-hub-intro {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 20px;
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface-strong));
}

.resource-kicker,
.resource-destination-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.resource-hub-intro h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.resource-hub-intro p {
  margin: 0;
  color: var(--muted);
}

.resource-destinations {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-left: 1px solid var(--line);
}

.resource-destination {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 17px 20px;
  color: inherit;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}

.resource-destination + .resource-destination {
  border-top: 1px solid var(--line);
}

.resource-destination:hover {
  background: var(--accent-soft);
}

.resource-destination strong {
  font-size: 15px;
}

.resource-destination-url {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.community-entry {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 54%, var(--surface-strong));
}

.community-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.community-number {
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.04em;
}

.community-copy p {
  margin: 0;
  color: var(--muted);
}

.community-qr {
  position: relative;
  flex: 0 0 auto;
}

.community-qr summary {
  list-style: none;
}

.community-qr summary::-webkit-details-marker,
.community-qr summary::marker {
  display: none;
  content: "";
}

.community-qr-toggle {
  min-height: 36px;
}

.community-qr-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  width: min(320px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--text) 18%, transparent);
}

.community-qr-panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1031 / 1378;
  object-fit: contain;
  border-radius: 7px;
  background: #ffffff;
}

.community-qr-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics > div {
  padding: 15px 18px;
}

.metrics > div + div {
  border-left: 1px solid var(--line);
}

.metrics dt {
  color: var(--muted);
  font-size: 12px;
}

.metrics dd {
  min-height: 30px;
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(145px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 5px;
}

/* The backend connection filter remains available for compatibility, but is not part of the public catalog UI. */
.filters .connection-filter,
.filters .connection-filter[hidden] {
  display: none !important;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

input[type="search"],
.credential-dialog input[type="password"],
.connect-dialog input[type="text"],
.connect-dialog input[type="number"],
.connect-dialog textarea,
select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
}

.connect-dialog textarea {
  min-height: 130px;
  padding: 9px 10px;
  resize: vertical;
  font-family: var(--font-sans);
  line-height: 1.5;
}

input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  white-space: nowrap;
}

.check-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.table-shell {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

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

caption,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--accent-soft) 35%, transparent);
}

.product-name {
  max-width: 420px;
  font-weight: 650;
}

.product-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.classification-cell {
  min-width: 210px;
}

.canonical-name {
  font-weight: 700;
}

.classification-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.classification-tag {
  display: inline-flex;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.classification-confidence {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.number-cell,
.price,
.stock {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.price.primary-price {
  color: var(--accent);
  font-weight: 750;
}

.muted {
  color: var(--muted);
}

.state-text {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.state-text.available,
.state-text.connected {
  background: var(--success-soft);
  color: var(--success);
}

.state-text.unavailable,
.state-text.failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.state-text.unconnected,
.state-text.partial {
  background: var(--warning-soft);
  color: var(--warning);
}

.state-text.unknown,
.state-text.running {
  background: var(--accent-soft);
  color: var(--accent);
}

.table-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.table-action {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

.action-complete {
  font-size: 12px;
}

.connect-dialog,
.credential-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(900px, calc(100dvh - 36px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 28px 90px color-mix(in srgb, #000000 34%, transparent);
}

.credential-dialog {
  width: min(620px, calc(100% - 28px));
}

.connect-dialog::backdrop,
.credential-dialog::backdrop {
  background: color-mix(in srgb, #07100e 62%, transparent);
  backdrop-filter: blur(3px);
}

.connect-form,
.credential-form {
  max-height: min(900px, calc(100dvh - 36px));
  padding: 22px;
  overflow-y: auto;
}

.dialog-header,
.dialog-actions,
.field-label-row {
  display: flex;
  align-items: center;
}

.dialog-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dialog-header h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.credential-mode {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.credential-extension {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-soft) 74%, var(--surface));
}

.credential-extension-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.credential-extension-heading h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.credential-security-label {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.credential-extension-summary,
.credential-extension-privacy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.credential-extension-start {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
}

.credential-extension-status {
  display: flex;
  min-height: 20px;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.credential-extension-status::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.credential-extension-status[data-state="working"]::before {
  background: var(--accent);
}

.credential-extension-status[data-state="success"] {
  color: var(--accent-strong);
}

.credential-extension-status[data-state="success"]::before {
  background: var(--accent-strong);
}

.credential-extension-status[data-state="error"] {
  color: var(--danger);
}

.credential-extension-status[data-state="error"]::before {
  background: var(--danger);
}

.credential-extension-install {
  margin-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  padding-top: 10px;
}

.credential-extension-install summary {
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.credential-extension-install ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.credential-extension-install code,
.credential-extension-path {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--text);
  font: 600 11px/1.45 var(--font-mono);
}

.credential-extension-install code {
  padding: 1px 4px;
}

.credential-extension-path {
  display: block;
  margin-top: 9px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  user-select: all;
}

.credential-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

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

.credential-divider span {
  flex: 0 0 auto;
}

.credential-guide {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.credential-guide h3 {
  margin: 0;
  font-size: 14px;
}

.credential-guide ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.credential-guide li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.credential-guide li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: 700 12px/1 var(--font-mono);
}

.credential-guide p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.credential-guide strong {
  color: var(--text);
}

.credential-guide code,
.credential-guide kbd {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-strong);
  color: var(--text);
  font: 600 11px/1.4 var(--font-mono);
}

.credential-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.credential-field {
  margin-top: 16px;
}

.credential-field input {
  font-family: var(--font-mono);
}

.credential-warning {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.danger-text {
  color: var(--danger) !important;
}

.connect-product-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.connect-product-summary > div > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.connect-product-summary > div > strong {
  display: block;
  margin-top: 3px;
}

.connect-product-summary dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 13px 0 0;
}

.connect-product-summary dl > div {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.connect-product-summary dt {
  color: var(--muted);
  font-size: 11px;
}

.connect-product-summary dd {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-weight: 750;
}

#connect-sale-price {
  color: var(--accent);
}

.inline-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.connect-dialog .field small,
.credential-dialog .field small {
  color: var(--muted);
  font-size: 11px;
}

.connect-copy-field {
  margin-top: 14px;
}

.field-label-row {
  justify-content: space-between;
  gap: 16px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted) !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.inline-check input {
  accent-color: var(--accent);
}

.input-suffix {
  position: relative;
}

.input-suffix input {
  width: 100%;
  padding-right: 42px !important;
}

.input-suffix span {
  position: absolute;
  top: 50%;
  right: 11px;
  color: var(--muted);
  transform: translateY(-50%);
}

.connect-warning {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--line));
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
}

.dialog-actions {
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dialog-spacer {
  flex: 1;
}

.table-link:hover {
  text-decoration: underline;
}

.table-state {
  min-height: 0;
}

.table-state.message {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.table-state.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.loading-row td {
  height: 51px;
}

.skeleton {
  display: inline-block;
  height: 14px;
  border-radius: 4px;
  background: var(--line);
}

.skeleton.short {
  width: 54px;
}

.skeleton.long {
  width: min(260px, 80%);
}

.pagination {
  justify-content: flex-end;
  margin-top: 12px;
}

#page-label {
  min-width: 110px;
  color: var(--muted);
  text-align: center;
}

.run-list {
  border-top: 1px solid var(--line);
}

.run-row {
  display: grid;
  grid-template-columns: 160px 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.run-summary {
  color: var(--muted);
}

.run-message {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100% - 40px));
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--text) 12%, transparent);
}

@media (max-width: 1100px) {
  .resource-hub {
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
  }

  .community-entry {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .search-field {
    grid-column: span 2;
  }

  .button.text,
  .check-field {
    align-self: end;
  }
}

@media (max-width: 760px) {

  .resource-hub {
    grid-template-columns: 1fr;
  }

  .resource-hub-intro {
    padding: 16px;
  }

  .resource-destinations {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .community-entry {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .community-qr {
    width: 100%;
  }

  .community-qr-panel {
    position: static;
    width: 100%;
    max-width: 320px;
    margin-top: 10px;
  }

  .app-header,
  main {
    width: min(100% - 28px, 1500px);
  }

  .app-header {
    align-items: stretch;
    flex-direction: column;
    padding-top: 20px;
  }

  .header-actions {
    justify-content: space-between;
  }

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

  .metrics > div + div {
    border-left: 0;
  }

  .metrics > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .metrics > div:last-child {
    grid-column: 1 / -1;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .catalog-heading {
    align-items: flex-end;
  }

  .run-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .run-message,
  .run-summary {
    grid-column: 1 / -1;
  }

  .hide-mobile {
    display: none;
  }
}

@media (max-width: 520px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
  }

  .hide-tablet {
    display: none;
  }

  table {
    min-width: 980px;
  }

  .connect-form,
  .credential-form {
    padding: 16px;
  }

  .credential-guide-actions .button {
    flex: 1 1 180px;
  }

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

  .connect-product-summary dl {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dialog-actions {
    flex-wrap: wrap;
  }

  .dialog-spacer {
    display: none;
  }

  #official-connect-link {
    width: 100%;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


.history-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(900px, calc(100dvh - 36px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 28px 90px color-mix(in srgb, #000000 34%, transparent);
}

.history-dialog::backdrop {
  background: color-mix(in srgb, #07100e 62%, transparent);
  backdrop-filter: blur(3px);
}

.history-panel {
  max-height: min(900px, calc(100dvh - 36px));
  padding: 22px;
  overflow-y: auto;
}

.history-summary {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.history-sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.history-chart {
  margin: 6px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.history-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.history-chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.history-section-title {
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 750;
}

.history-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 12px;
}

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

.history-table th {
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.history-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.history-empty {
  padding: 10px 0;
  color: var(--muted);
}

.history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-chip {
  display: inline-flex;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

/* Chart series colors. --chart-alt is validated against --accent for CVD and
   normal-vision separation in both modes (dataviz palette validator). */
:root {
  --chart-alt: #8a4fc8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --chart-alt: #b590ee;
  }
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.chart-panel-title {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.chart-line-cost { stroke: var(--accent); }
.chart-dot-cost { fill: var(--accent); }
.chart-line-sale { stroke: var(--chart-alt); }
.chart-dot-sale { fill: var(--chart-alt); }
.chart-line-other { stroke: var(--faint); }
.chart-dot-other { fill: var(--faint); }
.chart-line-stock { stroke: var(--faint); }

.history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 16px;
  height: 0;
  border-top: 2px solid currentColor;
}

.legend-swatch.dashed {
  border-top-style: dashed;
}

.legend-cost { color: var(--accent); }
.legend-sale { color: var(--chart-alt); }
.legend-other { color: var(--faint); }

.delta {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.delta.up { color: var(--danger); }
.delta.down { color: var(--success); }

.price-spark {
  display: flex;
  justify-content: flex-end;
  margin-top: 3px;
}

.price-spark svg {
  display: block;
}

.spark-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.spark-dot {
  fill: currentColor;
}

.price-spark .trend-flat { color: var(--faint); }
.price-spark .trend-up { color: var(--danger); }
.price-spark .trend-down { color: var(--success); }

.collection-center { margin-top: 28px; }
.collection-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.collection-notice {
  margin: -2px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface);
  line-height: 1.65;
  text-wrap: pretty;
}
.collection-import-status {
  min-height: 20px;
  margin: -6px 0 14px;
}
.collection-import-status:empty { margin-bottom: 0; }

.collection-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr); gap: 20px; }
.collection-form { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.collection-form .field + .field { margin-top: 14px; }
.collection-form input { width: 100%; }
.collection-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.collection-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.collection-metrics span { padding: 8px 12px; border-radius: 999px; background: var(--surface-strong); }
.collection-sources { display: grid; gap: 8px; transition: opacity 120ms ease; }
.collection-sources[aria-busy="true"] { opacity: 0.62; }
.collection-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, auto);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.collection-source-copy,
.collection-source-actions { min-width: 0; }
.collection-source-row strong,
.collection-source-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-source-row small { margin-top: 4px; color: var(--muted); }
.collection-source-state { color: var(--muted); font-size: 12px; font-weight: 700; }
.collection-source-state[data-state="success"] { color: var(--success); }
.collection-source-state[data-state="failed"] { color: var(--danger); }
.collection-source-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.collection-source-actions .button { align-self: center; }
.collection-shop-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.collection-shop-link-missing {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
}
.collection-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.collection-pagination[hidden] { display: none; }
.collection-page-status { min-width: 170px; color: var(--muted); text-align: center; }
@media (max-width: 820px) {
  .collection-heading { align-items: flex-start; }
  .collection-heading-actions { max-width: 32rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-source-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .collection-source-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 520px) {
  .collection-heading { display: grid; gap: 14px; }
  .collection-heading-actions { width: 100%; justify-content: stretch; }
  .collection-heading-actions .button { flex: 1 1 calc(50% - 4px); }
  .collection-source-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection-source-actions .button,
  .collection-shop-link-missing { width: 100%; }
  .collection-pagination { justify-content: space-between; }
  .collection-page-status { min-width: 0; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-sources { transition: none; }
}
/* Collection task controls and live settings */
.collection-progress {
  margin: 0.75rem 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line, #d9e2ec);
  border-radius: 0.75rem;
  background: var(--panel-muted, #f7fafc);
}
.collection-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}
.collection-progress progress { width: 100%; height: 0.65rem; }
.collection-settings-panel {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line, #d9e2ec);
  border-radius: 0.9rem;
  background: var(--panel, #fff);
}
.collection-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 0.75rem;
}
.collection-settings-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted, #64748b);
  font-size: 0.82rem;
}
.collection-settings-form input { width: 100%; }
@media (max-width: 720px) {
  .collection-heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .collection-settings-form { grid-template-columns: 1fr 1fr; }
}

/* Public storefront and administrator workspace */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--surface-strong);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }
.section-kicker {
  margin: 0 0 6px !important;
  color: var(--accent) !important;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}
.admin-entry {
  align-self: flex-start;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  backdrop-filter: blur(12px);
}
.admin-entry .button { min-height: 34px; }
.admin-entry[hidden],
.admin-only[hidden],
[data-management-only][hidden],
.management-action { display: none !important; }
body.management-mode .management-action { display: inline-flex !important; }

.featured-shops-section {
  position: relative;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-strong) 92%, var(--accent-soft));
}
.featured-shops-section::after {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.featured-heading { position: relative; z-index: 1; }
.featured-shops {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.featured-shop-card {
  grid-column: span 4;
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 7%, transparent);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.featured-shop-card:nth-child(1),
.featured-shop-card:nth-child(5n) { grid-column: span 5; }
.featured-shop-card:nth-child(2),
.featured-shop-card:nth-child(5n + 1) { grid-column: span 7; }
.featured-shop-card:hover {
  z-index: 2;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 20px 46px color-mix(in srgb, var(--accent) 12%, transparent);
  transform: translateY(-3px);
}
.featured-badge {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}
.featured-shop-index {
  margin: 0 0 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.featured-shop-copy h3 {
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.featured-shop-copy > p:last-child {
  margin: 9px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.65;
}
.featured-shop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.featured-shop-meta strong { color: var(--text); font-family: var(--font-mono); }
.featured-shop-link { justify-self: start; display: inline-flex; align-items: center; text-decoration: none; }

.collection-center,
.collection-settings-panel,
.catalog {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: 0 18px 45px color-mix(in srgb, var(--text) 5%, transparent);
}
.collection-grid { grid-template-columns: minmax(0, 1fr); }
.collection-metrics span {
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.collection-source-row {
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  transition: border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}
.collection-source-row:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  background: var(--surface-strong);
  transform: translateX(2px);
}
.featured-admin-panel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.featured-admin-list { display: grid; gap: 10px; }
.featured-admin-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) 90px minmax(110px, 0.55fr) minmax(180px, 1.2fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.featured-admin-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.featured-admin-shop { align-self: center; min-width: 0; }
.featured-admin-shop strong,
.featured-admin-shop small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-admin-shop small { margin-top: 4px; color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.featured-enabled { align-self: center; white-space: nowrap; }
.featured-admin-actions { display: flex; align-items: center; gap: 4px; }

.metrics dd,
.price,
.money,
.collection-metrics strong { font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .featured-shop-card,
  .featured-shop-card:nth-child(n) { grid-column: span 6; }
  .featured-admin-row { grid-template-columns: minmax(180px, 1fr) 90px minmax(120px, 0.7fr) minmax(180px, 1fr); }
  .featured-enabled, .featured-admin-actions { grid-column: span 2; }
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    width: min(100% - 28px, 1240px);
    margin-top: 14px;
    padding: 26px 22px;
    border-radius: 20px;
  }
  .admin-entry { width: 100%; justify-content: space-between; }
  main { width: min(100% - 28px, 1240px); padding-top: 16px; }
  .featured-shops-section { padding: 20px 16px; border-radius: 18px; }
  .featured-shops {
    display: flex;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .featured-shop-card,
  .featured-shop-card:nth-child(n) {
    flex: 0 0 min(85vw, 330px);
    scroll-snap-align: start;
  }
  .collection-center, .collection-settings-panel, .catalog { padding: 18px 14px; border-radius: 18px; }
  .featured-admin-row { grid-template-columns: 1fr 1fr; }
  .featured-admin-shop, .featured-note-field, .featured-admin-actions { grid-column: 1 / -1; }
  .featured-enabled { grid-column: auto; }
}

@media (max-width: 520px) {
  .header-copy h1 { font-size: clamp(32px, 12vw, 48px); }
  .collection-source-row { grid-template-columns: minmax(0, 1fr) auto; }
  .collection-source-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .collection-source-actions .button { width: auto; flex: 1 1 auto; }
  .collection-settings-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-shop-card,
  .collection-source-row,
  .skip-link { transition: none; }
}

/* Editorial marketplace layer: premium public storefront without changing the data flow. */
:root {
  --page: #f4efe6;
  --surface: #faf8f2;
  --surface-strong: #fffdf8;
  --text: #18251f;
  --muted: #66726b;
  --faint: #8b938d;
  --line: #dedbd0;
  --line-strong: #bdc8bf;
  --accent: #185844;
  --accent-hover: #0d4634;
  --accent-soft: #e0ebe1;
  --accent-strong: #134a39;
  --signal: #c86f50;
  --signal-soft: #f5e3da;
}

body {
  background:
    radial-gradient(circle at 82% 0%, rgb(207 169 112 / 12%), transparent 22rem),
    radial-gradient(circle at 0% 12%, rgb(24 88 68 / 8%), transparent 25rem),
    linear-gradient(180deg, #faf8f2 0, var(--page) 38rem);
}

.app-header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  align-items: end;
  min-height: 430px;
  margin-top: 18px;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgb(24 88 68 / 22%);
  border-radius: 34px 34px 10px 34px;
  background:
    linear-gradient(120deg, rgb(255 253 248 / 96%), rgb(244 239 230 / 88%)),
    var(--surface-strong);
  box-shadow: 0 32px 80px rgb(24 88 68 / 10%);
}

.app-header::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgb(24 88 68 / 8%);
  border-radius: 24px 24px 4px 24px;
  content: "";
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  max-width: 12ch;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6.3vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}
.hero-copy h1 em {
  color: var(--accent);
  font-family: Georgia, "Songti SC", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.08em;
}
.hero-copy > p:not(.product-label) {
  max-width: 51ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-eyebrow-dot,
.hero-live-dot::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(200 111 80 / 12%);
  content: "";
}
.hero-eyebrow-rule { width: 28px; height: 1px; background: rgb(24 88 68 / 30%); }
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}
.hero-trust-row strong { margin-right: 5px; color: var(--signal); font: 700 11px/1 var(--font-mono); }
.hero-side-panel { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: end; }
.admin-entry {
  border-color: rgb(24 88 68 / 16%);
  background: rgb(255 253 248 / 74%);
  box-shadow: 0 12px 28px rgb(24 88 68 / 8%);
}
.hero-signal-card {
  width: min(100%, 310px);
  padding: 18px 18px 20px;
  border: 1px solid rgb(24 88 68 / 22%);
  border-radius: 18px 18px 5px 18px;
  background: rgb(24 88 68 / 94%);
  color: #f5f6ef;
  box-shadow: 0 22px 50px rgb(24 88 68 / 18%);
  transform: rotate(2deg);
}
.hero-signal-topline { display: flex; justify-content: space-between; color: rgb(245 246 239 / 62%); font: 700 10px/1 var(--font-mono); letter-spacing: 0.1em; }
.hero-live-dot { display: inline-flex; align-items: center; gap: 6px; color: #d6efcf; }
.hero-live-dot::before { width: 5px; height: 5px; background: #b9d98c; box-shadow: none; }
.hero-signal-value { margin-top: 30px; font: 700 24px/1.1 var(--font-mono); letter-spacing: -0.08em; }
.hero-signal-value span { display: block; margin-top: 5px; color: #d8e9d8; font: 500 11px/1.4 var(--font-sans); letter-spacing: 0.1em; }
.hero-signal-line { display: flex; align-items: end; gap: 5px; height: 46px; margin-top: 22px; }
.hero-signal-line i { display: block; width: 100%; border-radius: 999px 999px 0 0; background: #a8d4b7; opacity: 0.9; }
.hero-signal-line i:nth-child(1) { height: 22%; }.hero-signal-line i:nth-child(2) { height: 38%; }.hero-signal-line i:nth-child(3) { height: 30%; }.hero-signal-line i:nth-child(4) { height: 54%; }.hero-signal-line i:nth-child(5) { height: 48%; }.hero-signal-line i:nth-child(6) { height: 67%; }.hero-signal-line i:nth-child(7) { height: 58%; }.hero-signal-line i:nth-child(8) { height: 78%; }.hero-signal-line i:nth-child(9) { height: 71%; }.hero-signal-line i:nth-child(10) { height: 92%; background: #d7bc82; }
.hero-signal-card p { margin: 18px 0 0; color: rgb(245 246 239 / 70%); font-size: 12px; line-height: 1.6; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}
.signal-strip-item { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 18px; background: rgb(255 253 248 / 74%); }
.signal-strip-index { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(24 88 68 / 24%); border-radius: 50%; color: var(--accent); font: 700 11px/1 var(--font-mono); }
.signal-strip-item strong,
.signal-strip-item small { display: block; }
.signal-strip-item strong { font-size: 13px; }
.signal-strip-item small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.featured-shops-section { box-shadow: 0 22px 56px rgb(24 88 68 / 7%); }
.featured-shop-card { background: rgb(255 253 248 / 90%); }
.featured-shop-card:nth-child(1) { background: linear-gradient(135deg, rgb(224 235 225 / 82%), rgb(255 253 248 / 95%)); }
.featured-shop-card:nth-child(2) { transform: translateY(13px); }
.featured-shop-card:nth-child(2):hover { transform: translateY(9px); }

.catalog { box-shadow: 0 22px 58px rgb(24 88 68 / 6%); }
.catalog-heading h2::before { display: inline-block; width: 8px; height: 8px; margin: 0 9px 4px 0; border-radius: 50%; background: var(--signal); content: ""; }
.filters { padding: 15px; border: 1px solid rgb(24 88 68 / 13%); border-radius: 16px; background: rgb(224 235 225 / 38%); }
.filters .search-field input { min-height: 48px; border-color: rgb(24 88 68 / 28%); background: var(--surface-strong); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 65%); font-size: 15px; }
.filters .field label { color: var(--accent); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.table-shell { border-color: var(--line); border-radius: 18px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%); }
table { min-width: 1160px; }
th { padding-top: 13px; padding-bottom: 13px; background: #f0eee7; color: #7b837d; letter-spacing: 0.06em; text-transform: uppercase; }
td { padding-top: 15px; padding-bottom: 15px; }
tbody tr { transition: background-color 140ms ease, transform 140ms ease; }
tbody tr:hover { background: rgb(224 235 225 / 48%); }
.product-name-row { display: flex; align-items: flex-start; gap: 9px; }
.product-mark { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.product-name { max-width: 360px; font-size: 14px; font-weight: 750; line-height: 1.35; }
.supplier-cell strong { display: block; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.supplier-label,
.price-label { display: block; margin-bottom: 4px; color: var(--faint); font: 700 9px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.price.primary-price > div:not(.price-spark) { font-size: 17px; letter-spacing: -0.04em; }
.price-spark { margin-top: 7px; opacity: 0.8; }
.table-link-primary { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid rgb(24 88 68 / 18%); border-radius: 999px; background: var(--accent-soft); }
.table-link-primary:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

.home-page .collection-center,
.home-page .collection-settings-panel {
  display: none;
}

.directory-entry-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgb(24 88 68 / 14%);
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(224 235 225 / 74%), rgb(255 253 248 / 92%));
  box-shadow: 0 18px 44px rgb(24 88 68 / 6%);
}

.directory-entry-copy h2 {
  margin: 4px 0 7px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.04em;
}

.directory-entry-copy p:last-child {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.directory-entry-action {
  display: flex;
  min-height: 102px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgb(24 88 68 / 18%);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.directory-entry-action:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgb(24 88 68 / 10%);
  transform: translateY(-2px);
}

.directory-entry-action strong,
.directory-entry-action small { display: block; }
.directory-entry-action strong { font-size: 15px; }
.directory-entry-action small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.directory-entry-index { color: var(--accent); font: 700 12px/1 var(--font-mono); letter-spacing: 0.1em; }

.directory-page-header { min-height: 250px; }
.directory-page-header .hero-copy h1 { max-width: 10ch; }
.directory-breadcrumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; text-decoration: none; }
.directory-breadcrumb:hover { color: var(--accent); }
.directory-header-link { margin-top: 12px; }

.directory-home-button {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 138px;
  border-color: rgb(230 178 142 / 48%);
  background: linear-gradient(135deg, #e6b28e, #c8795e);
  color: #1c2a24 !important;
  box-shadow: 0 12px 26px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 36%);
  letter-spacing: .01em;
}

.directory-home-button span {
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.directory-home-button:hover span {
  transform: translateX(-3px);
}

@media (max-width: 760px) {
  .directory-home-button {
    align-self: stretch;
    width: 100%;
  }
}

/* Warm premium palette: replace the remaining deep green surfaces. */
.brand-mark-symbol {
  border-color: rgb(164 77 53 / 42%);
  background: linear-gradient(145deg, #d47d5d, #b7583e);
  color: #fffaf3;
  box-shadow: 0 8px 18px rgb(164 77 53 / 22%);
}

.top-nav-action,
.community-join-link,
.community-qr-dialog .button.primary {
  border-color: #bd6247;
  background: #c86f50;
  color: #fffaf4;
  box-shadow: 0 9px 20px rgb(164 77 53 / 18%);
}

.top-nav-action:hover,
.community-join-link:hover,
.community-qr-dialog .button.primary:hover {
  border-color: #9f4933;
  background: #aa5139;
  color: #ffffff;
}

.hero-hot-shops {
  border-color: rgb(206 151 119 / 50%);
  background:
    radial-gradient(circle at 92% 4%, rgb(200 111 80 / 20%), transparent 13rem),
    linear-gradient(145deg, #433a35 0%, #292625 100%);
  box-shadow: 0 28px 68px rgb(59 44 37 / 25%), inset 0 1px 0 rgb(255 255 255 / 12%);
}

.hero-hot-shops::before {
  border-color: rgb(225 170 136 / 28%);
  box-shadow: 0 0 0 18px rgb(225 170 136 / 6%), 0 0 0 36px rgb(225 170 136 / 3%);
}

.hero-hot-shop {
  border-color: rgb(255 245 235 / 13%);
  background: linear-gradient(145deg, rgb(255 248 240 / 9%), rgb(255 255 255 / 4%));
}

.hero-hot-shop:hover {
  border-color: rgb(224 154 115 / 72%);
  background: linear-gradient(145deg, rgb(200 111 80 / 20%), rgb(255 255 255 / 6%));
}

.hero-hot-shop-topline > span {
  border-color: rgb(224 154 115 / 46%);
  color: #efb492;
}

.hero-hot-shop-link:hover {
  background: #dc9670;
  color: #2b2522;
}

.hero-hot-shops-count,
.hero-hot-shops-more {
  color: #efb492;
}

.hero-hot-shops-more:hover {
  color: #fff1e7;
}

/* The three official destinations are presented as three clear horizontal rows. */
.hero-resource-hub {
  grid-template-columns: 1fr;
  overflow: visible;
}

.hero-resource-hub .resource-destinations {
  display: contents;
}

.hero-resource-hub .resource-destination,
.hero-resource-hub .community-entry {
  min-height: 82px;
  padding: 14px 17px;
  border-left: 0;
  background: rgb(255 253 248 / 78%);
}

.hero-resource-hub .resource-destination:first-child {
  border-top: 0;
}

.hero-resource-hub .resource-destination + .resource-destination,
.hero-resource-hub .community-entry {
  border-top: 1px solid rgb(24 88 68 / 12%);
}

.hero-resource-hub .resource-destination:hover {
  background: rgb(245 227 218 / 62%);
}

.hero-resource-hub .community-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  overflow: visible;
  background: linear-gradient(145deg, rgb(246 238 228 / 82%), rgb(255 253 248 / 88%));
}

.hero-resource-hub .community-copy {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
}

.hero-resource-hub .community-copy .resource-destination-label,
.hero-resource-hub .community-copy p {
  grid-column: 1;
}

.hero-resource-hub .community-number {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: clamp(20px, 2vw, 27px);
}

.community-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.community-actions .button {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 11px;
}

/* Full-size QR dialog so the image is never clipped by the hero card. */
.community-qr-dialog {
  width: min(470px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(200 111 80 / 28%);
  border-radius: 24px;
  background: #fbf7ef;
  color: #2d2926;
  box-shadow: 0 34px 100px rgb(38 29 25 / 34%);
}

.community-qr-dialog::backdrop {
  background: rgb(38 31 28 / 68%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.community-qr-dialog-panel {
  max-height: calc(100dvh - 28px);
  padding: 18px;
  overflow-y: auto;
}

.community-qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.community-qr-header strong,
.community-qr-header small {
  display: block;
}

.community-qr-header strong {
  font-size: 18px;
}

.community-qr-header small {
  margin-top: 3px;
  color: #716761;
  font-family: var(--font-mono);
  font-size: 11px;
}

.community-qr-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(45 41 38 / 15%);
  border-radius: 50%;
  background: #ffffff;
  color: #403936;
  font-size: 22px;
  line-height: 1;
}

.community-qr-close:hover {
  border-color: #c86f50;
  color: #aa5139;
}

.community-qr-dialog img {
  display: block;
  width: min(100%, 365px);
  height: auto;
  max-height: 66dvh;
  margin: 0 auto;
  object-fit: contain;
  border: 8px solid #ffffff;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgb(57 44 38 / 12%);
}

.community-qr-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.community-qr-dialog-actions .button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .hero-resource-hub .community-entry {
    grid-template-columns: 1fr;
  }

  .community-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-resource-hub .community-copy {
    grid-template-columns: 1fr;
  }

  .hero-resource-hub .community-number {
    grid-column: 1;
    grid-row: auto;
  }

  .community-actions,
  .community-qr-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .community-actions .button,
  .community-qr-dialog-actions .button {
    width: 100%;
  }
}

.availability-lock {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--success-soft) 72%, var(--surface-strong));
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.availability-lock span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 12%, transparent);
}

@media (max-width: 760px) {
  .directory-entry-section { grid-template-columns: 1fr; }
  .directory-page-header { min-height: 0; }
  .app-header { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding: 28px 22px 24px; border-radius: 24px 24px 8px 24px; }
  .hero-copy h1 { max-width: 11ch; font-size: clamp(42px, 13vw, 64px); }
  .hero-side-panel { justify-items: stretch; }
  .hero-side-panel .admin-entry { width: 100%; }
  .hero-signal-card { width: 100%; transform: none; }
  .signal-strip { display: flex; overflow-x: auto; }
  .signal-strip-item { min-width: 220px; }
  .filters { padding: 12px; }
  .product-name { max-width: 230px; }
}

@media (max-width: 520px) {
  .hero-eyebrow { flex-wrap: wrap; row-gap: 6px; }
  .hero-trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-trust-row span:last-child { grid-column: 1 / -1; }
  .signal-strip-item { min-width: 205px; padding-inline: 14px; }
}

/* Premium command-center refinement: a stronger visual hierarchy for the public catalog. */
body {
  position: relative;
  background:
    linear-gradient(90deg, rgb(24 88 68 / 3%) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgb(24 88 68 / 3%) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 88% 0%, rgb(200 111 80 / 12%), transparent 26rem),
    linear-gradient(180deg, #fbfaf6 0, var(--page) 34rem);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image: repeating-linear-gradient(115deg, transparent 0 3px, rgb(24 37 31 / 3%) 3px 4px);
  content: "";
  pointer-events: none;
}

.app-header {
  min-height: 470px;
  border-color: rgb(230 238 226 / 16%);
  background:
    radial-gradient(circle at 76% 16%, rgb(200 111 80 / 24%), transparent 18rem),
    radial-gradient(circle at 12% 100%, rgb(104 172 132 / 15%), transparent 22rem),
    linear-gradient(132deg, #10251f 0%, #14372b 56%, #1f4d3b 100%);
  box-shadow: 0 34px 90px rgb(16 37 31 / 22%);
}

.app-header::after {
  position: absolute;
  right: -84px;
  bottom: -128px;
  width: 360px;
  height: 360px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgb(255 255 255 / 3%), 0 0 0 56px rgb(255 255 255 / 2%);
  content: "";
  pointer-events: none;
}

.hero-copy h1,
.hero-copy h1 em {
  color: #f6f8ef;
}

.hero-copy h1 em {
  color: #e6b28e;
}

.hero-copy > p:not(.product-label),
.hero-copy p,
.hero-trust-row {
  color: rgb(239 246 237 / 72%);
}

.hero-eyebrow,
.hero-trust-row strong {
  color: #e6b28e;
}

.hero-eyebrow-rule {
  background: rgb(230 178 142 / 44%);
}

.hero-side-panel .admin-entry {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 9%);
  box-shadow: 0 18px 42px rgb(0 0 0 / 16%);
}

.hero-side-panel .admin-entry .button.secondary {
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 10%);
  color: #f6f8ef;
}

.hero-side-panel .admin-entry .button.secondary:hover {
  border-color: #e6b28e;
  color: #e6b28e;
}

.hero-signal-card {
  border-color: rgb(230 178 142 / 50%);
  background: linear-gradient(145deg, rgb(37 82 63 / 95%), rgb(17 42 34 / 96%));
  box-shadow: 0 24px 56px rgb(0 0 0 / 25%);
}

.resource-hub,
.directory-entry-section,
.catalog,
.collection-center,
.collection-settings-panel {
  border-color: rgb(24 88 68 / 16%);
  border-radius: 22px;
  box-shadow: 0 20px 52px rgb(24 88 68 / 8%);
}

.resource-hub {
  overflow: hidden;
  background: rgb(255 253 248 / 88%);
  backdrop-filter: blur(12px);
}

.resource-hub-intro,
.community-entry {
  background: linear-gradient(145deg, rgb(224 235 225 / 78%), rgb(255 253 248 / 84%));
}

.metrics {
  gap: 12px;
  border: 0;
}

.metrics > div {
  padding: 18px 18px 16px;
  border: 1px solid rgb(24 88 68 / 14%);
  border-radius: 16px;
  background: rgb(255 253 248 / 86%);
  box-shadow: 0 10px 24px rgb(24 88 68 / 5%);
}

.metrics > div + div {
  border-left: 1px solid rgb(24 88 68 / 14%);
}

.metrics dt {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metrics dd {
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 27px;
}

.filters {
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(24 88 68 / 15%);
  border-radius: 18px;
  background: rgb(255 253 248 / 92%);
  box-shadow: 0 14px 34px rgb(24 88 68 / 6%);
}

.filters .search-field {
  position: relative;
}

.filters .search-field input {
  height: 44px;
  padding-left: 14px;
  border-color: rgb(24 88 68 / 22%);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%);
}

.filters select,
.filters .availability-lock,
.filters .check-field {
  min-height: 40px;
  border-radius: 11px;
}

.filters select:hover,
.filters .check-field:hover {
  border-color: rgb(24 88 68 / 48%);
}

.table-shell {
  border-color: rgb(24 88 68 / 16%);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgb(24 88 68 / 7%);
}

table {
  min-width: 1040px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-top: 13px;
  padding-bottom: 13px;
  background: #eef3ed;
  color: var(--accent-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  padding-top: 14px;
  padding-bottom: 14px;
}

tbody tr {
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

tbody tr:hover {
  background: linear-gradient(90deg, rgb(224 235 225 / 76%), rgb(255 253 248 / 24%));
  box-shadow: inset 3px 0 0 var(--signal);
}

.product-name {
  font-size: 15px;
  letter-spacing: -0.015em;
}

.price.primary-price > div:not(.price-spark) {
  display: inline-flex;
  min-width: 82px;
  justify-content: flex-end;
  padding: 5px 9px;
  border: 1px solid rgb(24 88 68 / 16%);
  border-radius: 9px;
  background: rgb(224 235 225 / 72%);
}

.table-toolbar {
  align-items: center;
  padding-inline: 4px;
}

.page-size-control select {
  height: 36px;
  border-radius: 10px;
  background: rgb(255 255 255 / 82%);
}

.pagination {
  justify-content: center;
  margin-top: 18px;
}

.pagination .button {
  min-height: 40px;
  border-radius: 999px;
}

.pagination #page-label {
  min-width: 92px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .app-header {
    min-height: 0;
    background: linear-gradient(145deg, #10251f 0%, #1b4636 100%);
  }

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

  .metrics > div:last-child {
    grid-column: 1 / -1;
  }

  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

/* Premium finish: editorial spacing, tactile surfaces, and restrained motion. */
body {
  isolation: isolate;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 38%, rgb(230 178 142 / 7%), transparent 18rem),
    radial-gradient(circle at 92% 64%, rgb(24 88 68 / 8%), transparent 24rem);
  content: "";
  pointer-events: none;
}

.app-header {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.72fr);
  align-items: center;
  overflow: hidden;
}

.app-header::before {
  inset: 16px;
  border-color: rgb(255 255 255 / 11%);
  border-radius: 24px 24px 6px 24px;
}

.hero-copy {
  animation: premium-rise 650ms cubic-bezier(.2,.75,.25,1) both;
}

.hero-side-panel {
  animation: premium-rise 700ms 90ms cubic-bezier(.2,.75,.25,1) both;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: rgb(239 246 237 / 78%);
}

.hero-signal-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 68px rgb(0 0 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 13%);
}

.hero-signal-card::after {
  position: absolute;
  top: -55px;
  right: -45px;
  width: 150px;
  height: 150px;
  border: 1px solid rgb(230 178 142 / 34%);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgb(230 178 142 / 6%), 0 0 0 36px rgb(230 178 142 / 3%);
  content: "";
  pointer-events: none;
}

.hero-live-dot::before {
  animation: premium-pulse 1.8s ease-in-out infinite;
}

.hero-signal-line i {
  transform-origin: bottom;
  animation: premium-bars 1.2s cubic-bezier(.2,.75,.25,1) both;
}

.hero-signal-line i:nth-child(2) { animation-delay: 35ms; }
.hero-signal-line i:nth-child(3) { animation-delay: 70ms; }
.hero-signal-line i:nth-child(4) { animation-delay: 105ms; }
.hero-signal-line i:nth-child(5) { animation-delay: 140ms; }
.hero-signal-line i:nth-child(6) { animation-delay: 175ms; }
.hero-signal-line i:nth-child(7) { animation-delay: 210ms; }
.hero-signal-line i:nth-child(8) { animation-delay: 245ms; }
.hero-signal-line i:nth-child(9) { animation-delay: 280ms; }
.hero-signal-line i:nth-child(10) { animation-delay: 315ms; }

.resource-hub {
  position: relative;
  overflow: hidden;
}

.resource-hub::before {
  position: absolute;
  top: -120px;
  right: -90px;
  width: 270px;
  height: 270px;
  border: 1px solid rgb(24 88 68 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgb(24 88 68 / 3%), 0 0 0 40px rgb(24 88 68 / 2%);
  content: "";
  pointer-events: none;
}

.resource-destination,
.community-entry,
.directory-entry-action {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%), 0 12px 28px rgb(24 88 68 / 5%);
}

.resource-destination::after,
.directory-entry-action::after {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 30px;
  height: 1px;
  background: var(--signal);
  content: "";
  transform: scaleX(.45);
  transform-origin: right;
  transition: transform 180ms ease;
}

.resource-destination:hover::after,
.directory-entry-action:hover::after {
  transform: scaleX(1);
}

.directory-entry-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgb(255 253 248 / 94%), rgb(224 235 225 / 62%)),
    repeating-linear-gradient(115deg, transparent 0 6px, rgb(24 88 68 / 2%) 6px 7px);
}

.directory-entry-section::before {
  position: absolute;
  top: -44px;
  left: 42%;
  width: 170px;
  height: 170px;
  border: 1px solid rgb(200 111 80 / 20%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.metrics > div {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metrics > div::after {
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), transparent);
  content: "";
  opacity: .7;
}

.metrics > div:hover {
  border-color: rgb(24 88 68 / 28%);
  box-shadow: 0 16px 30px rgb(24 88 68 / 10%);
  transform: translateY(-3px);
}

.catalog,
.collection-center {
  position: relative;
}

.catalog-heading,
.collection-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(24 88 68 / 11%);
}

.catalog-heading .button,
.section-heading > .button {
  box-shadow: 0 8px 18px rgb(24 88 68 / 7%);
}

.button {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover:not(:disabled) {
  box-shadow: 0 10px 22px rgb(24 88 68 / 12%);
  transform: translateY(-2px);
}

.filters {
  position: relative;
}

.filters::before {
  position: absolute;
  top: 0;
  left: 20px;
  width: 74px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--signal);
  content: "";
}

.table-shell {
  background: rgb(255 253 248 / 90%);
  backdrop-filter: blur(10px);
}

tbody tr {
  position: relative;
}

tbody tr td:first-child {
  border-left: 3px solid transparent;
  transition: border-color 160ms ease;
}

tbody tr:hover td:first-child {
  border-left-color: var(--signal);
}

@keyframes premium-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes premium-bars {
  from { opacity: 0; transform: scaleY(.25); }
  to { opacity: .9; transform: scaleY(1); }
}

@keyframes premium-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(185 217 140 / 0%); }
  50% { box-shadow: 0 0 0 5px rgb(185 217 140 / 18%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      linear-gradient(90deg, rgb(126 202 184 / 3%) 1px, transparent 1px) 0 0 / 42px 42px,
      linear-gradient(rgb(126 202 184 / 3%) 1px, transparent 1px) 0 0 / 42px 42px,
      radial-gradient(circle at 88% 0%, rgb(200 111 80 / 13%), transparent 26rem),
      linear-gradient(180deg, #101815 0, var(--page) 34rem);
  }

  .resource-destination,
  .community-entry,
  .directory-entry-action,
  .metrics > div,
  .filters,
  .table-shell {
    background: color-mix(in srgb, var(--surface-strong) 92%, var(--accent-soft));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), 0 14px 30px rgb(0 0 0 / 18%);
  }

  th { background: #1d2925; }
}

/* Homepage hero: replace the static snapshot with six editable featured shops. */
.home-page #featured-shops-section {
  display: none !important;
}

.hero-hot-shops {
  position: relative;
  width: min(100%, 410px);
  padding: 18px;
  border: 1px solid rgb(230 178 142 / 42%);
  border-radius: 20px 20px 7px 20px;
  background: linear-gradient(145deg, rgb(35 79 61 / 94%), rgb(14 38 31 / 98%));
  box-shadow: 0 28px 68px rgb(0 0 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 14%);
  transform: rotate(1.3deg);
}

.hero-hot-shops::before {
  position: absolute;
  top: -64px;
  right: -66px;
  width: 180px;
  height: 180px;
  border: 1px solid rgb(230 178 142 / 26%);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgb(230 178 142 / 6%), 0 0 0 36px rgb(230 178 142 / 3%);
  content: "";
  pointer-events: none;
}

.hero-hot-shops-header,
.hero-hot-shop-topline,
.hero-hot-shop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-hot-shops-kicker,
.hero-hot-shops-count {
  color: rgb(245 246 239 / 64%);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-hot-shops-count {
  color: #e6b28e;
}

.hero-hot-shops h2 {
  margin: 8px 0 0;
  color: #f5f6ef;
  font-size: 22px;
  letter-spacing: -.045em;
}

.hero-hot-shops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.hero-hot-shop {
  position: relative;
  min-height: 118px;
  padding: 11px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 13px 13px 4px 13px;
  background: linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 4%));
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.hero-hot-shop:hover {
  border-color: rgb(230 178 142 / 70%);
  background: linear-gradient(145deg, rgb(230 178 142 / 17%), rgb(255 255 255 / 6%));
  transform: translateY(-3px);
}

.hero-hot-shop-index {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: rgb(230 178 142 / 40%);
  font: 700 10px/1 var(--font-mono);
}

.hero-hot-shop-body {
  min-width: 0;
}

.hero-hot-shop-topline > span {
  display: inline-flex;
  max-width: 92px;
  overflow: hidden;
  padding: 4px 6px;
  border: 1px solid rgb(230 178 142 / 38%);
  border-radius: 999px;
  color: #f0c7ab;
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-hot-shop-link {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  color: #f5f6ef;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-hot-shop-link:hover {
  background: #e6b28e;
  color: #1c2a24;
  transform: translate(2px, -2px);
}

.hero-hot-shop h3 {
  overflow: hidden;
  margin: 12px 0 3px;
  color: #f5f6ef;
  font-size: 14px;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-hot-shop p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgb(245 246 239 / 62%);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-hot-shop-meta {
  justify-content: flex-start;
  margin-top: 10px;
  color: rgb(245 246 239 / 54%);
  font: 10px/1 var(--font-mono);
}

.hero-hot-shops-empty {
  grid-column: 1 / -1;
  min-height: 90px;
  margin: 0;
  padding: 28px 12px;
  border: 1px dashed rgb(255 255 255 / 18%);
  border-radius: 12px;
  color: rgb(245 246 239 / 60%);
  font-size: 12px;
  text-align: center;
}

.hero-hot-shops-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #f0c7ab;
  font-size: 12px;
  text-decoration: none;
}

.hero-hot-shops-more:hover {
  color: #fff4e9;
}

@media (max-width: 760px) {
  .hero-hot-shops {
    width: 100%;
    transform: none;
  }
}

@media (max-width: 430px) {
  .hero-hot-shops-grid {
    grid-template-columns: 1fr;
  }
}

/* Unified navigation: brand, current section, and one clear route forward. */
.top-nav {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1240px, calc(100% - 48px));
  min-width: 0;
  margin: 20px auto 14px;
  padding: 13px 15px 13px 14px;
  border: 1px solid rgb(24 88 68 / 16%);
  border-radius: 19px;
  background: rgb(255 253 248 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%), 0 12px 28px rgb(24 88 68 / 6%);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand-mark-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(200 111 80 / 50%);
  border-radius: 11px 11px 4px 11px;
  background: var(--accent);
  color: #f8f4e9;
  font: 800 14px/1 var(--font-mono);
  letter-spacing: -.08em;
  box-shadow: 0 7px 16px rgb(24 88 68 / 16%);
}

.brand-mark-copy {
  display: grid;
  gap: 1px;
}

.brand-mark-copy strong {
  font: 800 14px/1.1 var(--font-mono);
  letter-spacing: .08em;
}

.brand-mark-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}

.top-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.top-nav-link:hover {
  border-color: rgb(24 88 68 / 16%);
  background: rgb(224 235 225 / 62%);
  color: var(--accent);
  transform: translateY(-1px);
}

.top-nav-link.is-active {
  border-color: rgb(200 111 80 / 30%);
  background: rgb(245 227 218 / 72%);
  color: var(--accent-strong);
}

.top-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #f8f4e9;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgb(24 88 68 / 14%);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.top-nav-action:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 11px 22px rgb(24 88 68 / 19%);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .top-nav {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .top-nav-links {
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav-links::-webkit-scrollbar {
    display: none;
  }

  .top-nav-action {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    width: min(100% - 28px, 1240px);
  }
}

@media (max-width: 620px) {
  .top-nav {
    gap: 10px;
    margin: 14px auto 12px;
    padding: 8px;
    border-radius: 14px;
  }

  .brand-mark-copy small {
    display: none;
  }

  .brand-mark-copy strong {
    font-size: 11px;
  }

  .brand-mark-symbol {
    width: 36px;
    height: 36px;
    border-radius: 9px 9px 3px 9px;
  }

  .top-nav-links {
    justify-content: flex-start;
  }

  .top-nav-link {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 11px;
  }
}

@media (prefers-color-scheme: dark) {
  .top-nav {
    border-color: rgb(126 202 184 / 20%);
    background: rgb(20 33 28 / 76%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), 0 16px 32px rgb(0 0 0 / 18%);
  }

  .top-nav-link:hover {
    background: rgb(126 202 184 / 12%);
  }

  .top-nav-link.is-active {
    border-color: rgb(230 178 142 / 34%);
    background: rgb(200 111 80 / 18%);
    color: #f4c3a8;
  }
}

/* Hero balance: less headline weight on the left, more useful shop detail on the right. */
.app-header {
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  gap: clamp(30px, 5vw, 72px);
}

.hero-copy h1 {
  max-width: 11ch;
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.062em;
}

.hero-copy > p:not(.product-label) {
  max-width: 45ch;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.7;
}

.hero-trust-row {
  gap: 8px 14px;
  margin-top: 22px;
  font-size: 11px;
}

.hero-trust-row span {
  min-height: 28px;
  padding-inline: 9px;
}

.hero-hot-shops {
  width: min(100%, 480px);
  padding: 22px;
  border-radius: 22px 22px 8px 22px;
}

.hero-hot-shops h2 {
  font-size: 28px;
}

.hero-hot-shops-grid {
  gap: 12px;
  margin-top: 20px;
}

.hero-hot-shop {
  min-height: 148px;
  padding: 15px;
  border-radius: 15px 15px 5px 15px;
}

.hero-hot-shop-topline > span {
  max-width: 128px;
  padding: 5px 8px;
  font-size: 11px;
}

.hero-hot-shop-link {
  width: 29px;
  height: 29px;
  font-size: 17px;
}

.hero-hot-shop h3 {
  margin-top: 15px;
  font-size: 16px;
}

.hero-hot-shop p {
  font-size: 12px;
  line-height: 1.5;
}

.hero-hot-shop-meta {
  margin-top: 12px;
  font-size: 11px;
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
    gap: 28px;
  }

  .hero-hot-shops {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-hot-shops {
    max-width: none;
  }
}

/* Light editorial hero: the data panel stays dark, while the page hero becomes a warm neutral canvas. */
.app-header {
  grid-template-rows: auto auto auto;
  min-height: 610px;
  align-items: start;
  border-color: rgb(24 88 68 / 14%);
  background:
    radial-gradient(circle at 90% 8%, rgb(200 111 80 / 13%), transparent 17rem),
    radial-gradient(circle at 8% 95%, rgb(185 210 190 / 24%), transparent 23rem),
    linear-gradient(135deg, #fbfaf5 0%, #f1eadf 100%);
  box-shadow: 0 30px 78px rgb(24 88 68 / 10%);
}

.app-header::before {
  border-color: rgb(24 88 68 / 10%);
}

.hero-copy {
  grid-column: 1;
  grid-row: 2;
  max-width: 600px;
}

.hero-copy h1,
.hero-copy h1 em {
  color: var(--text);
}

.hero-copy h1 em {
  color: var(--signal);
}

.hero-copy > p:not(.product-label),
.hero-copy p,
.hero-trust-row {
  color: var(--muted);
}

.hero-eyebrow {
  color: var(--accent);
}

.hero-eyebrow-rule {
  background: rgb(24 88 68 / 28%);
}

.hero-side-panel {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: stretch;
  justify-items: stretch;
}

.hero-side-panel .admin-entry {
  justify-self: end;
  border-color: rgb(24 88 68 / 16%);
  background: rgb(255 255 255 / 70%);
  box-shadow: 0 12px 24px rgb(24 88 68 / 8%);
}

.hero-side-panel .admin-entry .button.secondary {
  border-color: rgb(24 88 68 / 18%);
  background: rgb(255 255 255 / 72%);
  color: var(--accent);
}

.hero-resource-hub {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-width: 0;
  border-color: rgb(24 88 68 / 15%);
  border-radius: 19px 19px 7px 19px;
  background: rgb(255 253 248 / 82%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%), 0 16px 30px rgb(24 88 68 / 7%);
}

.hero-resource-hub .resource-hub-intro {
  display: none;
}

.hero-resource-hub .resource-destinations {
  border-left: 0;
}

.hero-resource-hub .resource-destination {
  min-height: 82px;
  padding: 15px 17px;
}

.hero-resource-hub .resource-destination strong {
  font-size: 14px;
}

.hero-resource-hub .resource-destination-url {
  font-size: 11px;
}

.hero-resource-hub .community-entry {
  min-height: 164px;
  padding: 17px;
  border-left-color: rgb(24 88 68 / 13%);
  background: linear-gradient(145deg, rgb(224 235 225 / 62%), rgb(255 253 248 / 82%));
}

.hero-resource-hub .community-number {
  font-size: clamp(21px, 2.1vw, 28px);
}

@media (max-width: 980px) {
  .app-header {
    min-height: 650px;
  }

  .hero-resource-hub {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .hero-copy,
  .hero-side-panel,
  .hero-resource-hub {
    grid-column: 1;
  }

  .hero-copy {
    grid-row: 2;
  }

  .hero-side-panel {
    grid-row: 3;
  }

  .hero-resource-hub {
    grid-row: 4;
    grid-template-columns: 1fr;
  }

  .hero-resource-hub .community-entry {
    border-top: 1px solid rgb(24 88 68 / 13%);
    border-left: 0;
  }
}

/* Final homepage palette and resource layout. Keep this block last so legacy rules cannot restore green. */
.home-page .brand-mark-symbol {
  border-color: rgb(255 255 255 / 22%);
  background:
    radial-gradient(circle at 78% 18%, rgb(226 163 125 / 38%), transparent 38%),
    linear-gradient(145deg, #51433d 0%, #342c29 100%);
  box-shadow: 0 10px 24px rgb(55 42 36 / 20%);
  color: #fffaf4;
}

.home-page .top-nav-action {
  border-color: #ba6046;
  background: linear-gradient(135deg, #ce7859, #b95d43);
  box-shadow: 0 10px 22px rgb(181 86 60 / 20%);
  color: #fffaf6;
}

.home-page .top-nav-action:hover {
  border-color: #9f4933;
  background: linear-gradient(135deg, #bb6549, #9f4933);
  box-shadow: 0 13px 27px rgb(159 73 51 / 25%);
  color: #fff;
  transform: translateY(-2px);
}

.home-page .hero-hot-shops {
  border-color: rgb(224 155 112 / 34%);
  background:
    radial-gradient(circle at 94% 2%, rgb(208 119 82 / 24%), transparent 13rem),
    linear-gradient(145deg, #473b36 0%, #292524 58%, #211f1e 100%);
  box-shadow: 0 30px 68px rgb(52 40 34 / 25%), inset 0 1px 0 rgb(255 255 255 / 12%);
}

.home-page .hero-hot-shops::before {
  border-color: rgb(231 174 135 / 25%);
  box-shadow: 0 0 0 18px rgb(218 137 94 / 7%), 0 0 0 36px rgb(218 137 94 / 3%);
}

.home-page .hero-hot-shop {
  border-color: rgb(255 244 232 / 13%);
  background: linear-gradient(145deg, rgb(255 248 240 / 9%), rgb(255 255 255 / 4%));
}

.home-page .hero-hot-shop:hover {
  border-color: rgb(229 159 115 / 65%);
  background: linear-gradient(145deg, rgb(208 119 82 / 19%), rgb(255 255 255 / 6%));
}

.home-page .hero-hot-shop-link:hover {
  background: #d88360;
  color: #2b2421;
}

.home-page .hero-hot-shops-count,
.home-page .hero-hot-shops-more,
.home-page .hero-hot-shop-topline > span {
  color: #efb994;
}

.home-page .hero-resource-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgb(91 72 63 / 14%);
  border-radius: 20px 20px 7px 20px;
  background: rgb(255 252 247 / 90%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 88%), 0 18px 36px rgb(78 59 49 / 9%);
}

.home-page .hero-resource-hub .resource-hub-intro {
  display: none;
}

.home-page .hero-resource-hub .resource-destinations {
  display: contents;
  border: 0;
}

.home-page .hero-resource-hub .resource-destination,
.home-page .hero-resource-hub .community-entry {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 82px;
  padding: 13px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .hero-resource-hub .resource-destination + .resource-destination,
.home-page .hero-resource-hub .community-entry {
  border-top: 1px solid rgb(91 72 63 / 11%);
}

.home-page .hero-resource-hub .resource-destination:hover {
  background: linear-gradient(90deg, rgb(207 118 83 / 8%), rgb(255 255 255 / 0%));
  transform: none;
}

.home-page .resource-row-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgb(190 101 71 / 24%);
  border-radius: 11px 11px 4px 11px;
  background: #f6e9df;
  color: #a6533a;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .06em;
}

.home-page .resource-destination-copy,
.home-page .hero-resource-hub .community-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.home-page .hero-resource-hub .resource-destination-label {
  color: #9f5139;
  font: 700 10px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-page .hero-resource-hub .resource-destination strong {
  margin: 0;
  color: #302a27;
  font-size: 14px;
  line-height: 1.35;
}

.home-page .hero-resource-hub .resource-destination-url {
  overflow: hidden;
  max-width: 100%;
  color: #81736c;
  font: 500 10px/1.4 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .resource-row-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a6533a;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.home-page .hero-resource-hub .community-entry {
  min-height: 92px;
  border-left: 0;
  background: linear-gradient(90deg, rgb(246 233 223 / 52%), rgb(255 252 247 / 35%));
}

.home-page .community-mainline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.home-page .hero-resource-hub .community-number {
  display: inline-block;
  margin: 0;
  color: #302a27;
  font: 760 20px/1.25 var(--font-mono);
  letter-spacing: .025em;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.home-page .community-note {
  color: #81736c;
  font-size: 11px;
  white-space: nowrap;
}

.home-page .hero-resource-hub .community-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.home-page .hero-resource-hub .community-actions .button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px 10px 4px 10px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.home-page .hero-resource-hub .community-join-link,
.community-qr-dialog .button.primary {
  border-color: #ba6046;
  background: linear-gradient(135deg, #ce7859, #b95d43);
  color: #fffaf6;
}

.home-page .hero-resource-hub .community-qr-toggle {
  border-color: rgb(91 72 63 / 20%);
  background: #fffaf5;
  color: #4c403a;
}

.community-qr-dialog {
  width: min(92vw, 460px);
  max-height: min(92dvh, 720px);
  padding: 0;
  overflow: auto;
}

.community-qr-dialog img {
  display: block;
  width: min(100%, 340px);
  height: auto;
  max-height: none;
  margin-inline: auto;
  object-fit: contain;
}

@media (max-width: 620px) {
  .home-page .hero-resource-hub .resource-destination,
  .home-page .hero-resource-hub .community-entry {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .home-page .resource-row-link,
  .home-page .hero-resource-hub .community-actions {
    grid-column: 2;
    justify-self: start;
  }

  .home-page .hero-resource-hub .community-actions {
    flex-wrap: wrap;
    min-width: 0;
  }

  .home-page .community-mainline {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .home-page .hero-resource-hub .community-number {
    font-size: 18px;
  }
}

/* Keep the compact community actions optically centered even though the base button is an anchor. */
.home-page .hero-resource-hub .community-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
}

/* Standalone community page. */
.community-page {
  min-height: 100dvh;
  background:
    linear-gradient(90deg, rgb(91 72 63 / 3.5%) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgb(91 72 63 / 3.5%) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 88% 4%, rgb(207 118 83 / 13%), transparent 25rem),
    #f5f1e9;
  color: #302a27;
}

.community-page .brand-mark-symbol {
  border-color: rgb(255 255 255 / 22%);
  background:
    radial-gradient(circle at 78% 18%, rgb(226 163 125 / 38%), transparent 38%),
    linear-gradient(145deg, #51433d 0%, #342c29 100%);
  box-shadow: 0 10px 24px rgb(55 42 36 / 20%);
  color: #fffaf4;
}

.community-page .top-nav-action {
  border-color: #ba6046;
  background: linear-gradient(135deg, #ce7859, #b95d43);
  box-shadow: 0 10px 22px rgb(181 86 60 / 20%);
  color: #fffaf6;
}

.community-page .top-nav-action:hover {
  border-color: #9f4933;
  background: linear-gradient(135deg, #bb6549, #9f4933);
  color: #fff;
}

.community-main {
  width: min(1240px, calc(100% - 48px));
  margin: 18px auto 0;
}

.community-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
  overflow: hidden;
  min-height: 650px;
  padding: clamp(40px, 6vw, 78px);
  border: 1px solid rgb(91 72 63 / 14%);
  border-radius: 30px 30px 9px 30px;
  background:
    radial-gradient(circle at 92% 8%, rgb(207 118 83 / 13%), transparent 19rem),
    radial-gradient(circle at 4% 100%, rgb(207 118 83 / 7%), transparent 26rem),
    linear-gradient(135deg, #fffdf8 0%, #f2e9dc 100%);
  box-shadow: 0 30px 74px rgb(78 59 49 / 10%);
}

.community-hero::before {
  position: absolute;
  top: -170px;
  right: -130px;
  width: 400px;
  height: 400px;
  border: 1px solid rgb(190 101 71 / 16%);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgb(190 101 71 / 4%), 0 0 0 76px rgb(190 101 71 / 2.5%);
  content: "";
  pointer-events: none;
}

.community-hero-copy,
.community-qr-card {
  position: relative;
  z-index: 1;
}

.community-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: #765f55;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .1em;
}

.community-eyebrow span {
  width: 9px;
  height: 9px;
  border: 2px solid #f1c8b5;
  border-radius: 50%;
  background: #c86f50;
}

.community-hero h1 {
  max-width: 8ch;
  margin: 0;
  color: #282421;
  font-size: clamp(52px, 6.2vw, 82px);
  font-weight: 820;
  line-height: .94;
  letter-spacing: -.075em;
}

.community-hero h1 em {
  color: #c86f50;
  font-family: "STKaiti", "KaiTi", serif;
  font-weight: 500;
}

.community-lead {
  max-width: 48ch;
  margin: 26px 0 0;
  color: #756a64;
  font-size: 15px;
  line-height: 1.8;
}

.community-number-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 470px;
  margin-top: 30px;
  padding: 17px 19px;
  border: 1px solid rgb(91 72 63 / 13%);
  border-radius: 17px 17px 5px 17px;
  background: rgb(255 253 249 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%);
}

.community-number-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.community-number-card > div span {
  color: #a6533a;
  font: 700 10px/1.2 var(--font-mono);
  letter-spacing: .09em;
}

.community-number-card strong {
  color: #302a27;
  font: 760 25px/1.2 var(--font-mono);
  letter-spacing: .035em;
  white-space: nowrap;
}

.community-number-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6c625d;
  font-size: 12px;
  white-space: nowrap;
}

.community-number-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c86f50;
  box-shadow: 0 0 0 4px rgb(200 111 80 / 12%);
}

.community-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.community-page-primary,
.community-page-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px 13px 4px 13px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.community-page-primary {
  border-color: #b75b42;
  background: linear-gradient(135deg, #cf7656, #b85a41);
  box-shadow: 0 12px 24px rgb(181 86 60 / 18%);
  color: #fffaf6;
}

.community-page-secondary {
  border-color: rgb(91 72 63 / 17%);
  background: rgb(255 253 249 / 72%);
  color: #4b403a;
}

.community-page-primary:hover,
.community-page-secondary:hover {
  transform: translateY(-2px);
}

.community-page-primary:hover {
  box-shadow: 0 16px 30px rgb(181 86 60 / 24%);
}

.community-link-note {
  margin: 15px 0 0;
  color: #958780;
  font: 500 10px/1.4 var(--font-mono);
}

.community-qr-card {
  width: min(100%, 440px);
  justify-self: end;
  margin: 0;
  padding: 22px;
  border: 1px solid rgb(225 169 132 / 31%);
  border-radius: 24px 24px 8px 24px;
  background:
    radial-gradient(circle at 96% 2%, rgb(207 118 83 / 22%), transparent 14rem),
    linear-gradient(145deg, #473b36, #252221 72%);
  box-shadow: 0 30px 58px rgb(52 40 34 / 23%), inset 0 1px 0 rgb(255 255 255 / 10%);
  transform: rotate(1.2deg);
}

.community-qr-card figcaption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.community-qr-card figcaption span {
  color: #dfa27d;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .1em;
}

.community-qr-card figcaption strong {
  color: #fffaf4;
  font-size: 15px;
}

.community-qr-frame {
  overflow: hidden;
  padding: 10px;
  border-radius: 18px 18px 5px 18px;
  background: #fffaf6;
  box-shadow: inset 0 0 0 1px rgb(91 72 63 / 8%);
}

.community-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.community-qr-card > p {
  margin: 16px 0 0;
  color: rgb(255 250 244 / 64%);
  font-size: 11px;
}

.community-qr-card > p strong {
  color: #efb994;
  font-family: var(--font-mono);
}

.community-details {
  padding: clamp(48px, 7vw, 82px) clamp(8px, 2vw, 24px);
}

.community-details-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.community-details-heading p {
  margin: 0;
  color: #a6533a;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .1em;
}

.community-details-heading h2 {
  margin: 0;
  color: #302a27;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.045em;
}

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

.community-detail-card {
  min-height: 190px;
  padding: 23px;
  border: 1px solid rgb(91 72 63 / 12%);
  border-radius: 20px 20px 6px 20px;
  background: rgb(255 253 249 / 72%);
  box-shadow: 0 14px 34px rgb(78 59 49 / 6%);
}

.community-detail-card > span {
  color: #b65e43;
  font: 700 10px/1 var(--font-mono);
}

.community-detail-card h3 {
  margin: 42px 0 8px;
  color: #302a27;
  font-size: 18px;
}

.community-detail-card p {
  margin: 0;
  color: #786d67;
  font-size: 13px;
  line-height: 1.75;
}

.community-detail-card-emphasis {
  border-color: rgb(210 126 88 / 22%);
  background: linear-gradient(145deg, #4b3d37, #2f2927);
}

.community-detail-card-emphasis h3 {
  color: #fffaf4;
}

.community-detail-card-emphasis p {
  color: rgb(255 250 244 / 67%);
}

.community-footer {
  display: flex;
  width: min(1240px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid rgb(91 72 63 / 12%);
  color: #8c7e77;
  font: 600 10px/1.4 var(--font-mono);
  letter-spacing: .06em;
}

.community-footer a {
  color: #a6533a;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

@media (max-width: 880px) {
  .community-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 28px;
    padding: 40px;
  }

  .community-hero h1 {
    font-size: clamp(48px, 8vw, 68px);
  }
}

@media (max-width: 720px) {
  .community-main,
  .community-footer {
    width: min(100% - 28px, 1240px);
  }

  .community-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 34px 22px;
  }

  .community-hero-copy {
    order: 1;
  }

  .community-qr-card {
    order: 2;
    width: min(100%, 440px);
    justify-self: center;
    transform: none;
  }

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

  .community-detail-card {
    min-height: 150px;
  }

  .community-detail-card h3 {
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .community-number-card,
  .community-details-heading,
  .community-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-page-actions a {
    width: 100%;
  }

  .community-qr-card {
    padding: 15px;
  }

  .community-qr-card figcaption {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Public shop submission */
.apply-shop-page {
  background:
    radial-gradient(circle at 82% 10%, rgb(185 105 75 / 12%), transparent 28rem),
    radial-gradient(circle at 10% 86%, rgb(62 78 92 / 8%), transparent 30rem),
    #f2eee7;
  color: #28231f;
}

.apply-shop-main {
  display: grid;
  width: min(1240px, calc(100% - 48px));
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: start;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0 72px;
}

.apply-shop-intro {
  position: sticky;
  top: 110px;
  padding-top: 20px;
}

.apply-shop-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #98553f;
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: .13em;
}

.apply-shop-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b7654b;
  box-shadow: 0 0 0 5px rgb(183 101 75 / 12%);
}

.apply-shop-intro h1 {
  max-width: 650px;
  margin: 0;
  color: #2a2521;
  font-size: clamp(50px, 5.5vw, 78px);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .98;
  text-wrap: balance;
}

.apply-shop-intro h1 em {
  color: #a95840;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
}

.apply-shop-lead {
  max-width: 540px;
  margin: 30px 0 38px;
  color: #6d625b;
  font-size: 16px;
  line-height: 1.85;
  text-wrap: pretty;
}

.apply-shop-principles {
  display: grid;
  border-top: 1px solid rgb(85 70 62 / 16%);
}

.apply-shop-principles article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid rgb(85 70 62 / 13%);
}

.apply-shop-principles article > span {
  color: #ad6b56;
  font: 700 11px/1.4 var(--font-mono);
}

.apply-shop-principles strong {
  display: block;
  margin-bottom: 5px;
  color: #37302b;
  font-size: 14px;
}

.apply-shop-principles p {
  margin: 0;
  color: #80736b;
  font-size: 12px;
  line-height: 1.65;
}

.apply-shop-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgb(92 74 64 / 12%);
  border-radius: 30px 10px 30px 10px;
  background: rgb(255 253 249 / 88%);
  box-shadow: 0 32px 80px rgb(91 66 52 / 12%), inset 0 1px 0 rgb(255 255 255 / 90%);
  backdrop-filter: blur(20px);
}

.apply-shop-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(135deg, transparent, rgb(172 91 64 / 9%));
  content: "";
  pointer-events: none;
}

.apply-shop-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgb(85 70 62 / 13%);
}

.apply-shop-card-head p {
  margin: 0 0 7px;
  color: #ad6851;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .16em;
}

.apply-shop-card-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.04em;
}

.apply-shop-card-head > span {
  color: #8a7b73;
  font: 600 11px/1.4 var(--font-mono);
}

.apply-shop-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.apply-field {
  display: grid;
  gap: 8px;
}

.apply-field-wide,
.apply-consent,
.apply-form-status,
.apply-submit-button,
.apply-honeypot {
  grid-column: 1 / -1;
}

.apply-field label {
  color: #4a403a;
  font-size: 12px;
  font-weight: 750;
}

.apply-field label span {
  color: #b4573d;
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  width: 100%;
  border: 1px solid rgb(99 82 72 / 18%);
  border-radius: 10px;
  background: #f7f3ed;
  color: #302925;
  font: 600 14px/1.5 var(--font-sans);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.apply-field input,
.apply-field select {
  min-height: 48px;
  padding: 0 14px;
}

.apply-field textarea {
  min-height: 124px;
  padding: 13px 14px;
  resize: vertical;
}

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  border-color: rgb(169 88 64 / 56%);
  outline: none;
  background: #fffdf9;
  box-shadow: 0 0 0 4px rgb(169 88 64 / 9%);
}

.apply-field small {
  color: #92847b;
  font-size: 11px;
}

.apply-field-wide small:last-child {
  text-align: right;
}

.apply-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apply-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #746860;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.apply-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: #a95840;
}

.apply-form-status {
  min-height: 22px;
  color: #7a6d65;
  font-size: 12px;
}

.apply-form-status[data-type="error"] {
  color: #a63f35;
}

.apply-submit-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 22px;
  border: 0;
  border-radius: 12px;
  background: #322b27;
  box-shadow: 0 14px 28px rgb(50 43 39 / 18%);
  color: #fffaf5;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.apply-submit-button i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #b15e45;
  font-style: normal;
  font-size: 18px;
}

.apply-submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #241f1c;
  box-shadow: 0 18px 34px rgb(50 43 39 / 24%);
}

.apply-submit-button:disabled {
  cursor: wait;
  opacity: .68;
}

.apply-success {
  padding: 36px 10px 20px;
  text-align: center;
}

.apply-success-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #e6eee7;
  color: #3f7256;
  font-size: 30px;
  box-shadow: 0 0 0 12px rgb(63 114 86 / 7%);
}

.apply-success > p {
  margin: 0 0 10px;
  color: #9e5c47;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .15em;
}

.apply-success h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.045em;
}

#submission-success-detail {
  color: #796c64;
  font: 600 13px/1.6 var(--font-mono);
}

.apply-success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.apply-shop-footer {
  display: flex;
  width: min(1240px, calc(100% - 48px));
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid rgb(85 70 62 / 14%);
  color: #93867e;
  font: 600 10px/1.4 var(--font-mono);
}

.apply-shop-footer a {
  color: #8f4e3b;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.apply-shop-footer span {
  margin-left: auto;
}

@media (max-width: 980px) {
  .apply-shop-main {
    grid-template-columns: 1fr;
  }

  .apply-shop-intro {
    position: static;
    padding-top: 0;
  }

  .apply-shop-principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgb(85 70 62 / 13%);
  }

  .apply-shop-principles article {
    grid-template-columns: 34px 1fr;
    border-bottom: 0;
    border-right: 1px solid rgb(85 70 62 / 13%);
    padding-right: 18px;
  }

  .apply-shop-principles article:last-child {
    border-right: 0;
    padding-left: 18px;
  }
}

@media (max-width: 700px) {
  .apply-shop-main,
  .apply-shop-footer {
    width: min(100% - 28px, 1240px);
  }

  .apply-shop-main {
    gap: 36px;
    padding-top: 42px;
  }

  .apply-shop-intro h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .apply-shop-principles,
  .apply-shop-form {
    grid-template-columns: 1fr;
  }

  .apply-shop-principles article,
  .apply-shop-principles article:last-child {
    border-right: 0;
    border-bottom: 1px solid rgb(85 70 62 / 13%);
    padding: 18px 0;
  }

  .apply-shop-card {
    padding: 28px 20px;
    border-radius: 22px 8px 22px 8px;
  }

  .apply-shop-card-head,
  .apply-shop-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .apply-shop-footer span {
    margin-left: 0;
  }
}
/* Shop submission management */
.shop-submission-admin {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.shop-submission-admin-heading {
  align-items: flex-end;
}

.shop-submission-toolbar {
  display: grid;
  grid-template-columns: minmax(140px, .45fr) minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
}

.shop-submission-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.shop-submission-toolbar input,
.shop-submission-toolbar select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
}

.shop-submission-list {
  display: grid;
  gap: 12px;
}

.shop-submission-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px 6px 16px 6px;
  background: var(--surface-strong);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--text) 6%, transparent);
}

.shop-submission-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-submission-title h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.025em;
}

.submission-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.submission-status.pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.submission-status.approved {
  background: var(--success-soft);
  color: var(--success);
}

.submission-status.processing {
  background: #e6edf5;
  color: #365f86;
}

.submission-status.resolved {
  background: var(--success-soft);
  color: var(--success);
}

.submission-status.rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.shop-submission-url {
  display: block;
  overflow: hidden;
  margin: 10px 0 17px;
  color: var(--accent);
  font: 600 11px/1.5 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-submission-main dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.shop-submission-main dl div {
  min-width: 0;
}

.shop-submission-main dt {
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
}

.shop-submission-main dd {
  overflow-wrap: anywhere;
  margin: 3px 0 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.shop-submission-description {
  margin: 17px 0 0;
  padding: 13px 14px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.shop-submission-review {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.shop-submission-review label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.shop-submission-review textarea {
  width: 100%;
  min-height: 82px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: 500 12px/1.6 var(--font-sans);
  resize: vertical;
}

.shop-submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-submission-review small {
  color: var(--faint);
  font: 600 10px/1.5 var(--font-mono);
}

.shop-submission-empty {
  padding: 44px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}

.shop-submission-empty strong {
  display: block;
  margin-bottom: 6px;
}

.shop-submission-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .shop-submission-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .shop-submission-row {
    grid-template-columns: 1fr;
  }

  .shop-submission-review {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .shop-submission-toolbar,
  .shop-submission-main dl {
    grid-template-columns: 1fr;
  }
}
/* Shared confirmation before visitors leave for a public LDXP shop. */
.shop-exit-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 24px;
  background: #fffdf8;
  color: var(--text);
  box-shadow: 0 38px 110px rgb(16 37 31 / 30%);
}

.shop-exit-dialog::backdrop {
  background: rgb(11 24 20 / 64%);
  backdrop-filter: blur(9px) saturate(0.8);
}

.shop-exit-panel {
  position: relative;
  overflow: hidden;
}

.shop-exit-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #bf7357, #d3a078 48%, #176c54);
  content: "";
}

.shop-exit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px 22px;
  border-bottom: 1px solid rgb(24 88 68 / 10%);
  background:
    radial-gradient(circle at 82% 0, rgb(191 115 87 / 13%), transparent 16rem),
    linear-gradient(145deg, rgb(225 236 226 / 54%), rgb(255 253 248 / 92%));
}

.shop-exit-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-exit-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgb(24 88 68 / 18%);
  border-radius: 13px 13px 5px 13px;
  background: #173d30;
  color: #f4ddc8;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 24px rgb(23 61 48 / 20%);
}

.shop-exit-heading p {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shop-exit-heading h2 {
  margin: 0;
  color: #183027;
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.shop-exit-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgb(24 88 68 / 13%);
  border-radius: 50%;
  background: rgb(255 255 255 / 70%);
  color: var(--muted);
  font-size: 23px;
  line-height: 1;
}

.shop-exit-close:hover {
  border-color: rgb(24 88 68 / 30%);
  color: var(--accent);
  transform: rotate(4deg);
}

.shop-exit-body {
  display: grid;
  gap: 20px;
  padding: 26px 32px 28px;
}

.shop-exit-subject {
  margin: 0;
  padding: 15px 17px;
  border-left: 3px solid #bd7357;
  border-radius: 0 12px 12px 0;
  background: rgb(191 115 87 / 8%);
  color: #253a32;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.shop-exit-copy {
  display: grid;
  gap: 14px;
}

.shop-exit-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.shop-exit-copy .shop-exit-channel {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px;
  padding: 15px 16px;
  border: 1px solid rgb(123 85 16 / 16%);
  border-radius: 14px;
  background: rgb(247 237 207 / 48%);
  color: #5f4c28;
}

.shop-exit-channel > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #7b5510;
  color: #fffaf0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.shop-exit-skip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.shop-exit-skip input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 17px;
  accent-color: var(--accent);
}

.shop-exit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 32px 28px;
  border-top: 1px solid rgb(24 88 68 / 10%);
  background: rgb(246 246 240 / 72%);
}

.shop-exit-actions button {
  min-height: 46px;
  padding: 0 19px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.shop-exit-actions button:hover {
  transform: translateY(-1px);
}

.shop-exit-cancel {
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--text);
}

.shop-exit-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #173d30;
  background: #173d30;
  color: #fffdf7;
  box-shadow: 0 12px 24px rgb(23 61 48 / 18%);
}

.shop-exit-confirm:hover {
  border-color: #245c49;
  background: #245c49;
}

@media (max-width: 620px) {
  .shop-exit-dialog { width: calc(100vw - 20px); border-radius: 19px; }
  .shop-exit-header { padding: 24px 20px 18px; }
  .shop-exit-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .shop-exit-heading { gap: 11px; }
  .shop-exit-heading h2 { font-size: 24px; }
  .shop-exit-body { gap: 17px; padding: 21px 20px 23px; }
  .shop-exit-actions { display: grid; padding: 17px 20px 22px; }
  .shop-exit-confirm { grid-row: 1; }
  .shop-exit-cancel { grid-row: 2; }
}

/* Local shop favorites */
.favorite-shop-button { display:inline-flex; align-items:center; gap:5px; min-height:30px; padding:5px 9px; border:1px solid rgb(32 48 45 / 14%); border-radius:999px; background:rgb(255 255 255 / 56%); color:var(--muted,#68746f); font-size:12px; font-weight:650; cursor:pointer; transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease; }
.favorite-shop-button:hover { transform:translateY(-1px); border-color:rgb(32 48 45 / 28%); color:var(--ink,#20302d); }
.favorite-shop-button.is-favorite { background:#e9b949; border-color:#e9b949; color:#2d2718; }
.favorite-shop-button.is-favorite > span:first-child { color:#6e4b00; }
.hero-hot-shop-actions { display:inline-flex; align-items:center; gap:6px; }
.hero-hot-shop-actions .hero-hot-shop-link { position:static; }
.collection-source-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; }
.collection-source-actions .favorite-shop-button { min-height:28px; }
.favorites-panel { width:min(1280px,calc(100% - 48px)); margin:34px auto 80px; padding:clamp(24px,4vw,48px); border:1px solid rgb(32 48 45 / 10%); border-radius:28px; background:rgb(255 253 248 / 86%); box-shadow:0 22px 60px rgb(32 48 45 / 8%); }
.favorites-heading { align-items:flex-end; margin-bottom:24px; }
.favorites-heading-actions { display:flex; flex-wrap:wrap; gap:9px; }
.favorites-list { display:grid; gap:12px; }
.favorite-shop-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:20px; padding:21px 24px; border:1px solid rgb(32 48 45 / 10%); border-radius:18px; background:rgb(255 255 255 / 76%); transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.favorite-shop-card:hover { transform:translateY(-2px); border-color:rgb(32 48 45 / 24%); box-shadow:0 14px 32px rgb(32 48 45 / 9%); }
.favorite-shop-number { color:#b18426; font:700 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; }
.favorite-shop-copy { min-width:0; }
.favorite-shop-kicker { margin:0 0 5px; color:#a4771e; font-size:11px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
.favorite-shop-copy h3 { margin:0; color:var(--ink,#20302d); font-size:clamp(18px,2vw,23px); letter-spacing:-.02em; }
.favorite-shop-copy p:not(.favorite-shop-kicker) { margin:7px 0 5px; color:var(--muted,#68746f); font-size:14px; }
.favorite-shop-copy small { display:block; overflow:hidden; color:#8b9891; font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow:ellipsis; white-space:nowrap; }
.favorite-shop-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.favorites-empty { display:grid; justify-items:center; gap:9px; padding:70px 20px; border:1px dashed rgb(32 48 45 / 18%); border-radius:20px; text-align:center; }
.favorites-empty-mark { color:#c89c38; font-size:48px; line-height:1; }
.favorites-empty strong { color:var(--ink,#20302d); font-size:19px; }
.favorites-empty p { max-width:38rem; margin:0 0 9px; color:var(--muted,#68746f); }
.favorites-page-header .hero-signal-value { font-variant-numeric:tabular-nums; }
@media (max-width:720px) {
  .favorites-panel { width:min(100% - 24px,1280px); margin-top:20px; padding:22px 16px; border-radius:21px; }
  .favorites-heading { display:grid; gap:15px; }
  .favorite-shop-card { grid-template-columns:auto minmax(0,1fr); gap:13px; padding:17px 15px; }
  .favorite-shop-actions { grid-column:2; justify-content:flex-start; }
  .favorite-shop-actions .button { min-height:38px; }
  .collection-source-actions { justify-content:flex-start; }
}

/* Commercial trust, legal and reporting surfaces */
.site-footer {
  width: min(1360px, calc(100% - 48px));
  margin: 40px auto 0;
  padding: 28px 0 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgb(32 48 45 / 12%);
  color: var(--muted, #68746f);
}
.site-footer > div { display: grid; gap: 5px; }
.site-footer strong { color: var(--ink, #20302d); font-size: 14px; letter-spacing: .08em; }
.site-footer span { font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; }
.site-footer a { color: inherit; font-size: 13px; font-weight: 650; text-decoration: none; }
.site-footer a:hover { color: var(--ink, #20302d); }

.legal-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 10% 2%, rgb(221 196 136 / 16%), transparent 29rem),
    linear-gradient(180deg, #f8f6ef 0%, #f3f1e9 100%);
}
.legal-shell { width: min(1180px, calc(100% - 48px)); margin: 46px auto 80px; }
.legal-hero { max-width: 850px; padding: clamp(34px, 6vw, 70px) 0 42px; }
.legal-hero h1 { margin: 14px 0 18px; color: var(--ink, #20302d); font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.legal-hero > p:not(.hero-eyebrow) { max-width: 68ch; margin: 0; color: var(--muted, #68746f); font-size: clamp(16px, 2vw, 19px); line-height: 1.8; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: #7d8984; font-size: 12px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(30px, 6vw, 76px); align-items: start; }
.legal-sidebar { position: sticky; top: 28px; display: grid; gap: 4px; padding: 12px; border: 1px solid rgb(32 48 45 / 10%); border-radius: 18px; background: rgb(255 255 255 / 48%); box-shadow: 0 16px 40px rgb(41 52 47 / 5%); }
.legal-sidebar a { padding: 11px 13px; border-radius: 11px; color: var(--muted, #68746f); font-size: 13px; font-weight: 650; text-decoration: none; }
.legal-sidebar a:hover { background: rgb(255 255 255 / 78%); color: var(--ink, #20302d); }
.legal-content { display: grid; gap: 18px; }
.legal-card { scroll-margin-top: 28px; padding: clamp(26px, 4vw, 46px); border: 1px solid rgb(32 48 45 / 10%); border-radius: 25px; background: rgb(255 254 250 / 82%); box-shadow: 0 18px 54px rgb(41 52 47 / 6%); }
.legal-card-accent { background: linear-gradient(135deg, rgb(255 252 240 / 94%), rgb(247 244 233 / 92%)); border-color: rgb(177 132 38 / 22%); }
.legal-kicker { margin: 0 0 10px !important; color: #a4771e !important; font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .12em; text-transform: uppercase; }
.legal-card h2 { margin: 0 0 18px; color: var(--ink, #20302d); font-size: clamp(26px, 4vw, 38px); letter-spacing: -.035em; }
.legal-card p, .legal-card li { color: #56645f; font-size: 15px; line-height: 1.85; }
.legal-card ul, .legal-card ol { display: grid; gap: 9px; margin: 17px 0 0; padding-left: 1.25rem; }
.legal-note { margin-top: 20px !important; padding: 15px 17px; border-left: 3px solid #c49a3a; background: rgb(232 214 166 / 18%); border-radius: 0 12px 12px 0; font-size: 13px !important; }
.legal-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 22px; }
.legal-data-grid div { display: grid; gap: 7px; padding: 17px; border: 1px solid rgb(32 48 45 / 9%); border-radius: 15px; background: rgb(255 255 255 / 55%); }
.legal-data-grid strong { color: var(--ink, #20302d); font-size: 13px; }
.legal-data-grid span { color: var(--muted, #68746f); font-size: 13px; line-height: 1.65; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.report-shell { max-width: 960px; }
.report-card { padding: clamp(24px, 5vw, 48px); border: 1px solid rgb(32 48 45 / 10%); border-radius: 26px; background: rgb(255 254 250 / 88%); box-shadow: 0 22px 62px rgb(41 52 47 / 7%); }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-card .field { margin-bottom: 18px; }
.report-card .field > span { display: block; margin-bottom: 8px; color: var(--ink, #20302d); font-size: 13px; font-weight: 700; }
.report-card input, .report-card select, .report-card textarea { width: 100%; }
.report-card textarea { resize: vertical; min-height: 180px; }
.report-consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 4px; color: var(--muted, #68746f); font-size: 13px; line-height: 1.7; }
.report-consent input { width: auto; margin-top: 4px; }
.report-actions { margin-top: 22px; padding-left: 0; padding-right: 0; background: transparent; }
.report-success { margin-top: 18px; padding: 14px 16px; border: 1px solid rgb(38 126 91 / 20%); border-radius: 12px; background: rgb(223 243 234 / 70%); color: #1f704f; font-size: 14px; }
.report-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.freshness-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: #edf1ee; color: #53615c; font-size: 11px; font-weight: 750; white-space: nowrap; }
.freshness-badge[data-tone="fresh"] { background: #dff1e8; color: #21694d; }
.freshness-badge[data-tone="warning"] { background: #f7edd2; color: #8a671b; }
.freshness-badge[data-tone="stale"] { background: #f4e3df; color: #955145; }
.freshness-time { display: block; margin-top: 5px; color: #85908c; font-size: 11px; white-space: nowrap; }

@media (max-width: 820px) {
  .site-footer { width: min(100% - 30px, 1360px); align-items: flex-start; flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
  .legal-shell { width: min(100% - 30px, 1180px); margin-top: 20px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-data-grid, .report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .legal-hero { padding-top: 28px; }
  .legal-hero h1 { font-size: 42px; }
  .legal-sidebar { display: flex; overflow-x: auto; }
  .legal-sidebar a { flex: 0 0 auto; }
  .legal-card, .report-card { border-radius: 19px; }
}
