/* "My reports" on the site's pages (site/js/site-reports.js), in the site's sign-in window (.lumora-gate, its card and close
   button: app-header.css). The app's report rules (dist/js/core/report.css, the My reports part) on the window's own theme
   tokens (--panel, --text, --muted, --line, --raised, --orange: light and dark follow the header's theme). Unlayered, as the
   header's file is (tools/build.cjs UNLAYERED), so the page's own rules never reach it. Phone width: the card full width
   less a 16 px gutter. */
.lumora-gate.site-reports .site-reports-card { max-width: 600px; max-height: calc(100dvh - 48px); overflow: auto; text-align: left; }
.lumora-gate.site-reports h1 { margin: 0 40px 16px 0; overflow-wrap: anywhere; }
.site-reports .crp { display: grid; gap: 14px; min-width: 0; color: var(--text); font-size: .9375rem; line-height: 1.45; }
.site-reports .crp p { margin: 0; }
.site-reports .crp-muted { color: var(--muted); }
.site-reports .crp-error { color: #b42318; font-weight: 600; }
:root[data-theme="dark"] .site-reports .crp-error { color: #fda29b; }
.site-reports .crp-ref { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.site-reports .crp-case-list, .site-reports .crp-events { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-reports .crp-case { display: grid; gap: 4px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.site-reports .crp-case:hover { border-color: color-mix(in srgb, var(--orange, #ff5a1f) 45%, var(--line)); }
.site-reports .crp-case:focus-visible { outline: 2px solid var(--orange, #ff5a1f); outline-offset: 2px; }
.site-reports .crp-case-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-reports .crp-status { padding: 1px 8px; border-radius: 99px; background: var(--raised); font-size: 12px; font-weight: 600; }
.site-reports .crp-status.s-resolved, .site-reports .crp-status.s-closed { background: #dcfae6; color: #085d3a; }
:root[data-theme="dark"] .site-reports .crp-status.s-resolved, :root[data-theme="dark"] .site-reports .crp-status.s-closed { background: #053321; color: #75e0a7; }
.site-reports .crp-quote { padding: 8px 12px; border-left: 3px solid var(--line); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.site-reports .crp-events li { padding: 8px 0; border-top: 1px solid var(--line); }

.site-reports .crp-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 2px; }
.site-reports .crp-back { padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg, var(--raised)); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.site-reports .crp-back:focus-visible { outline: 2px solid var(--orange, #ff5a1f); outline-offset: 2px; }

@media (max-width: 640px) {
  .lumora-gate.site-reports .site-reports-card { padding: 24px 16px 18px; }
  .site-reports .crp-actions { justify-content: stretch; }
  .site-reports .crp-actions > button { flex: 1 1 auto; }
}
