.shop-page .catalog-header {
  padding-block: 22px;
  border-bottom: 1px solid var(--catalog-line);
}
.shop-page .catalog-header h2 { margin: 0; }
.shop-page .catalog-header p {
  margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5;
}
.shop-list-section > .shop-section-heading { padding: 23px var(--catalog-inset) 15px; }
.shop-section-heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.shop-section-heading h3 {
  margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.45;
}
.shop-section-heading p {
  margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5;
}
.shop-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 126px; box-sizing: border-box; margin: 0 var(--catalog-inset) 24px;
  padding: 18px; border: 1px dashed var(--catalog-line); border-radius: 12px;
  background: var(--nav); text-align: center;
}
.shop-empty-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 13px; background: var(--panel); color: var(--blue);
}
.shop-empty-icon .tenant-icon { width: 22px; height: 22px; }
.shop-empty strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.shop-empty p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.shop-table { border-top: 1px solid var(--catalog-line); }
.shop-table table { min-width: 690px; }
.shop-table tbody td { font-size: 13px; }
.shop-table tbody td:first-child { color: var(--ink); font-weight: 650; }
.shop-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.shop-row-actions:empty::before { content: "—"; color: var(--muted); }
.shop-page .shop-row-actions .catalog-button { min-height: 32px; padding: 4px 10px; }
.shop-status {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 4px 9px; border-radius: 999px; background: var(--canvas); color: var(--muted);
  font-size: 12px; font-weight: 600; line-height: 1.35;
}
.shop-status::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.shop-status:is([data-state="active"], [data-state="authorized"], [data-state="completed"]) {
  color: var(--catalog-green); background: var(--catalog-green-bg);
}
.shop-status:is([data-state="needs_verification"], [data-state="pending"], [data-state="reauthorize"]) {
  color: var(--catalog-amber); background: var(--catalog-amber-bg);
}
.shop-status:is([data-state="failed"], [data-state="invalid"]) {
  color: var(--catalog-error); background: var(--nav);
}
.shop-history-container:empty { display: none; }
.shop-history {
  border-top: 1px solid var(--catalog-line); padding: 22px var(--catalog-inset) 26px;
}
.shop-history-count {
  flex: none; color: var(--muted); font-size: 12px; line-height: 1.8;
}
.shop-history-empty {
  margin: 15px 0 0; padding: 16px; border: 1px solid var(--catalog-line);
  border-radius: 10px; color: var(--muted); font-size: 12px; text-align: center;
}
.shop-attempt-list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.shop-attempt {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center;
  gap: 12px; padding: 13px 15px; border: 1px solid var(--catalog-line); border-radius: 10px;
  background: var(--panel);
}
.shop-attempt[data-state="needs_verification"] {
  border-color: color-mix(in srgb, var(--catalog-amber) 28%, var(--border));
  background: var(--catalog-amber-bg);
}
.shop-attempt[data-state="needs_verification"] .shop-status { background: var(--panel); }
.shop-attempt-marker {
  width: 9px; height: 9px; box-sizing: border-box; border: 2px solid var(--muted);
  border-radius: 50%; opacity: .65;
}
.shop-attempt:is([data-state="needs_verification"], [data-state="pending"]) .shop-attempt-marker {
  border-color: var(--catalog-amber); background: var(--catalog-amber); opacity: 1;
}
.shop-attempt[data-state="completed"] .shop-attempt-marker {
  border-color: var(--catalog-green); background: var(--catalog-green); opacity: 1;
}
.shop-attempt-content { min-width: 0; }
.shop-attempt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.shop-attempt-top strong { color: var(--ink); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.shop-attempt-content p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.shop-attempt-time {
  color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 700px) {
  .shop-page .catalog-header { align-items: flex-start; gap: 16px; }
  .shop-page .catalog-actions { width: 100%; }
  .shop-page .catalog-actions .catalog-primary { width: 100%; }
  .shop-table table { min-width: 0; }
  .shop-table :is(table, tbody) { display: block; }
  .shop-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .shop-table tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
    padding: 16px var(--catalog-inset); border-bottom: 1px solid var(--catalog-line);
  }
  .shop-table tbody td { min-width: 0; padding: 0; border: 0; text-align: left; }
  .shop-page .shop-table tbody td:first-child, .shop-page .shop-table tbody td:last-child { padding: 0; }
  .shop-table tbody td::before {
    content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted);
    font-size: 11px; font-weight: 500;
  }
  .shop-table tbody td:first-child, .shop-table tbody td:last-child { grid-column: 1 / -1; }
  .shop-table tbody td:first-child::before, .shop-table tbody td:last-child::before { display: none; }
  .shop-row-actions { justify-content: flex-start; }
  .shop-attempt { grid-template-columns: 12px minmax(0, 1fr); align-items: start; }
  .shop-attempt-marker { margin-top: 6px; }
  .shop-attempt-time { grid-column: 2; margin-top: -4px; }
}
