:root {
  --stage: #0e0f12;
  --chrome: #16181c;
  --raised: #1f2228;
  --hover: #292d35;
  --line: #2d313a;
  --text: #ece9e2;
  --muted: #9b9da6;
  --accent: #4c9aff; /* the box, selection */
  --accent-ink: #06203f;
  --rec: #ee4b3f; /* recording, destructive */
  --ok: #46b784;
  --radius: 10px;
  --tap: 40px; /* minimum touch target */
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--stage);
  color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

[hidden] {
  display: none !important;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ───────────────────────────── top bar ───────────────────────────── */

.topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 48px;
  padding: 0 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.6;
}

.tabs {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs a:hover {
  color: var(--text);
}

.tabs a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.tab-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
}

main > section {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

/* ───────────────────────────── workspace ─────────────────────────── */

.workspace {
  position: relative;
  display: flex;
  overflow: hidden;
}

/* The manuscript list: a panel that slides in over the page from the left and
   out again (the Manuscripts button, a click outside it, or choosing a book). */
.sidebar {
  position: absolute;
  z-index: 20;
  top: 53px; /* below the toolbar, so its button stays in reach */
  bottom: 0;
  left: 0;
  width: 288px;
  overflow-y: auto;
  background: var(--chrome);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
  padding: 14px 10px 24px;
  padding-left: max(10px, env(safe-area-inset-left));
  transition: transform 0.2s ease, visibility 0.2s;
}

.workspace.sidebar-closed .sidebar {
  transform: translateX(-102%);
  visibility: hidden;
  box-shadow: none;
}

.btn-list[aria-expanded='true'] {
  background: var(--hover);
  border-color: var(--accent);
}

.sidebar h2 {
  margin: 0 8px 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.ms-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ms-list button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.ms-list button:hover {
  background: var(--raised);
}

.ms-list button[aria-current='true'] {
  background: var(--hover);
  box-shadow: inset 3px 0 0 var(--accent);
}

.ms-list .ms-name {
  display: block;
  font-weight: 600;
}

.ms-list .ms-sub {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--muted);
}

.stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 12px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}

.group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ms-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ms-title strong,
.ms-title span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ms-title span {
  font-size: 12.5px;
  color: var(--muted);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--raised);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: none;
}

.pager select {
  height: var(--tap);
  max-width: 210px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239b9da6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 10px center / 11px;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
}

.page-count {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: var(--hover);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #6aabff;
}

.btn-danger {
  color: #ff8a80;
}

.btn-draw[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ───────────────────────────── viewer ────────────────────────────── */

.viewer-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--stage);
  touch-action: none;
}

.osd,
.region-layer,
.draw-layer,
.viewer-status {
  position: absolute;
  inset: 0;
}

.region-layer {
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.viewer-status {
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(14, 15, 18, 0.86);
}

.viewer-status.is-loading {
  background: none;
  pointer-events: none;
  place-content: end center;
  padding-bottom: 28px;
}

.viewer-status.is-loading p {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(22, 24, 28, 0.9);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.viewer-status h3 {
  margin: 0;
  font-size: 18px;
}

.viewer-status p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.viewer-status a.btn {
  color: inherit;
  text-decoration: none;
}

.viewer-status .actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

/* draw mode */

.draw-layer {
  z-index: 3;
  cursor: crosshair;
  touch-action: none;
}

.draw-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.rubber {
  position: absolute;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* regions already saved for this page */

.saved-region {
  position: absolute;
  top: 0;
  left: 0;
  border: 1.5px dashed rgba(76, 154, 255, 0.85);
  border-radius: 1px;
}

.saved-region span {
  position: absolute;
  left: -1.5px;
  bottom: 100%;
  padding: 0 6px;
  background: rgba(76, 154, 255, 0.92);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 3px 3px 0 0;
  white-space: nowrap;
}

.saved-region.is-focus {
  border-style: solid;
  border-width: 2.5px;
  box-shadow: 0 0 0 4px rgba(76, 154, 255, 0.28);
}

/* the box being worked on */

.box {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 0 2px var(--accent), 0 6px 28px rgba(0, 0, 0, 0.35);
}

.box-fill,
.box-ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.box-fill {
  background: #fff;
}

.box-ink {
  touch-action: none;
  cursor: crosshair;
}

.box[data-state='recording'] {
  box-shadow: 0 0 0 2px var(--rec), 0 6px 28px rgba(0, 0, 0, 0.35);
}

.box[data-state='recording'] .box-ink {
  pointer-events: auto;
}

/* canvas that is filmed: white paper + ink. Kept in the page but out of sight. */
.box-film {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

/* pop-up under the box: record, transparency, pen */

.box-controls {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 29px;
  background: rgba(22, 24, 28, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  white-space: nowrap;
}

.box-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pen-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--raised);
  cursor: pointer;
}

.pen-btn:hover,
.pen-btn[aria-expanded='true'] {
  background: var(--hover);
}

.pen-btn[aria-expanded='true'] {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.pen-chip {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--raised);
  border-radius: 50%;
}

/* pen options */

.pen-panel {
  width: 100%;
  min-width: 340px;
  margin-top: 6px;
  padding: 12px 12px 8px;
  border-top: 1px solid var(--line);
  white-space: normal;
}

.pen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pen-head strong,
.pen-head span {
  display: block;
}

.pen-head span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12.5px;
}

.pen-reset {
  flex: none;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.pen-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 6px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--stage);
}

.seg button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.seg button[aria-pressed='true'] {
  background: var(--hover);
  color: var(--text);
}

.pen-sample {
  width: 132px;
  height: 60px;
  border-radius: 8px;
}

.pen-row {
  display: grid;
  grid-template-columns: 44px 1fr 48px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13.5px;
}

.pen-row input {
  width: 100%;
  height: 40px;
  margin: 0;
  accent-color: var(--accent);
  touch-action: none;
}

.pen-row output {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.inks {
  display: flex;
  gap: 10px;
}

.ink-swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid var(--chrome);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.ink-swatch[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--accent);
}

.pen-match {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  font-weight: 600;
  cursor: pointer;
}

.pen-match:hover {
  background: var(--hover);
}

.pen-match:disabled {
  color: var(--muted);
  cursor: progress;
}

.pen-note {
  margin: 8px 2px 2px;
  color: var(--ok);
  font-size: 13px;
}

.pen-note.is-error {
  color: #ff8a80;
}

.rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--raised);
  font-weight: 650;
  cursor: pointer;
}

