:root {
  --bg: #eef4fa;
  --surface: #ffffff;
  --surface-2: #f6fafd;
  --border: #dde7f1;
  --border-strong: #bdcde0;
  --text: #13273e;
  --text-muted: #5b6e85;
  --accent: #2f6db5;
  --accent-hover: #245488;
  --accent-soft: #dbe9f7;
  --danger: #c1311e;
  --warn: #b88a16;
  --ok: #1e7a4f;
  --shadow: 0 1px 2px rgba(15,30,50,.05), 0 8px 24px rgba(15,30,50,.08);
  --radius: 8px;
  --topbar-h: 52px;
  --review-bg: #0f1c2e;
  --review-surface: #15273e;
  --review-surface-2: #1c324d;
  --review-border: #28425f;
  --review-text: #e8eef6;
  --review-text-muted: #8ea3bd;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--text-muted); }
.inline { display: inline-block; }

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-review { background: var(--review-bg); color: var(--review-text); border-bottom-color: var(--review-border); }
.topbar-review .brand-logo { color: var(--review-text); }
.topbar-review .brand-mark { color: #6ba6e0; }
.topbar-review select { background: var(--review-surface); color: var(--review-text); border-color: var(--review-border); }

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-icon { display: block; flex-shrink: 0; border-radius: 6px; }
.brand-wordmark { display: inline-flex; align-items: baseline; gap: 0; }
.brand-logo { color: var(--text); align-self: baseline; }
.brand-mark { color: var(--accent); align-self: baseline; }

.topnav { display: flex; gap: 12px; align-items: center; }
.topnav-user { color: inherit; opacity: .8; }

.topbar-module {
  display: flex; gap: 12px; align-items: center;
  font-weight: 500; flex: 1; justify-content: center;
}
.topbar-module-name { font-size: 15px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 80ms ease, border 80ms ease;
}
.btn:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.topbar:not(.topbar-review) .btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-icon {
  background: transparent; border: 0; padding: 4px 8px; cursor: pointer;
  color: inherit; font: inherit; border-radius: 4px;
}
.btn-icon:hover { background: rgba(0,0,0,.06); }

/* flashes */
.flashes {
  list-style: none; padding: 0; margin: 12px auto;
  max-width: 1100px;
}
.flash {
  padding: 10px 14px; border-radius: var(--radius);
  margin: 6px 20px; border: 1px solid var(--border);
}
.flash-error { background: #fdecea; border-color: #f5c2bc; color: #7a1f0f; }
.flash-success { background: #e7f5ec; border-color: #b9dec7; color: var(--ok); }
.flash-info, .flash-warning { background: #fff5db; border-color: #ecd28a; color: #6e5104; }

/* page header */
.page-header {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px; margin-bottom: 24px;
}
.page-header h1 { margin: 0 0 4px; font-size: 24px; }
.page-header p { margin: 0; }
.header-actions { display: flex; gap: 8px; }

/* auth */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(180deg, #f4f8fc, #dbe7f4);
  padding: 20px;
}
.auth-card {
  background: var(--surface);
  padding: 32px; border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%; max-width: 380px;
  box-shadow: var(--shadow);
}
.auth-brand {
  font-size: 22px; margin-bottom: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.auth-logo { display: block; width: 120px; height: 120px; }
.auth-brand-text { display: flex; gap: 0; align-items: baseline; font-weight: 700; }
.auth-brand-text .brand-logo { color: var(--text); }
.auth-brand-text .brand-mark { color: var(--accent); }
.auth-card h1 { margin: 0 0 16px; font-size: 18px; }
.auth-card label { display: block; margin-bottom: 12px; }
.auth-card label span { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border-strong);
  border-radius: 6px; font: inherit;
}
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-help { margin-top: 16px; color: var(--text-muted); font-size: 12px; }

/* module list */
.module-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.module-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border 80ms ease, box-shadow 80ms ease;
}
.module-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.module-card-link { color: inherit; flex: 1; }
.module-card-link:hover { text-decoration: none; }
.module-card-head { display: flex; align-items: center; gap: 10px; }
.module-card h2 { margin: 0; font-size: 16px; }
.module-card-meta { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.module-card-meta > * { margin-right: 4px; }

.pill {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  background: var(--accent-soft); color: var(--accent);
}

.empty-state {
  padding: 40px;
  text-align: center; background: var(--surface);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}

/* forms */
.form-card {
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 540px;
}
.form-card label { display: block; margin-bottom: 16px; }
.form-card label > span:first-child {
  display: block; font-weight: 500; margin-bottom: 6px;
}
.form-card input[type=text], .form-card input[type=email], .form-card input[type=file] {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong);
  border-radius: 6px; font: inherit;
}
.form-card small.muted { display: block; margin-top: 4px; }
.form-error { color: var(--danger); display: block; margin-top: 4px; }
.form-actions { margin-top: 8px; }

/* review shell */
.body-review { background: var(--review-bg); }
.review-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  height: calc(100vh - var(--topbar-h));
  background: var(--review-bg);
  color: var(--review-text);
}
/* When the comments rail is collapsed the grid track shrinks so the freed
   space goes to the stage instead of leaving a gap. :has() is supported in
   all evergreen browsers. */
.review-shell:has(> .rail.is-collapsed) {
  grid-template-columns: 1fr 40px;
}
.rail {
  background: #15273e;
  border-right: 1px solid #28425f;
  overflow-y: auto;
  min-width: 0;
}
.rail-right { border-right: 0; border-left: 1px solid #28425f; }
.rail.is-collapsed { width: auto; }
.rail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #8ea3bd;
  border-bottom: 1px solid #28425f;
  position: sticky; top: 0; background: #15273e; z-index: 5;
}
.rail-body { padding: 12px; }

.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  gap: 10px;
  background: #08111c;
  padding: 12px 16px 16px;
  min-width: 0; min-height: 0;
  overflow: hidden;
}
/* Toolbar row above the slide canvas — see issue #17. Wrap on narrow
   viewports so the armed banner drops below the buttons rather than
   pushing them off-screen. */
.stage-controls {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 8px;
}
/* Pin the iframe wrap to the slide's native aspect ratio so the iframe
   boundary matches the rendered slide and we don't get an inner letterbox.
   width:100% with max-height:100% lets the browser pick width vs height as
   the binding constraint while keeping the aspect ratio. */
.stage-iframe-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--canvas-aspect, 16 / 9);
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.stage-iframe-wrap iframe {
  width: 100%; height: 100%; border: 0;
  display: block;
}
.stage-status {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #8ea3bd; pointer-events: none;
}

/* comments */
.comment-composer {
  background: #1c324d;
  border: 1px solid #385372;
  border-radius: 8px;
  padding: 10px;
  position: relative;
}
.comment-composer textarea {
  width: 100%; resize: vertical;
  background: transparent; color: inherit;
  border: 0; font: inherit; outline: none;
  min-height: 60px;
}
.composer-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; gap: 10px;
}
.composer-foot small { color: #8ea3bd; }

.mention-picker {
  position: absolute; left: 8px; right: 8px; bottom: 100%;
  background: #1c324d; border: 1px solid #385372; border-radius: 6px;
  list-style: none; margin: 0 0 6px; padding: 4px;
  max-height: 200px; overflow-y: auto;
  z-index: 20;
}
.mention-picker li {
  display: flex; gap: 8px; align-items: baseline;
  padding: 6px 10px; border-radius: 4px; cursor: pointer;
  font-size: 13px;
}
.mention-picker li.is-active, .mention-picker li:hover {
  background: #385372;
}
.mention-picker li span { color: #8ea3bd; font-size: 12px; }

.thread-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.thread { background: #1c324d; border: 1px solid #385372; border-radius: 8px; padding: 10px; }
.thread.is-resolved { opacity: .6; }
.comment header {
  display: flex; gap: 8px; align-items: center; margin-bottom: 6px;
  position: relative;
}
.comment-meta { flex: 1; line-height: 1.2; }
.comment-meta strong { font-size: 13px; }
.comment-meta small { color: #8ea3bd; display: block; font-size: 11px; }
.comment-actions { margin-left: auto; position: relative; }
.comment-actions .menu {
  position: absolute; right: 0; top: 100%;
  list-style: none; padding: 4px; margin: 4px 0 0;
  background: var(--review-bg); border: 1px solid #385372; border-radius: 6px;
  min-width: 120px; z-index: 30;
}
.comment-actions .menu li button {
  width: 100%; text-align: left; background: transparent; color: inherit;
  border: 0; padding: 6px 10px; font: inherit; cursor: pointer; border-radius: 4px;
}
.comment-actions .menu li button:hover { background: #385372; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.comment-body { margin-top: 4px; line-height: 1.5; word-wrap: break-word; }
.comment-body p:first-child { margin-top: 0; }
.comment-body p:last-child { margin-bottom: 0; }
.mention { color: var(--accent); font-weight: 500; }

.replies {
  list-style: none; margin: 8px 0 0 32px; padding: 0;
  display: grid; gap: 8px;
}
.reply { background: #15273e; border-color: #28425f; }

.reply-area { margin-top: 8px; margin-left: 32px; }
.reply-form textarea {
  width: 100%; resize: vertical;
  background: #15273e; color: inherit; border: 1px solid #385372;
  border-radius: 6px; padding: 6px 8px; font: inherit; min-height: 50px;
}
.edit-area textarea {
  width: 100%; resize: vertical;
  background: #15273e; color: inherit; border: 1px solid #385372;
  border-radius: 6px; padding: 6px 8px; font: inherit; min-height: 60px;
}
.edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

.badge {
  display: inline-block; padding: 2px 6px; border-radius: 10px;
  font-size: 11px; margin-top: 6px; margin-right: 4px;
}
.badge-resolved { background: #1f4a36; color: #b9dec7; }
.badge-carried { background: #4d3a1c; color: #ecd28a; }

.thread-list .empty {
  text-align: center; color: #8ea3bd; padding: 30px 10px;
  border: 1px dashed #385372; border-radius: 8px;
}

/* feedback page */
.feedback-controls {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 18px;
}
.feedback-controls label { display: flex; gap: 6px; align-items: center; margin: 0; }
.feedback-controls .checkbox { font-size: 13px; color: var(--text-muted); }
.feedback-controls select {
  padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit;
}
.scene-heading {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin: 24px 0 8px;
}
.scene-block {
  display: grid; gap: 16px;
}
.feedback-slide {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.feedback-slide-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.feedback-slide-head a { color: var(--text); font-weight: 500; }
.feedback-slide-body { padding: 12px 16px; }
.feedback-slide .thread {
  background: #f6fafd; border: 1px solid var(--border); color: var(--text);
}
.feedback-slide .reply { background: #e9f0f8; }
.feedback-slide .reply-form textarea, .feedback-slide .edit-area textarea {
  background: #fff; color: var(--text); border-color: var(--border-strong);
}
.feedback-slide .comment-meta small { color: var(--text-muted); }
.feedback-slide .comment-body { color: var(--text); }
.feedback-slide .badge-resolved { background: #d4ebdd; color: #1e7a4f; }
.feedback-slide .badge-carried { background: #f7e5bf; color: #7a5d10; }
.feedback-slide .mention { color: var(--accent); }

.version-picker select {
  padding: 5px 9px; border-radius: 6px; border: 1px solid var(--border-strong);
  font: inherit;
}

/* annotation overlay */
.stage-iframe-wrap { position: relative; }
.annot-layer {
  position: absolute; inset: 0;
  pointer-events: none;
}
.annot-layer.is-active {
  pointer-events: auto;
  cursor: crosshair;
  /* faint accent outline so the user can see drawing mode is armed */
  box-shadow: inset 0 0 0 2px rgba(255, 59, 48, 0.45);
}
.stage-iframe-wrap[data-tool="point"] .annot-layer.is-active { cursor: cell; }
.stage-iframe-wrap[data-tool="freehand"] .annot-layer.is-active { cursor: crosshair; }
.annot-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.annot-toolbar {
  display: flex; gap: 4px; align-items: center;
  padding: 4px;
  background: rgba(15, 28, 46, 0.92);
  border: 1px solid #385372;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.annot-btn {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  background: transparent; border: 0; border-radius: 5px;
  color: #e8eef6;
  font-size: 14px;
  cursor: pointer;
}
.annot-btn:hover:not(:disabled) { background: #385372; }
.annot-btn[disabled] { opacity: .35; cursor: not-allowed; }
.annot-btn.is-active { background: var(--accent); color: #fff; }
.annot-sep {
  width: 1px; height: 18px; background: #385372; margin: 0 2px;
}
.annot-colour {
  width: 26px; height: 26px;
  border: 1px solid #385372; border-radius: 4px; padding: 0;
  background: transparent; cursor: pointer;
}

[x-cloak] { display: none !important; }

.annot-armed-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 59, 48, 0.92);
  color: #fff;
  border-radius: 8px;
  font-size: 12px; font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.annot-armed-banner .armed-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}
.annot-armed-banner .armed-dismiss {
  background: transparent; border: 0; color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer;
  padding: 0 0 0 4px; opacity: .85;
}
.annot-armed-banner .armed-dismiss:hover { opacity: 1; }

/* Warning variant: shown when the iframe is on a slide we can't map back to
   the manifest. Distinct hue so reviewers don't confuse it with the red
   "tool armed" banner. */
.annot-warning-banner {
  background: rgba(184, 134, 11, 0.95);
}
.annot-warning-banner .armed-dot {
  background: #ffe694;
  box-shadow: 0 0 0 2px rgba(255, 230, 148, 0.35);
}

/* composer extras */
.composer-actions { display: flex; gap: 4px; }
.composer-attachments {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: grid; gap: 6px;
}
.composer-attachments li {
  display: flex; align-items: center; gap: 8px;
  background: #15273e; border: 1px solid #385372; border-radius: 6px;
  padding: 4px 6px;
}
.composer-attachments img {
  width: 36px; height: 36px; object-fit: cover; border-radius: 4px;
}
.composer-attachments .att-icon { width: 36px; height: 36px; display: grid; place-items: center; }
.composer-attachments .att-name {
  flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.composer-annot-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding: 6px 10px;
  background: #15273e; border: 1px solid #385372; border-radius: 6px;
  font-size: 12px; color: #c8d3e0;
}

/* attachments inside posted comments */
.comment-attachments {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; gap: 6px; grid-template-columns: 1fr;
}
.comment-attachments img,
.comment-attachments video {
  max-width: 100%; max-height: 320px;
  border-radius: 6px; border: 1px solid #385372;
  display: block;
}
.comment-attachments .att-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--accent);
}
.comment-attachment-thumb {
  display: block; padding: 0; margin: 0;
  background: none; border: 0;
  cursor: zoom-in;
}
.comment-attachment-thumb:focus-visible img {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.feedback-slide .comment-attachments img,
.feedback-slide .comment-attachments video {
  border-color: var(--border);
}

/* lightbox */
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: grid; place-items: center;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox-img {
  max-width: 95vw; max-height: 95vh;
  width: auto; height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff; border: 0; border-radius: 50%;
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* search */
.topbar-search input[type=search] {
  padding: 6px 10px; min-width: 200px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  font: inherit; background: var(--surface);
}
.topbar-review .topbar-search input[type=search] {
  background: var(--review-surface-2); color: var(--review-text); border-color: var(--review-border);
}
.topbar-review .topbar-search input::placeholder { color: #8ea3bd; }

.search-results {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.search-hit {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border 80ms;
}
.search-hit:hover { border-color: var(--border-strong); }
.search-hit-link { display: block; padding: 14px 16px; color: inherit; }
.search-hit-link:hover { text-decoration: none; }
.search-hit header { font-size: 14px; }
.search-snippet {
  margin: 6px 0;
  font-size: 14px; color: var(--text);
  line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}

/* profile form select */
.form-card select.select,
.form-card select {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border-strong); border-radius: 6px; font: inherit;
  background: var(--surface);
}
.form-card input[type=password] {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border-strong); border-radius: 6px; font: inherit;
}

/* admin */
.page-header-actions { display: flex; gap: 8px; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #a02516; border-color: #a02516; }

.pill-admin { background: #fcebe7; color: var(--danger); }
.pill-reviewer { background: var(--accent-soft); color: var(--accent); }
.pill-ok { background: #def0e5; color: var(--ok); margin-left: 6px; }
.pill-muted { background: #e3e9f0; color: var(--text-muted); margin-left: 6px; }

.data-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.data-table thead th {
  background: var(--surface-2); font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; font-size: 11px; letter-spacing: .04em;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }

.admin-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  margin-top: 16px;
}
.admin-grid .form-card { max-width: none; }
.admin-grid h2 {
  margin: 0 0 12px; font-size: 16px; color: var(--text);
}

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li {
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.activity-list li:last-child { border-bottom: 0; }
.activity-list code {
  background: var(--surface-2); padding: 1px 6px; border-radius: 4px;
  font-size: 12px;
}

.filter-bar {
  display: flex; gap: 12px; align-items: end; margin: 12px 0;
  background: var(--surface); padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.filter-bar select { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; }

.pager {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  margin: 16px 0;
}
