:root { color-scheme: light dark; --bg: #111318; --panel: #1b2029; --text: #f2f4f8; --muted: #b8c0cc; --accent: #86b7ff; --line: #354052; }
@media (prefers-color-scheme: light) { :root { --bg: #f6f7fb; --panel: #fff; --text: #151922; --muted: #566070; --accent: #1b65d8; --line: #d8deea; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, sans-serif; background: var(--bg); color: var(--text); }
header { position: sticky; top: 0; z-index: 10; padding: 12px 18px; background: color-mix(in srgb, var(--panel) 92%, transparent); border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; gap: 10px; }
header h1 { margin: 0 0 10px; font-size: 20px; flex: 1; min-width: 0; }
.back-link { color: var(--accent); text-decoration: none; font-weight: 600; margin-right: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
#filter { flex: 1 1 220px; max-width: 480px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
#sort { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
main { width: min(900px, calc(100% - 32px)); margin: 16px auto 48px; }
.report-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-decoration: none; color: inherit; }
.report-row:hover { border-color: var(--accent); }
.report-row.hidden { display: none; }
.report-row img { width: 120px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #222; }
.report-row .no-thumb { width: 120px; height: 72px; border-radius: 6px; background: var(--line); flex-shrink: 0; }
.report-row .report-text { flex: 1; min-width: 0; }
.report-row .report-title { display: block; font-size: 16px; font-weight: 500; }
.report-row .report-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.report-row.report-row-pdf-only { cursor: default; background: color-mix(in srgb, var(--panel) 78%, #8a1f1f 22%); border-color: color-mix(in srgb, var(--line) 60%, #8a1f1f 40%); }
.report-row.report-row-pdf-only:hover { border-color: color-mix(in srgb, var(--line) 60%, #8a1f1f 40%); }
.report-row .report-link-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 56px; padding: 0; margin-left: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--accent); text-decoration: none; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.report-row .report-link-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.report-row .report-link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.report-row .report-pdf-btn svg { width: 28px; height: 32px; display: block; }
.report-row .report-video-btn svg { width: 32px; height: 32px; display: block; }
.muted { color: var(--muted); margin-top: 8px; }
.created-by { width: min(900px, calc(100% - 32px)); margin: 24px auto 32px; padding: 0 18px; text-align: center; font-size: 13px; color: var(--muted); }
.created-by a { color: var(--accent); text-decoration: none; font-weight: 600; }
.created-by a:hover { text-decoration: underline; }
.created-by .created-by-line, .created-by .created-by-stamp { display: block; }
.created-by .created-by-stamp { margin-top: 2px; font-size: 12px; opacity: 0.85; }
@media (max-width: 600px) {
  header { padding: 10px 12px; }
  header h1 { font-size: 17px; margin: 0 0 8px; }
  .toolbar { gap: 8px; flex-direction: column; align-items: stretch; }
  #filter { width: 100%; max-width: none; padding: 12px 12px; font-size: 16px; min-height: 44px; }
  #sort { width: 100%; padding: 12px 12px; font-size: 16px; min-height: 44px; }
  .toolbar label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
  main { width: calc(100% - 16px); margin: 12px auto 32px; }
  .report-row { gap: 10px; padding: 10px; align-items: flex-start; min-height: 64px; }
  .report-row img, .report-row .no-thumb { width: 88px; height: 56px; }
  .report-row .report-title { font-size: 15px; }
  .report-row .report-meta { font-size: 12px; }
  .report-row .report-link-btn { width: 48px; height: 64px; margin-left: 4px; }
}
