Redesign the interface around Scan and Library, classify uncatalogued books from similar ones

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-18 11:01:50 -07:00
1 parent 308c0e1ed3
commit 6cec404e21
71 files changed
+8634 -1502

No files matched your search

+288 -108
View File
@@ -1,119 +1,299 @@
/* Booksorter: one visual system. Everything below uses these tokens. */
:root {
color-scheme: light dark;
--bg: #f7f6f3; --panel: #fff; --text: #1d1d1b; --muted: #6a6a64; --line: #dcdad3;
--accent: #1f5fbf; --accent-text: #fff; --ok: #1d7a46; --warn: #a15c00; --bad: #b3261e; --flash: #2fa35d;
/* spacing: a 4px scale */
--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
--space-6: 24px; --space-8: 32px; --space-10: 40px;
/* type */
--text-sm: 13px; --text-md: 15px; --text-lg: 18px; --text-xl: 24px;
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
--leading: 1.4;
/* shape and size */
--radius: 8px; --radius-lg: 12px; --radius-pill: 999px;
--control: 36px; --icon-btn: 32px; --row-h: 56px;
--icon: 16px; --icon-lg: 20px;
--page-max: 1200px; --gutter: 24px; --left-col: 440px; --panel-w: 440px;
--callno-col: 96px; --mark-col: 20px;
/* colour (light) */
--bg: #f6f5f2;
--surface: #ffffff;
--border: #dcd9d1;
--border-strong: #8c887e;
--text: #1c1b19;
--muted: #5c5a54;
--accent: #1a56b0;
--on-accent: #ffffff;
--success: #16703f;
--warning: #8a4b00;
--danger: #b3261e;
--on-danger: #ffffff;
--accent-soft: #e3ecf9;
--warning-soft: #fbefd9;
--hover: color-mix(in srgb, var(--text) 6%, transparent);
--scrim: rgba(0, 0, 0, .45);
--shadow: 0 8px 24px rgba(0, 0, 0, .18);
/* on top of the video */
--video-bg: #000000;
--overlay: rgba(0, 0, 0, .72);
--on-overlay: #ffffff;
--on-overlay-line: rgba(255, 255, 255, .6);
--on-overlay-hover: rgba(255, 255, 255, .18);
--overlay-ok: #86efac;
--overlay-warn: #fcd34d;
}
@media (prefers-color-scheme: dark) {
:root { --bg: #16171a; --panel: #1f2125; --text: #ecebe6; --muted: #9a9a94; --line: #33363b;
--accent: #6ea3f2; --accent-text: #0b1b33; --ok: #52c586; --warn: #e0a24a; --bad: #f08a82; --flash: #52c586; }
:root {
--bg: #141518;
--surface: #1e2024;
--border: #32353b;
--border-strong: #70747c;
--text: #ecebe6;
--muted: #a3a29b;
--accent: #7eb0f5;
--on-accent: #08182e;
--success: #58c98a;
--warning: #e8ab55;
--danger: #f4948c;
--on-danger: #2a0a07;
--accent-soft: #1f2d44;
--warning-soft: #33291a;
--scrim: rgba(0, 0, 0, .6);
--shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
h1 { font-size: 1.15rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; color: var(--muted); }
nav button.on { background: var(--bg); color: var(--text); font-weight: 600; }
main { max-width: 1100px; margin: 0 auto; padding: 20px; }
button, .button, select, input { font: inherit; color: inherit; }
button, .button { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .button:hover { border-color: var(--muted); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.danger { color: var(--bad); }
button.quiet { border-color: transparent; background: none; color: var(--muted); }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--text-md) / var(--leading) var(--font-sans); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: var(--accent); }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); width: 100%; }
input[type=checkbox] { width: auto; }
label { display: block; font-size: .9rem; color: var(--muted); }
label > input, label > select { margin-top: 4px; color: var(--text); }
label small { display: block; margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: flex-end; margin: 10px 0; }
.row.wrap { flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 200px; } .year { width: 110px; }
.stack { display: grid; gap: 10px; margin: 10px 0; }
.muted { color: var(--muted); } .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.error { color: var(--bad); } .warn, .warn-text { color: var(--warn); }
.check { display: flex; gap: 6px; align-items: center; }
.mono { font-family: var(--font-mono); }
.error { color: var(--danger); }
.scan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.scan .forms { grid-column: 1 / -1; }
@media (max-width: 760px) { .scan { grid-template-columns: 1fr; } main { padding: 14px 12px; } }
.video-wrap { position: relative; width: 100%; background: #0b0c0e; border-radius: 12px; overflow: hidden; border: 3px solid var(--line); transition: border-color .15s; }
.video-wrap.flash { border-color: var(--flash); transition: none; }
video { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.res { margin: -6px 0 8px; }
.video-empty { position: absolute; inset: 0; display: grid; place-items: center; }
button.big { font-size: 1.1rem; padding: 12px 26px; }
.target { position: absolute; border: 2px solid rgba(255,255,255,.92); border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.38); pointer-events: none; transition: border-color .15s; }
.video-wrap.flash .target { border-color: var(--flash); box-shadow: 0 0 0 100vmax rgba(0,0,0,.38), 0 0 0 3px var(--flash); }
.hint { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); max-width: 92%; padding: 4px 12px; border-radius: 14px; background: rgba(0,0,0,.72); color: #fff; font-size: .9rem; text-align: center; width: max-content; pointer-events: none; }
.scanning { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .82rem; pointer-events: none; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #52c586; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
/* Buttons: one filled primary per screen; everything else is quiet (border) or text. */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
min-height: var(--control); padding: 0 var(--space-4);
border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
color: var(--text); text-align: center; text-decoration: none; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--hover); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.1); }
.btn-primary:disabled { opacity: 1; background: var(--bg); border-color: var(--border); color: var(--muted); }
.btn-text { border-color: transparent; background: none; }
.btn-danger { color: var(--danger); }
.btn-icon {
display: inline-flex; align-items: center; justify-content: center;
min-width: var(--icon-btn); min-height: var(--icon-btn); border: 1px solid transparent; border-radius: var(--radius);
color: var(--muted); font-size: var(--text-lg); line-height: 1;
}
.btn-icon:hover { background: var(--hover); border-color: var(--border-strong); color: var(--text); }
.icon { width: var(--icon); height: var(--icon); flex: none; }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }
/* Fields */
input, select {
width: 100%; min-height: var(--control); padding: 0 var(--space-3);
border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text);
}
input[aria-invalid="true"] { border-color: var(--danger); }
.field { display: grid; gap: var(--space-1); font-size: var(--text-sm); color: var(--muted); }
.field input, .field select { font-size: var(--text-md); }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
.help { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; gap: var(--space-6); max-width: var(--page-max); margin: 0 auto; padding: var(--space-2) var(--gutter); }
.top h1 { font-size: var(--text-lg); font-weight: 700; }
.top nav { display: flex; gap: var(--space-1); }
.tab { min-height: var(--control); padding: 0 var(--space-3); border-bottom: 2px solid transparent; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.top-gear { margin-left: auto; min-width: var(--control); min-height: var(--control); }
main { max-width: var(--page-max); margin: 0 auto; padding: var(--space-6) var(--gutter); }
/* Scan: camera, last scan and entry on the left; cards to print on the right */
.scan { display: grid; grid-template-columns: var(--left-col) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.scan-left { position: sticky; top: var(--space-4); display: grid; gap: var(--space-4); min-width: 0; }
.cards { min-width: 0; }
.video-frame {
position: relative; aspect-ratio: 16 / 10; overflow: hidden;
background: var(--video-bg); border: 3px solid var(--border); border-radius: var(--radius-lg);
transition: border-color .15s;
}
.video-frame.flash { border-color: var(--success); transition: none; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.target {
position: absolute; border: 2px solid var(--on-overlay); border-radius: var(--radius);
box-shadow: 0 0 0 100vmax var(--scrim); pointer-events: none;
}
.video-frame.flash .target { border-color: var(--overlay-ok); }
.video-bar {
position: absolute; left: 0; right: 0; bottom: 0;
display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3);
background: var(--overlay); color: var(--on-overlay);
}
.video-status {
flex: 1 1 auto; min-width: 0; font-size: var(--text-sm);
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.tone-ok { color: var(--overlay-ok); }
.tone-warn { color: var(--overlay-warn); }
.btn-video { border-color: var(--on-overlay-line); background: transparent; color: var(--on-overlay); }
.btn-video:hover:not(:disabled) { background: var(--on-overlay-hover); }
.btn-video:focus-visible { outline-color: var(--on-overlay); }
.btn-video-icon { flex: none; padding: 0; width: var(--control); }
.video-empty {
position: absolute; top: 0; right: 0; bottom: 0; left: 0;
display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-4);
color: var(--on-overlay); text-align: center;
}
.video-problem { max-width: 28ch; font-size: var(--text-sm); color: var(--overlay-warn); }
/* Last scan */
.last { padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); min-height: 120px; }
.last-empty { display: grid; place-items: center; color: var(--muted); text-align: center; }
.last-title { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.last-author { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.last-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-3); min-width: 0; }
.last-mark { display: inline-flex; flex: none; }
.last-mark .icon { width: var(--text-xl); height: var(--text-xl); }
.last-ready { color: var(--success); }
.last-attention { color: var(--warning); }
.last-already { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--muted); }
/* Entry box and its results */
.entry { display: grid; gap: var(--space-1); }
.entry-input { min-height: 44px; font-size: var(--text-lg); }
.entry-help { min-height: calc(var(--text-sm) * var(--leading)); font-size: var(--text-sm); color: var(--muted); }
.entry-help.error { color: var(--danger); }
.entry-pop { display: grid; gap: var(--space-2); }
.entry-none { font-size: var(--text-sm); color: var(--muted); }
.results { max-height: 40vh; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.result { display: grid; gap: 2px; min-height: var(--control); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border); cursor: pointer; }
.result:first-child { border-top: 0; }
.result.active { background: var(--accent-soft); }
.result-title { font-weight: 600; overflow-wrap: anywhere; }
.result-sub { font-size: var(--text-sm); color: var(--muted); overflow-wrap: anywhere; }
.result-footer .result-title { color: var(--accent); }
/* Cards to print */
.cards-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.cards-head h2, .group-head { font-size: var(--text-lg); font-weight: 600; }
.count { margin-left: var(--space-1); font-size: var(--text-md); font-weight: 400; color: var(--muted); }
.cards-print { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.cards-reason { font-size: var(--text-sm); color: var(--muted); }
.print-anchor { position: relative; }
.print-panel {
position: absolute; top: calc(100% + var(--space-2)); right: 0; z-index: 20;
display: grid; gap: var(--space-3); width: min(20rem, calc(100vw - 2 * var(--gutter))); padding: var(--space-4);
background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.print-panel:focus { outline: none; }
.print-question { font-weight: 600; }
.print-note { font-size: var(--text-sm); }
.slots-wrap { display: grid; gap: var(--space-2); justify-items: start; }
.slots-label { font-size: var(--text-sm); color: var(--muted); }
.sheet { display: grid; gap: var(--space-1); width: 100%; padding: var(--space-2); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.slot { min-height: var(--control); text-align: center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.slot:hover { background: var(--hover); }
.slot.on { background: var(--accent-soft); border: 2px solid var(--accent); font-weight: 700; }
.slot.used { border-style: dashed; color: var(--muted); }
/* Rows: state mark, call number, title and author, actions. Shared by both screens. */
.rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.row {
display: grid; grid-template-columns: var(--mark-col) var(--callno-col) minmax(0, 1fr) auto; align-items: center;
gap: var(--space-3); min-height: var(--row-h); padding: var(--space-2) var(--space-3);
border-bottom: 1px solid var(--border);
}
.rows > li:last-child > .row, .rows > .row:last-child { border-bottom: 0; }
.row-library { width: 100%; grid-template-columns: var(--mark-col) var(--callno-col) minmax(0, 1fr); color: var(--text); text-align: left; }
.row-library:hover { background: var(--hover); }
.row:focus-visible { outline-offset: -2px; }
.row-attention { background: var(--warning-soft); }
.mark { display: flex; justify-content: center; }
.mark-ready { color: var(--success); }
.mark-attention { color: var(--warning); }
.row-main { display: grid; gap: 2px; min-width: 0; }
.row-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row-sub { font-size: var(--text-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state-text { font-size: var(--text-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.state-looking { color: var(--muted); }
.state-attention { color: var(--warning); font-weight: 600; }
.elapsed { font-variant-numeric: tabular-nums; }
.row-actions { display: flex; align-items: center; gap: var(--space-1); }
/* Call number: two monospaced lines in a fixed-width column */
.callno { display: block; width: var(--callno-col); min-width: 0; font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.3; font-variant-numeric: tabular-nums; }
.callno-line { display: block; min-height: 1.3em; overflow-wrap: anywhere; }
.callno-none { color: var(--muted); }
.callno-large { width: auto; font-size: var(--text-xl); line-height: 1.2; }
.callno-large .callno-line { min-height: 1.2em; }
.approx { color: var(--warning); cursor: help; }
/* Spinner (still, not spinning, when motion is reduced) */
.spinner { display: inline-block; flex: none; width: 14px; height: 14px; vertical-align: -2px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rowflash { from { opacity: .35; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .spinner { animation-duration: 3s; } .flashbar { animation-duration: .01s; } }
.status { margin: 10px 0; padding: 8px 12px; border-radius: 8px; border-left: 4px solid var(--line); background: var(--panel); font-weight: 500; min-height: 2.6em; }
.status.ok { border-left-color: var(--ok); color: var(--ok); }
.status.warn { border-left-color: var(--warn); color: var(--warn); }
.small { font-size: .85rem; }
.summary { font-weight: 600; margin: 0 0 6px; }
.isbn-form input { font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
.spinner { animation: none; }
.video-frame, .video-frame.flash { transition: none; }
}
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item.column { flex-direction: column; align-items: stretch; gap: 8px; }
.item-btn { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; border: 0; padding: 0; background: none; }
.item-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.item-main .chip { align-self: flex-start; margin-top: 4px; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.title { overflow-wrap: anywhere; }
.callno { display: inline-flex; flex-direction: column; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; white-space: pre; min-width: 9.5em; font-size: .92rem; line-height: 1.35; }
.item-main .callno { margin-top: 4px; }
.approx { color: var(--warn); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: var(--ok); } .chip.warn { color: var(--warn); border-color: var(--warn); }
.chip.dup { color: var(--accent); border-color: var(--accent); } .chip.pending { color: var(--muted); }
.error-item { color: var(--bad); }
details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.results .result { width: 100%; text-align: left; display: flex; flex-direction: column; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 14px; margin: 10px 0; }
.editor { display: grid; gap: 10px; }
.editor .row { margin: 0; }
.queue section { margin-bottom: 28px; }
fieldset.start { border: 0; padding: 0; margin: 16px 0 8px; }
legend { color: var(--muted); font-size: .9rem; padding: 0; margin-bottom: 6px; }
.sheet { display: inline-flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.slot { width: 150px; height: 40px; padding: 0; border-radius: 4px; }
.slot.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.slot.used { opacity: .45; }
.confirm { border-color: var(--accent); }
.empty { padding: var(--space-6) var(--space-4); text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-page { margin-top: var(--space-10); }
/* Books: one row each, one state each. */
.book { position: relative; display: grid; gap: 8px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line); overflow: hidden; }
.book.looking { border-left-color: var(--accent); }
.book.ready { border-left-color: var(--ok); }
.book.attention { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.book-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.book-head .item-main { flex: 1; }
.earlier { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.book-state { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.state-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.book.looking .state-label, .item[data-state=looking] .state-label { color: var(--accent); }
.book.ready .state-label, .item .state-label { color: var(--ok); }
.book.attention .state-label { color: var(--warn); }
.item[data-state=looking] .state-label { color: var(--accent); }
.elapsed { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--muted); }
.icon { width: 16px; height: 16px; flex: none; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
.reason { color: var(--text); overflow-wrap: anywhere; }
.note { overflow-wrap: anywhere; }
.flashbar { position: absolute; inset: 0; background: var(--flash); opacity: 0; animation: rowflash 1.4s ease-out; pointer-events: none; }
.item { align-items: center; }
.item > .state-label { margin-left: auto; }
.item.dim .title { color: var(--muted); }
.callno-slot { min-width: 9.5em; }
.queue-head { font-weight: 600; }
/* Library */
.library-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.library-search { flex: 1 1 20rem; }
.chip { display: inline-flex; align-items: center; min-height: var(--control); padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.group { margin-bottom: var(--space-6); }
.group-head { margin-bottom: var(--space-2); }
/* Panels: a side panel on wide windows, a full-width sheet on narrow ones */
.backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; justify-content: flex-end; background: var(--scrim); }
.panel { display: flex; flex-direction: column; width: min(var(--panel-w), 100%); height: 100%; background: var(--surface); box-shadow: var(--shadow); }
.panel:focus { outline: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: var(--text-lg); font-weight: 600; }
.panel-body { display: grid; gap: var(--space-6); align-content: start; padding: var(--space-6); overflow: auto; }
.editor { display: grid; gap: var(--space-4); }
.fix-search { display: grid; gap: var(--space-2); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.search-row { display: flex; gap: var(--space-2); }
.danger-zone { padding-top: var(--space-4); border-top: 1px solid var(--border); }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.confirm-text { margin-right: var(--space-2); font-weight: 600; }
.settings-block { display: grid; gap: var(--space-3); }
.settings-block h3 { font-size: var(--text-md); font-weight: 600; }
/* Toasts */
.toasts { position: fixed; left: 50%; bottom: var(--space-6); z-index: 50; display: grid; gap: var(--space-2); width: min(32rem, calc(100vw - 2 * var(--gutter))); transform: translateX(-50%); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--control); padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); background: var(--text); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); }
.toast-error { background: var(--danger); color: var(--on-danger); }
.toast-text { min-width: 0; overflow-wrap: anywhere; }
.toast-action { flex: none; min-height: var(--icon-btn); padding: 0 var(--space-2); border-radius: var(--radius); font-weight: 700; text-decoration: underline; color: inherit; }
.toast-action:focus-visible { outline-color: currentColor; }
@media (max-width: 820px) {
.scan { grid-template-columns: minmax(0, 1fr); }
.scan-left { position: static; }
.panel { width: 100%; }
}