/* ─── Operator retailers dashboard ─────────────────────────────────────────── */

.op-rt-main {
  font-family: 'DM Sans', system-ui, sans-serif;
  max-width: 960px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.op-rt-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.op-rt-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.op-rt-headline {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.op-rt-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.op-rt-sub code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

.op-rt-refresh-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.op-rt-refresh-btn:hover:not(:disabled) {
  background: var(--bg-alt);
  border-color: var(--accent);
}

.op-rt-refresh-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ─── Channel sections ─────────────────────────────────────────────────────── */

.op-rt-channel {
  margin-bottom: 2.25rem;
}

.op-rt-channel-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.op-rt-channel-empty {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 0;
}

.op-rt-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ─── Card ─────────────────────────────────────────────────────────────────── */

.op-rt-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.op-rt-card:hover {
  border-color: var(--accent-warm);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.op-rt-card[open] {
  border-color: var(--accent);
}

.op-rt-card summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text);
}

.op-rt-card summary::-webkit-details-marker {
  display: none;
}

.op-rt-card summary::before {
  content: '▸';
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.op-rt-card[open] summary::before {
  transform: rotate(90deg);
}

.op-rt-store {
  font-weight: 600;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-rt-contact {
  font-weight: 400;
  color: var(--text-muted);
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-rt-email {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-rt-email:hover {
  text-decoration: underline;
}

.op-rt-age {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}

/* ─── Card body ───────────────────────────────────────────────────────────── */

.op-rt-card-body {
  padding: 1rem 1rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.op-rt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.op-rt-meta-item {
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg-alt);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.op-rt-meta-item a {
  color: var(--accent);
  text-decoration: none;
}

.op-rt-meta-item a:hover {
  text-decoration: underline;
}

.op-rt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.op-rt-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(200, 98, 47, 0.08);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.op-rt-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Empty + error states ────────────────────────────────────────────────── */

.op-rt-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.op-rt-empty-icon {
  font-size: 2.5rem;
  color: #16a34a;
  margin-bottom: 0.5rem;
}

.op-rt-empty-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.op-rt-empty-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.op-rt-empty-sub code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  background: rgba(26, 14, 10, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.op-rt-error {
  color: #dc2626;
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .op-rt-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .op-rt-card summary {
    flex-wrap: wrap;
  }
  .op-rt-store,
  .op-rt-contact,
  .op-rt-email {
    flex-basis: 100%;
  }
  .op-rt-age {
    margin-left: 0;
  }
}
