:root {
  color-scheme: light;
  --paper: #f2f0ec;
  --ink: #1c1b19;
  --muted: #6b655c;
  --faint: #928b80;
  --line: #ece9e3;
  --green: #1a7f37;
  --green-bg: #e6f4ea;
  --amber: #9a6b00;
  --amber-bg: #fff6e5;
  --red: #a3332b;
  --red-bg: #fdecea;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: max(22px, env(safe-area-inset-top)) 14px max(34px, env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
button { font: inherit; }
.wrap { max-width: 780px; margin: 0 auto; }
.listhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.eyebrow { margin: 0 0 4px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
h1 { margin: 0; font-size: 25px; line-height: 1.15; }
#summary { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.refresh { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 13px; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; box-shadow: 0 1px 3px #1c1b1914; }
.notice { margin: 10px 0 18px; color: var(--muted); font-size: 14px; }
.notice.error { color: var(--red); }
.items { display: grid; gap: 18px; }
.card { padding: 18px; border-radius: 17px; background: #fff; box-shadow: 0 1px 2px #1c1b190f, 0 10px 26px #1c1b190b; }
.top { display: flex; align-items: flex-start; gap: 18px; }
.cover { flex: 0 0 145px; overflow: hidden; border-radius: 11px; background: #eae6df; aspect-ratio: 2 / 3; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-empty { display: grid; width: 100%; height: 100%; place-items: center; color: #a09a90; font-size: 12px; text-align: center; padding: 12px; }
.headline { min-width: 0; flex: 1; }
.kicker { margin: 0 0 6px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 0 0 5px; font-size: 23px; line-height: 1.18; }
.original { margin: 0 0 11px; color: var(--muted); font-style: italic; font-size: 14px; }
.facts { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; color: #45413c; font-size: 13px; }
.facts b { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 7px; margin: 13px 0 0; padding: 6px 10px; border-left: 4px solid; border-radius: 8px; font-size: 13px; font-weight: 650; }
.status.queued_search { color: #625b4d; background: #f1eee8; border-color: #8c8271; }
.status.waiting_catalog { color: var(--red); background: var(--red-bg); border-color: var(--red); }
.status.waiting_audio { color: var(--amber); background: var(--amber-bg); border-color: #b8860b; }
.status.ready, .status.notified { color: var(--green); background: var(--green-bg); border-color: var(--green); }
.ratings { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.ratings li { padding: 4px 9px; border: 1px solid #e4e0d9; border-radius: 999px; background: #fbfaf8; color: var(--muted); font-size: 12px; }
.ratings strong { margin-right: 4px; color: var(--ink); }
.section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.section h3 { margin: 0 0 6px; color: var(--faint); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.section p { margin: 0; color: #45413c; font-size: 14px; }
.hook { margin-top: 8px !important; font-style: italic; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sources a { display: inline-block; padding: 7px 11px; border-radius: 9px; background: var(--ink); color: #fff; text-decoration: none; font-size: 13px; }
.foot { margin: 14px 0 0; color: #98928a; font-size: 12px; }
.empty { padding: 42px 18px; border: 1px dashed #cfc9bf; border-radius: 16px; color: var(--muted); text-align: center; }
.pending-section { margin-top: 28px; }
.pending-section h2 { margin: 0; font-size: 19px; }
.pending-note { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.pending-list { display: grid; gap: 10px; }
.pending-card { padding: 15px; border: 1px solid #e4e0d9; border-radius: 14px; background: #fff; }
.pending-card .kicker { margin-bottom: 8px; }
.pending-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.pending-link { display: inline-block; margin-top: 10px; color: #1557a0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  body { padding-left: 10px; padding-right: 10px; }
  .card { padding: 14px; }
  .top { gap: 13px; }
  .cover { flex-basis: 108px; }
  h2 { font-size: 19px; }
  .facts { font-size: 12px; }
}