.rec-btn:hover {
  background: var(--hover);
}

.rec-btn i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 3px rgba(238, 75, 63, 0.25);
}

.fill-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 10px 0 12px;
  color: var(--muted);
}

.fill-slider .swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
}

.fill-slider .swatch.solid {
  background: #fff;
  border-color: #fff;
}

.fill-slider input {
  width: 150px;
  height: 44px;
  margin: 0;
  accent-color: var(--accent);
  touch-action: none;
}

.box-controls .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
}

/* while recording: one round stop button on the box's top edge */

.box-stop {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.box-stop button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  pointer-events: auto;
}

.box-stop button::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #fff;
}

.box-stop time {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 24, 28, 0.92);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.box-stop time::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* nothing else reacts while the pen is recording */
body.is-recording .topbar,
body.is-recording .toolbar,
body.is-recording .sidebar {
  pointer-events: none;
  opacity: 0.45;
}

/* ───────────────────────────── review dialog ─────────────────────── */

.review {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--chrome);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.review::backdrop {
  background: rgba(8, 9, 11, 0.7);
}

.review h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.review-video {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--stage);
}

.review-video video {
  display: block;
  max-width: 100%;
  max-height: min(46dvh, 420px);
  border-radius: 4px;
  background: #fff;
}

.review-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 14px 0 0;
  font-size: 14px;
}

.review-meta dt {
  color: var(--muted);
}

.review-meta dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.review-error {
  margin: 12px 0 0;
  color: #ff8a80;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.review-actions .btn {
  min-height: 46px;
}

.review-actions .btn-primary {
  margin-left: auto;
}

/* ───────────────────────────── database ──────────────────────────── */

.database {
  display: flex;
  flex-direction: column;
  background: var(--stage);
}

.db-head {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 14px;
}

.db-head h1 {
  margin: 0;
  font-size: 22px;
}

.db-head p {
  margin: 2px 0 0;
  color: var(--muted);
}

.db-head select {
  height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
}

.db-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 24px 32px;
  -webkit-overflow-scrolling: touch;
}

.db-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.db-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  background: var(--stage);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.db-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.db-table .col-id {
  width: 44px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.media {
  display: grid;
  place-items: center;
  width: 232px;
  height: 148px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--chrome);
  border: 1px solid var(--line);
}

.media img,
.media video {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

a.media {
  cursor: zoom-in;
}

/* small areas are enlarged to fill the cell */
a.media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* the strokes thumbnail: click to play in a pop-up */

.media-play {
  position: relative;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.media-play img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(22, 24, 28, 0.78);
  color: #fff;
  transition: transform 0.12s, background 0.12s;
}

.play-badge svg {
  width: 26px;
  height: 26px;
  margin-left: 2px;
}

.media-play:hover .play-badge {
  transform: scale(1.08);
  background: var(--accent);
  color: var(--accent-ink);
}

/* ───────────────────────────── player pop-up ─────────────────────── */

.player {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 18px 22px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--chrome);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.player::backdrop {
  background: rgba(8, 9, 11, 0.74);
}

.player header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.player header strong,
.player header span {
  display: block;
}

.player header strong {
  font-size: 17px;
}

.player header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
}

.player-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.player-body.is-side {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}

.player figure {
  margin: 0;
}

.player video,
.player img {
  display: block;
  border-radius: 4px;
  background: #fff;
}

.player img {
  background: var(--stage);
}

.player figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player footer {
  margin-top: 8px;
}

.player footer .cell-link {
  margin-top: 0;
}

.media .placeholder {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.cell-title {
  font-weight: 600;
}

.cell-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
}

.cell-link {
  display: inline-block;
  margin-top: 8px;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cell-link:hover {
  text-decoration: underline;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.delete-btn.is-armed {
  width: auto;
  padding: 0 12px;
  background: var(--rec);
  color: #fff;
  font-weight: 650;
  white-space: nowrap;
}

.db-empty {
  margin: 56px auto;
  max-width: 440px;
  text-align: center;
  color: var(--muted);
}

.db-empty strong {
  color: var(--text);
  font-size: 17px;
}

/* ───────────────────────────── toast ─────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  top: 60px; /* up here it never covers the box or its controls */
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  font-weight: 550;
}

.toast.is-error {
  border-color: var(--rec);
}

.toast a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

/* ───────────────────────────── narrow screens ────────────────────── */

@media (max-width: 900px) {
  .btn-list span {
    display: none;
  }

  .btn-list {
    padding: 0 12px;
  }

  .ms-title span,
  .page-count {
    display: none;
  }

  .pager select {
    max-width: 130px;
  }

  .btn-draw span {
    display: none;
  }

  .btn-draw {
    padding: 0 12px;
  }
}
