/* Admin app mock styles — a separate, distinct visual language from marketing.
   Goal: looks like the real admin (system fonts, dense, utilitarian) wrapped
   in a browser-window frame so it reads as "the product." */

.product-page {
  background: var(--paper);
}

/* Stage that holds an admin screenshot */
.product-stage {
  display: flex; flex-direction: column; gap: 12px;
}

/* macOS-style window frame */
.win {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.win-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #F1ECE2;
  border-bottom: 1px solid var(--rule);
}
.win-dots { display: flex; gap: 6px; }
.win-dots span {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
}
.win-dots span:nth-child(1) { background: #ED6A5E; }
.win-dots span:nth-child(2) { background: #F4BF4F; }
.win-dots span:nth-child(3) { background: #61C454; }
.win-url {
  flex: 1; text-align: center;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}
.win-body { background: white; padding: 0; }

/* Inside the admin app — match the real Next.js admin styles */
.admin {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #2f2e40;
  font-size: 14px;
  line-height: 1.5;
  background: white;
  padding: 32px 28px;
  max-width: none;
}

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

.admin h1.adm-title {
  color: #be2a2a;
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.admin .adm-sub {
  color: #6b7280;
  margin: 4px 0 0;
  font-size: 14px;
}
.admin .adm-h2 {
  font-size: 18px;
  margin: 0 0 12px;
  font-weight: 600;
}

.admin .adm-header-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
}

.admin .adm-list {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.admin .adm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}
.admin .adm-row:last-child { border-bottom: none; }
.admin .adm-row:hover { background: #fafafa; }
.admin .adm-row .adm-row-title { font-weight: 600; font-size: 15px; }
.admin .adm-row .adm-row-meta {
  color: #6b7280; font-size: 13px; margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.admin .adm-row-meta-text { font-family: inherit; }

.admin .adm-pill {
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.admin .pill-new      { background: #fef3c7; color: #92400e; }
.admin .pill-triaged  { background: #dbeafe; color: #1e40af; }
.admin .pill-forwarded{ background: #e9d5ff; color: #6b21a8; }
.admin .pill-closed   { background: #e5e7eb; color: #374151; }
.admin .pill-installed{ background: #d1fae5; color: #065f46; }
.admin .pill-pending  { background: #fef3c7; color: #92400e; }

.admin .adm-section { margin-bottom: 32px; }

.admin .adm-back {
  font-size: 14px; color: #6b7280; margin-bottom: 24px;
}

.admin .adm-detail-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 24px;
}
.admin .adm-detail-meta {
  color: #6b7280; font-size: 13px; margin-bottom: 6px;
}
.admin .adm-detail-meta .ref { font-family: ui-monospace, monospace; }
.admin .adm-detail-title {
  font-size: 24px; font-weight: 600; margin: 0; color: #2f2e40;
  letter-spacing: -0.01em;
}

.admin .adm-triage {
  display: flex; gap: 4px; flex-shrink: 0;
}
.admin .adm-triage button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
}
.admin .adm-triage button.active {
  background: #be2a2a; color: white; border-color: #be2a2a;
}

.admin .adm-card {
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.admin .adm-card-head {
  padding: 10px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.admin .adm-card-body { padding: 16px; font-size: 14px; }
.admin .adm-card-body.no-pad { padding: 0; }

.admin .adm-pre {
  margin: 0; padding: 12px;
  background: #111827; color: #f9fafb;
  border-radius: 6px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: auto;
  max-height: 240px;
  line-height: 1.55;
}
.admin .adm-pre .json-key { color: #93c5fd; }
.admin .adm-pre .json-str { color: #fcd34d; }
.admin .adm-pre .json-num { color: #fda4af; }

.admin .adm-console {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #fafaf8;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  max-height: 280px;
  overflow: auto;
}
.admin .adm-console-row {
  display: grid; grid-template-columns: 70px 60px 1fr; gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.admin .adm-console-row:last-child { border-bottom: none; }
.admin .adm-console-row .lvl-error { color: #b91c1c; font-weight: 600; }
.admin .adm-console-row .lvl-warn  { color: #b45309; font-weight: 600; }
.admin .adm-console-row .lvl-info  { color: #1e40af; }
.admin .adm-console-row .lvl-debug { color: #6b7280; }
.admin .adm-console-row .ts { color: #6b7280; }

.admin .adm-attachment-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.admin .adm-attachment {
  border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden;
  background: #fafaf8;
}
.admin .adm-attachment .ah {
  padding: 6px 10px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  font-size: 11px;
  color: #6b7280;
  display: flex; justify-content: space-between;
  font-family: ui-monospace, monospace;
}
.admin .adm-attachment .ab { aspect-ratio: 16/10; display: grid; place-items: center; }
.admin .adm-attachment .placeholder-screenshot {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, #fee2e2 0%, #fed7aa 100%);
  display: grid; place-items: center;
  position: relative;
}
.admin .adm-attachment .placeholder-recording {
  width: 100%; height: 100%;
  background: #1B1A17;
  display: grid; place-items: center;
  color: white;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.admin .adm-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.admin .adm-filter-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
}
.admin .adm-filter-btn.active {
  border-color: #be2a2a;
  color: #be2a2a;
  font-weight: 600;
}

.admin .adm-row.adm-row-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.admin .adm-pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
  font-size: 13px; color: #6b7280;
}
.admin .adm-pagination a {
  padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 6px;
  margin-left: 8px;
}

/* Product-tour layout (marketing wrapper around admin shots) */
.product-tour-step {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.product-tour-step .pt-side {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 16px;
}
.product-tour-step .pt-num { color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; }
.product-tour-step .pt-features {
  list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px; color: var(--ink-2);
}
.product-tour-step .pt-features li {
  padding-left: 18px; position: relative;
}
.product-tour-step .pt-features li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
  font-family: var(--font-mono); font-size: 13px;
}
@media (max-width: 1100px) {
  .product-tour-step { grid-template-columns: 1fr; gap: 32px; }
  .product-tour-step .pt-side { position: static; }
}
