:root {
  color-scheme: dark;
  --ink: #f5f0e5;
  --muted: #b6c8bc;
  --accent: #f2c88b;
  --line: #395347;
  --panel: #1a3028;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #10241e; color: var(--ink); font: 1rem/1.55 Manrope, system-ui, sans-serif; }
main { width: min(100% - 3rem, 55rem); margin: auto; padding-bottom: 4rem; }
a { color: inherit; text-underline-offset: .25em; }
nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
nav .brand { font: 500 1.5rem/1.2 "Playfair Display", Georgia, serif; text-decoration: none; }
nav a:last-child { color: var(--muted); font-size: .9rem; }
header { padding: clamp(2rem, 5vw, 3.75rem) 0 1.5rem; }
h1 { margin: 0; font: 500 clamp(2.65rem, 7vw, 4.7rem)/1.05 "Playfair Display", Georgia, serif; letter-spacing: -.055em; }
header p { max-width: 39rem; color: var(--muted); margin: .85rem 0 0; }
button, input { font: inherit; }
button { color: #16271e; background: var(--accent); border: 1px solid transparent; border-radius: .65rem; min-height: 2.75rem; padding: .5rem .85rem; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
.secondary, .tabs button { background: transparent; color: var(--ink); border-color: var(--line); }
button:not(:disabled):hover, summary:hover { border-color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #e6bc7e; outline-offset: 3px; }
.batch { border: 1px solid var(--line); background: var(--panel); border-radius: .9rem; }
summary { padding: .9rem 1rem; font-weight: 700; cursor: pointer; }
summary::marker { color: var(--accent); }
summary span { display: inline-block; color: var(--muted); margin-left: .55rem; font-size: .85rem; font-weight: 500; }
.batch-body { padding: 0 1rem 1rem; }
.batch-body p { margin: 0 0 1rem; max-width: 43rem; color: var(--muted); font-size: .94rem; }
.actions, .tabs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
progress { display: block; width: 100%; margin-top: 1rem; accent-color: var(--accent); }
.search-panel { margin: 1.6rem 0 1.25rem; }
.search-panel label { display: block; font-size: 1rem; font-weight: 700; margin-bottom: .45rem; }
input[type=search] { width: 100%; min-height: 3rem; padding: .6rem .9rem; color: var(--ink); background: #132920; border: 1px solid #5e7768; border-radius: .65rem; }
input::placeholder { color: #a4b7aa; }
.tabs { margin-top: .75rem; }
.tabs button { border-radius: 2rem; font-size: .9rem; font-weight: 600; }
.tabs button[aria-pressed=true] { border-color: #9eb69b; color: #e7f2e0; background: #2d4939; }
#count, #status { font-size: .9rem; }
#count { color: var(--muted); margin: .9rem 0 .45rem; }
#status:not(:empty) { padding: .7rem .9rem; color: var(--accent); background: var(--panel); border-left: 2px solid var(--accent); }
article { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding: .8rem 0; }
article img { width: 3.25rem; height: 4rem; object-fit: cover; background: var(--panel); border-radius: .4rem; }
article div { flex: 1; min-width: 0; }
article a { font-weight: 700; text-decoration: none; }
article a:hover { color: var(--accent); text-decoration: underline; }
article small { display: block; margin-top: .12rem; font-size: .83rem; color: var(--muted); }
article button { background: var(--panel); border-color: #516d5b; color: #f2d6ae; font-size: .9rem; }
#empty p { margin: 0 0 1rem; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 550px) {
  main { width: calc(100% - 2rem); }
  nav .brand { font-size: 1.3rem; }
  article { gap: .6rem; }
  article img { width: 2.65rem; height: 3.5rem; }
  article a { line-height: 1.3; display: inline-block; }
  article button { padding-inline: .62rem; }
  .tabs { gap: .35rem; }
  .tabs button { padding-inline: .68rem; }
}
@media (max-width: 380px) {
  summary span { display: block; margin: .15rem 0 0 1rem; }
}
