/*********************************************************/
/*  Books – Stylesheet (responsive, hell/dunkel)         */
/*  Datei: assets/app.css                                */
/*********************************************************/

:root {
  --bg: #f6f1e9;
  --surface: #fffdf9;
  --surface-2: #efe8dc;
  --border: #e2d8c8;
  --text: #2a2420;
  --muted: #7a6e63;
  --accent: #9a3b26;
  --accent-hover: #7f2f1d;
  --accent-soft: #f4e2da;
  --on-accent: #fff;
  --ok: #2f7a4b;
  --ok-soft: #e0f0e5;
  --warn: #8a5a00;
  --warn-soft: #fbefd2;
  --danger: #b3261e;
  --danger-soft: #fbe4e2;
  --shadow: 0 1px 2px rgb(60 40 20 / .06), 0 4px 16px rgb(60 40 20 / .06);
  --shadow-lift: 0 2px 4px rgb(60 40 20 / .08), 0 12px 28px rgb(60 40 20 / .12);
  --radius: 14px;
  --radius-sm: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --gutter: max(16px, env(safe-area-inset-left));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --surface: #24201c;
    --surface-2: #2e2924;
    --border: #3a332c;
    --text: #efe7dc;
    --muted: #a69888;
    --accent: #e08a6d;
    --accent-hover: #f0a086;
    --accent-soft: #3d2a22;
    --on-accent: #1a1714;
    --ok: #7cc995;
    --ok-soft: #1f3327;
    --warn: #e7bd5f;
    --warn-soft: #3a3020;
    --danger: #f08b82;
    --danger-soft: #3d2220;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .35), 0 12px 28px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin-bottom: .75rem; }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.muted { color: var(--muted); margin: .25rem 0 0; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: .7rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand small { font-family: var(--font); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .25rem; }
.brand__icon { width: 26px; height: 26px; color: var(--accent); }
.admin-nav { display: flex; gap: .5rem; }

.collections {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) .6rem;
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; position: relative;
}
.collections::-webkit-scrollbar { display: none; }
/* Weitere Sammlungen außerhalb des sichtbaren Bereichs: Rand ausblenden */
.collections.more-right { mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
.collections.more-left { mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent); }
.collections.more-left.more-right { mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); }
.collections a {
  flex: none; padding: .35rem .95rem; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem;
  border: 1px solid transparent;
}
.collections a:hover { color: var(--text); background: var(--surface-2); }
.collections a[aria-current="page"] { color: var(--on-accent); background: var(--accent); }

/* ---------- Layout ---------- */

.site-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.25rem var(--gutter) 2rem; }
.site-footer { text-align: center; padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); font-size: .85rem; }
.site-footer a { color: var(--muted); text-decoration: none; }

.page-head { margin-bottom: 1.1rem; }
.page-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.back { display: inline-block; margin-bottom: .9rem; text-decoration: none; font-weight: 550; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin: 0 0 1rem; box-shadow: var(--shadow);
}
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* ---------- Buttons & Formulare ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 42px; padding: .5rem 1.05rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn--sm { min-height: 36px; padding: .35rem .8rem; font-size: .88rem; }
.btn--icon { min-width: 42px; padding: .5rem; font-size: 1.15rem; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

input[type="text"], input[type="search"], input[type="url"], input[type="number"], input:not([type]),
select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .75rem;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
input:disabled { opacity: .5; }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 18px; }
input[type="file"] { font: inherit; font-size: .9rem; color: var(--muted); max-width: 100%; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: .75rem; padding: .45rem .9rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
}

.input-group { display: flex; gap: .5rem; }
.input-group > input { flex: 1; min-width: 0; }
.input-group > select { width: auto; flex: none; max-width: 45%; }
.hint { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }

/* ---------- Suche & Filter ---------- */

.toolbar {
  display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: start; margin-bottom: 1.25rem;
}
.search { position: relative; display: block; }
.search svg { position: absolute; left: .8rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 2.6rem; min-height: 48px; border-radius: 999px; box-shadow: var(--shadow); }
.toolbar__submit { min-height: 48px; border-radius: 999px; padding-inline: 1.3rem; }
.toolbar__options { grid-column: 1 / -1; order: 3; }
.toolbar__options summary {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none;
  color: var(--muted); font-size: .9rem; font-weight: 550; padding: .2rem .1rem; user-select: none;
}
.toolbar__options summary::-webkit-details-marker { display: none; }
.toolbar__options summary::before { content: "▸"; transition: transform .15s; }
.toolbar__options[open] summary::before { transform: rotate(90deg); }
.toolbar__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: .6rem; }
.toolbar__row label { font-size: .8rem; font-weight: 600; color: var(--muted); display: grid; gap: .25rem; }

/* ---------- Bücherliste (Mobile: Liste, Desktop: Regal) ---------- */

