:root { color-scheme: light dark; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 24px; }
header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
h1 { font-size: 18px; margin: 0; }
.nav { font-size: 13px; margin-bottom: 12px; }
.nav a { margin-right: 12px; }
.nav a.active { font-weight: 700; text-decoration: none; }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input, select, button { padding: 6px 10px; font-size: 13px; }
button { cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
.status { font-size: 12px; opacity: 0.75; }
.status.error { color: #c33; opacity: 1; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th, td { border: 1px solid #ddd; padding: 6px 8px; vertical-align: top; text-align: left; }
th { background: #f4f4f4; position: sticky; top: 0; z-index: 2; white-space: nowrap; box-shadow: inset 0 -1px 0 #bbb; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td img.thumb { max-width: 64px; max-height: 64px; display: block; }
td img.logo { max-width: 48px; max-height: 24px; display: block; }
td.json { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; max-width: 240px; white-space: pre-wrap; word-break: break-word; }
td.url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; max-width: 220px; word-break: break-all; }
.null { opacity: 0.4; font-style: italic; }
.wrap { overflow: auto; max-height: calc(100vh - 180px); border: 1px solid #ddd; border-radius: 4px; }
.wrap table { border: 0; }
.meta { font-size: 12px; opacity: 0.75; margin-bottom: 8px; }
.tier { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tier-hot { background: #ffe2d6; color: #b13a00; }
.tier-trending { background: #dff0d8; color: #2d6a14; }
.tier-normal { background: #eee; color: #555; }
th.sel-col, td.sel-col { width: 32px; text-align: center; padding: 4px; }
td.sel-col input, th.sel-col input { cursor: pointer; }
.export-group { display: inline-flex; gap: 6px; align-items: center; padding-left: 8px; border-left: 1px solid #ccc; margin-left: 4px; }
.sel-counter { font-size: 12px; opacity: 0.75; }
.pager { display: inline-flex; gap: 6px; align-items: center; padding-left: 8px; border-left: 1px solid #ccc; margin-left: 4px; }
.pager .pageinfo { font-size: 12px; opacity: 0.8; font-variant-numeric: tabular-nums; }
.progress { font-size: 12px; opacity: 0.8; }
