/* Compact PDF-viewer chrome. Function over form: no cards, no hero, no shadows. */
:root { --bg: #525659; --bar: #F7F6F3; --ink: #111; --muted: #787774; --line: #E2E1DE; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; display: flex; flex-direction: column; height: 100dvh; background: var(--bg);
  color: var(--ink); font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif; }
.toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: var(--bar); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.brand { font-weight: 650; font-size: 14px; margin-right: 2px; }
#library { max-width: 180px; font-size: 13px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 4px;
  min-width: 30px; height: 28px; font-size: 14px; cursor: pointer; padding: 0 8px; }
.toolbar button:hover { background: #EFEDE8; }
#pageInput { width: 64px; height: 28px; text-align: center; font-size: 14px;
  border: 1px solid var(--line); border-radius: 4px; }
.total { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.film { flex: 0 0 auto; background: #3F4346; padding: 6px 8px; }
.film-strip { display: flex; gap: 6px; overflow-x: auto; }
.film-strip img { height: 72px; width: auto; background: #fff; cursor: pointer; }
.film-strip img.cur { outline: 2px solid #fff; }
.stage { flex: 1 1 auto; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 12px; }
.stage img { display: none; width: auto; max-width: 100%; height: auto; background: #fff; }
.stage img.on { display: block; }
.stage img.fit { max-height: calc(100dvh - 130px); max-width: 100%; }
#placeholder { color: #C9C9C9; align-self: center; }
.statusbar { display: flex; gap: 12px; align-items: center; padding: 3px 10px;
  background: var(--bar); border-top: 1px solid var(--line); font-size: 12px; flex: 0 0 auto; }
#printedBadge { font-weight: 600; }
.dim { color: var(--muted); }
.mono { font-family: ui-monospace, monospace; }