.books {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.books li + li { border-top: 1px solid var(--border); }
.book {
  display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem;
  color: inherit; text-decoration: none; min-height: 84px;
}
.book:hover { background: var(--surface-2); color: inherit; }
.book .cover { width: 48px; height: 70px; flex: none; }
.book__body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.book__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book__author { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book__meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.book__meta:not(:has(*)) { display: none; }
.book__chevron { width: 20px; height: 20px; flex: none; color: var(--muted); opacity: .6; }

.cover {
  display: block; object-fit: cover; border-radius: 4px 6px 6px 4px;
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 rgb(0 0 0 / .08), 0 1px 3px rgb(0 0 0 / .18);
}
.cover--empty {
  display: grid; place-items: center; color: var(--muted);
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--accent) 14%, var(--surface-2)));
}
.cover--thumb { width: 38px; height: 54px; font-size: 1rem; }
.cover--large { width: 100%; aspect-ratio: 2 / 3; height: auto; font-size: 4rem; }

@media (min-width: 720px) {
  .books {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.6rem 1.25rem;
    background: none; border: 0; box-shadow: none; overflow: visible;
  }
  .books li + li { border-top: 0; }
  .book { flex-direction: column; align-items: stretch; gap: .65rem; padding: 0; min-height: 0; border-radius: var(--radius-sm); }
  .book:hover { background: none; }
  .book .cover {
    width: 100%; height: auto; aspect-ratio: 2 / 3; font-size: 3rem;
    box-shadow: inset 4px 0 0 rgb(0 0 0 / .08), var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .book:hover .cover { transform: translateY(-4px); box-shadow: inset 4px 0 0 rgb(0 0 0 / .08), var(--shadow-lift); }
  .book:hover .book__title { color: var(--accent); }
  .book__chevron { display: none; }
  .book__title { font-size: 1rem; }
}

.badge {
  display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 999px;
  font-size: .72rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
  background: var(--surface-2); color: var(--muted);
}
.badge--note { background: var(--accent-soft); color: var(--accent); }
.badge--lent { background: var(--warn-soft); color: var(--warn); }

/* ---------- Seitennavigation ---------- */

.pagination { margin-top: 1.75rem; text-align: center; }
.pagination__buttons { display: inline-flex; align-items: center; gap: .35rem; }
.pagination__current { padding: 0 .75rem; font-weight: 600; font-size: .95rem; }
.pagination__count { color: var(--muted); font-size: .88rem; margin: .5rem 0 0; }

/* ---------- Detailseite ---------- */

.detail { display: grid; gap: 1.5rem; }
.detail__cover { max-width: 240px; width: 60%; margin: 0 auto; }
.detail__cover .cover { box-shadow: inset 5px 0 0 rgb(0 0 0 / .08), var(--shadow-lift); border-radius: 5px 9px 9px 5px; }
.detail__head { margin-bottom: 1.1rem; text-align: center; }
.subtitle { font-family: var(--font-serif); font-size: 1.15rem; color: var(--muted); margin: .3rem 0 0; }
.byline { font-size: 1.05rem; font-weight: 550; margin: .6rem 0 0; }
.detail__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .7rem 0 0; }
.detail__badges:not(:has(*)) { display: none; }

@media (min-width: 760px) {
  .detail { grid-template-columns: minmax(200px, 300px) 1fr; gap: 2.5rem; align-items: start; }
  .detail__cover { width: 100%; max-width: none; position: sticky; top: 130px; }
  .detail__head { text-align: left; }
  .detail__badges { justify-content: flex-start; }
}

.facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: 1.5rem; margin: 0 0 1rem; padding: .4rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts > div { padding: .6rem 0; border-bottom: 1px solid var(--border); min-width: 0; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: .1rem 0 0; overflow-wrap: anywhere; }

.prose { margin: 0; max-width: 70ch; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.65; }
.lent { margin: 0 0 .5rem; }
.history { margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.history li { padding: .35rem 0; border-top: 1px dashed var(--border); }
.history time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .5rem; }

/* ---------- Verwaltung ---------- */

.isbn-quick { display: flex; gap: .5rem; width: min(100%, 460px); }
.isbn-quick input { flex: 1; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.inline-form { display: flex; gap: .5rem; margin: 0; }
.inline-form select { width: auto; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th, .admin-table td { padding: .6rem .8rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.admin-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 650; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr[data-href] { cursor: pointer; }
.admin-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.admin-table--compact td { font-size: .85rem; }
.col-cover { width: 54px; }
.row-link { font-weight: 600; color: var(--text); text-decoration: none; }
.row-link:hover { color: var(--accent); }
.row-sub { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .col-hide-md { display: none; } }
@media (max-width: 600px) { .col-hide-sm { display: none; } }

.isbn-search label, .field label, .field .label { display: block; font-size: .82rem; font-weight: 650; color: var(--muted); margin-bottom: .3rem; }

.book-form fieldset { min-width: 0; }
.book-form legend { float: left; width: 100%; padding: 0; margin: 0 0 .9rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.book-form legend + * { clear: both; }
.grid { display: grid; grid-template-columns: 1fr; gap: .9rem 1rem; }
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field { min-width: 0; }
.suggest-host { position: relative; }
.suggest {
  position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px 0;
  list-style: none; max-height: 18rem; overflow-y: auto;
  background: var(--surface, var(--bg)); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .18);
}
.suggest li { padding: .55rem .8rem; cursor: pointer; line-height: 1.3; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--accent-soft, rgb(127 127 127 / .15)); }
.suggest mark { background: none; color: inherit; font-weight: 700; }
.suggest li:has(.suggest__hint) { display: flex; align-items: baseline; gap: .75rem; }
.suggest__value { min-width: 0; overflow-wrap: anywhere; }
.suggest__hint { margin-left: auto; flex: none; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.blurb-search { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: -.4rem; }
.blurb-search .hint { margin: 0; }

.field label.switch { display: inline-flex; margin: 0; font-size: 1rem; font-weight: 500; color: var(--text); }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; min-height: 44px; font-weight: 500; }
.switch input[type="checkbox"] {
  appearance: none; width: 46px; height: 28px; margin: 0; flex: none; cursor: pointer;
  border-radius: 999px; background: var(--border); position: relative; transition: background .2s;
}
.switch input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s;
}
.switch input[type="checkbox"]:checked { background: var(--accent); }
.switch input[type="checkbox"]:checked::after { transform: translateX(18px); }

.cover-edit { display: grid; gap: 1.2rem; }
.cover-edit__preview { width: 140px; }
.cover-edit__preview img { width: 100%; border-radius: 4px 7px 7px 4px; box-shadow: var(--shadow-lift); display: block; }
.cover-zoom { position: relative; display: block; cursor: zoom-in; }
.cover-thumb-link { display: block; width: fit-content; cursor: zoom-in; border-radius: 4px; transition: transform .15s; }
.cover-thumb-link:hover { transform: scale(1.08); }
.cover-zoom__hint {
  position: absolute; left: 50%; bottom: .5rem; transform: translateX(-50%);
  padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap;
  background: rgb(0 0 0 / .65); color: #fff; opacity: 0; transition: opacity .15s;
}
.cover-zoom:hover .cover-zoom__hint, .cover-zoom:focus-visible .cover-zoom__hint { opacity: 1; }
@media (hover: none) { .cover-zoom__hint { opacity: 1; } }

.cover-search .btn { margin-top: .1rem; }
.cover-candidates { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.cover-candidate {
  display: grid; gap: .35rem; justify-items: center; width: 116px; padding: .5rem;
  font: inherit; font-size: .75rem; color: var(--muted); cursor: pointer;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-sm);
}
.cover-candidate:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.cover-candidate[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cover-candidate img { width: 96px; height: 140px; object-fit: contain; }

.lightbox {
  padding: 0; border: 0; background: none; max-width: 94vw; max-height: 94vh; overflow: visible; cursor: zoom-out;
}
.lightbox::backdrop { background: rgb(0 0 0 / .8); }
.lightbox img { display: block; max-width: 94vw; max-height: 90vh; border-radius: 6px; box-shadow: 0 10px 40px rgb(0 0 0 / .5); }
.lightbox__close {
  position: absolute; top: -.75rem; right: -.75rem; width: 36px; height: 36px; border-radius: 50%; border: 0;
  font-size: 1.4rem; line-height: 1; cursor: pointer; background: #fff; color: #222; box-shadow: 0 2px 8px rgb(0 0 0 / .4);
}
@media (min-width: 640px) { .cover-edit { grid-template-columns: 140px 1fr; align-items: start; } }
.cover-edit__fields { grid-template-columns: 1fr !important; }

.form-actions {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; justify-content: flex-end; gap: .6rem;
  padding: .8rem 0 calc(.8rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; border: 1px solid transparent; }
.alert--success { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert--warning { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert--error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert a { color: inherit; font-weight: 650; }

.ok { color: var(--ok); font-weight: 550; margin: 0; }
.todo { margin: 0 0 1rem; padding-left: 1.2rem; }
.todo li { margin: .25rem 0; }

@media (max-width: 520px) {
  .site-header__inner { padding-block: .55rem; }
  .brand { font-size: 1.2rem; }
  .brand small { display: none; }
  .admin-nav .btn--ghost { display: none; }
  .isbn-quick { width: 100%; }
  .actions, .inline-form { width: 100%; }
  .inline-form select { flex: 1; }
  .form-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
