:root {
  --bg: #0f1220;
  --bg-2: #171b2e;
  --panel: #1d2238;
  --panel-2: #252b47;
  --border: #2e3556;
  --text: #e9ecff;
  --muted: #9aa3c7;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --danger: #ff5c7c;
  --ok: #34d399;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, #241a4d 0%, transparent 55%),
              radial-gradient(1000px 700px at 110% 10%, #0c3b4d 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 20px clamp(14px, 4vw, 32px); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px clamp(14px, 4vw, 32px);
  border-bottom: 1px solid var(--border);
  background: rgba(15,18,32,.72); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .3px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 16px;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.settings-menu { position: relative; }
.settings-toggle { width: 42px; height: 42px; justify-content: center; font-size: 18px; }
.settings-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(29, 34, 56, .98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 80;
}
.settings-menu.open .settings-dropdown { display: block; }
.settings-item {
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.settings-item:hover { background: var(--panel-2); }
.settings-item.danger { color: var(--danger); }
.settings-item.danger:hover { background: rgba(255,92,124,.12); }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 1px solid var(--border); cursor: pointer;
  background: var(--panel-2); color: var(--text);
  padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: #40497a; }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #5b7cff); border: none; }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(124,92,255,.4); }
.btn-danger { background: transparent; border-color: rgba(255,92,124,.5); color: var(--danger); }
.btn-danger:hover { background: rgba(255,92,124,.12); }
.btn-ghost { background: transparent; }
.btn-icon { padding: 10px; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }

/* ---------- Panels / cards ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Forms ---------- */
label.field-label { display:block; font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
input[type="text"], input[type="password"], input[type="number"] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font-size: 15px; outline: none; transition: .15s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
input[type="number"] { -moz-appearance: textfield; }

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-card {
  flex: 1 1 220px; border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  cursor: pointer; background: var(--bg-2); transition: .15s; position: relative;
}
.radio-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.18); background: var(--panel-2); }
.radio-card h4 { margin: 0 0 4px; font-size: 14px; }
.radio-card p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; padding: 30px; }
.auth-card h1 { margin: 6px 0 4px; font-size: 24px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-card .form-row { margin-bottom: 16px; }
.auth-logo { width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display:grid; place-items:center; font-size: 28px; margin-bottom: 14px; }
.error-msg { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 6px; }

/* ---------- Home grid / list ---------- */
.page-head { display:flex; align-items:center; justify-content: space-between; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(20px, 4vw, 26px); margin: 0; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: rgba(29,34,56,.72); }
.view-btn { width: 36px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; font-weight: 800; transition: .16s ease; }
.view-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.view-btn.active { color: #fff; background: linear-gradient(135deg, var(--accent), #5b7cff); box-shadow: 0 8px 18px rgba(124,92,255,.28); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.score-card { min-height: 230px; padding: 0 20px 72px; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; position: relative; overflow: hidden; border-radius: 20px; }
.score-card::before { content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(124,92,255,.14), rgba(34,211,238,.05) 42%, transparent 70%); opacity: 0; transition: .18s; }
.score-cover { position: relative; height: 128px; margin: 0 -20px 18px; background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(34,211,238,.08)); overflow: hidden; }
.score-cover img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.score-cover.placeholder { display: grid; place-items: center; color: var(--muted); font-size: 36px; }
.score-card:hover { transform: translateY(-3px); border-color: #465184; box-shadow: 0 16px 38px rgba(0,0,0,.42); }
.score-card:hover::before { opacity: 1; }
.score-card .sc-name { font-size: 19px; font-weight: 800; line-height: 1.35; margin: 0 0 18px; padding-right: 88px; position: relative; letter-spacing: .1px; }
.score-card .sc-meta, .sr-meta { display:flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.score-card .sc-meta { margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; font-size: 12px; font-weight: 650; line-height: 1; padding: 6px 10px; border-radius: 999px; background: rgba(37,43,71,.86); border: 1px solid var(--border); color: var(--muted); }
.badge.accent { color: var(--accent-2); border-color: rgba(34,211,238,.38); background: rgba(34,211,238,.08); }
.sc-owner-badge { color: #b9c1e4; }
.score-card .sc-time, .score-row .sc-time { font-size: 12.5px; color: rgba(154,163,199,.72); position: relative; }
.score-card .sc-del { position: absolute; top: 12px; right: 12px; z-index: 2; opacity: 0; }
.score-card:hover .sc-del { opacity: 1; }
.score-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: rgba(29,34,56,.58); box-shadow: var(--shadow); }
.score-row { position: relative; display: flex; align-items: center; gap: 18px; min-height: 92px; padding: 18px 18px 18px 20px; cursor: pointer; border-bottom: 1px solid rgba(46,53,86,.78); transition: background .16s ease, border-color .16s ease; }
.score-row:last-child { border-bottom: 0; }
.score-row:hover { background: rgba(37,43,71,.72); }
.sr-main { flex: 1 1 auto; min-width: 0; }
.sr-name { margin-bottom: 10px; font-size: 18px; line-height: 1.35; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-side { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.score-row .sc-actions { position: static; display: flex; gap: 8px; opacity: 1; }
.score-row.selected { background: rgba(34,211,238,.08); box-shadow: inset 3px 0 0 rgba(34,211,238,.75); }
.score-list.batch-mode .score-row { padding-left: 58px; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 46px; margin-bottom: 12px; }

/* ---------- New score: pages list ---------- */
.dropzone {
  border: 2px dashed var(--border); border-radius: 14px; padding: 26px; text-align: center;
  cursor: pointer; transition: .15s; background: var(--bg-2);
}
.dropzone.drag { border-color: var(--accent); background: var(--panel-2); }
.dropzone .dz-icon { font-size: 32px; margin-bottom: 8px; }

.pages-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.page-item {
  display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-2);
}
.page-item.dragging { opacity: .5; }
.page-item .drag-handle { cursor: grab; color: var(--muted); font-size: 20px; padding: 0 4px; touch-action: none; }
.page-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.page-item .pi-body { flex: 1; min-width: 0; }
.page-item .pi-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.page-item .pi-turn { display: flex; align-items: center; gap: 8px; }
.page-item .pi-turn label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.page-item .pi-turn input { width: 100px; padding: 7px 10px; }
.page-item .pi-idx { font-weight: 700; color: var(--accent-2); font-size: 13px; width: 22px; text-align:center; }

/* ---------- Trim / media ---------- */
.media-box { margin-top: 12px; }
.media-preview { width: 100%; border-radius: 12px; margin-top: 10px; background: #000; }
audio.media-preview { background: transparent; }
.trim-row { display:flex; align-items:center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.trim-slider { position: relative; height: 40px; flex: 1 1 260px; min-width: 220px; }
.trim-track { position:absolute; top: 50%; left:0; right:0; height: 6px; transform: translateY(-50%); background: var(--panel-2); border-radius: 999px; }
.trim-range { position:absolute; top: 50%; height: 6px; transform: translateY(-50%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.trim-slider input[type=range] { position: absolute; top:0; left:0; width:100%; height: 40px; margin:0; background: transparent; pointer-events: none; -webkit-appearance:none; appearance:none; }
.trim-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; pointer-events:auto; width: 20px; height:20px; border-radius:50%; background:#fff; border: 3px solid var(--accent); cursor:pointer; box-shadow: var(--shadow); }
.trim-slider input[type=range]::-moz-range-thumb { pointer-events:auto; width:18px; height:18px; border-radius:50%; background:#fff; border:3px solid var(--accent); cursor:pointer; }
.chk { display:flex; align-items:center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; user-select:none; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999; display:flex; flex-direction: column; gap:8px; }
.toast { padding: 12px 18px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px; animation: pop .2s ease; }
.toast.err { border-color: rgba(255,92,124,.5); color: var(--danger); }
.toast.ok { border-color: rgba(52,211,153,.5); color: var(--ok); }
@keyframes pop { from { opacity:0; transform: translateY(-8px);} to {opacity:1; transform: translateY(0);} }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius:50%; animation: spin .7s linear infinite; display:inline-block; }
.sk { height: 14px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.16), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; margin-bottom: 12px; }
.sk-title { height: 22px; width: 72%; }
.sk-line { width: 58%; }
.sk-line.short { width: 36%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg);} }

.stack > * + * { margin-top: 18px; }
.form-actions { display:flex; gap: 12px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Player (vertical side bars) ---------- */
.player-root { position: fixed; inset: 0; background: #05060c; overflow: hidden; }
.player-body { position: absolute; inset: 0; display: flex; flex-direction: row; }
.stage { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; align-items: center; overflow: hidden; position: relative; }
.page-loading { position: absolute; inset: 0; display: none; place-items: center; background: rgba(5,6,12,.18); z-index: 7; pointer-events: none; }
.page-loading.show { display: grid; }
.mini-progress { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); height: 5px; border-radius: 999px; background: rgba(255,255,255,.18); z-index: 10001; cursor: pointer; overflow: hidden; backdrop-filter: blur(6px); touch-action: none; }
.mini-progress-fill { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px rgba(34,211,238,.45); }
.stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.stage.scroll-mode { align-items: flex-start; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.stage.scroll-mode img { width: 100%; height: auto; max-width: 100%; max-height: none; object-fit: contain; touch-action: pan-y; }
.stage.scroll-mode #pageImg { touch-action: pan-y; }
.seek-preview {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(420px, calc(100% - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(10,12,22,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  z-index: 15;
}
.seek-preview.show { opacity: 1; transform: translate(-50%, 0); }
.seek-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.seek-preview-head strong { color: var(--accent-2); font-size: 18px; }
.seek-preview-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.seek-preview-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.side-bar {
  flex-shrink: 0; width: 88px; display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 14px 8px; background: rgba(10,12,22,.82); backdrop-filter: blur(8px);
  z-index: 20; transition: opacity .3s, width .3s, padding .3s; overflow: hidden;
}
.side-bar.left { border-right: 1px solid var(--border); }
.side-bar.right { border-left: 1px solid var(--border); }
.side-bar.player-hidden { opacity: 0; width: 0; padding: 0; pointer-events: none; border: none; }

.bar-title { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; max-height: 46px; overflow: hidden; }
.bar-spacer { flex: 1 1 auto; }
.page-ind-v { font-size: 12px; color: var(--accent-2); font-weight: 700; text-align: center; white-space: nowrap; }

.play-btn { width: 56px; height: 56px; border-radius: 50%; font-size: 24px; background: linear-gradient(135deg, var(--accent), #5b7cff); border: none; color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.play-btn:hover { box-shadow: 0 8px 22px rgba(124,92,255,.45); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 17px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.round-btn:hover { border-color: var(--accent); }
.round-btn.active { background: rgba(52,211,153,.2); border-color: var(--ok); color: var(--ok); }
.round-btn.sm { width: 34px; height: 34px; font-size: 15px; }

/* vertical progress */
.vprogress-wrap { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 90px; width: 100%; }
.vtime { font-size: 10.5px; color: var(--muted); }
.vprogress { position: relative; flex: 1 1 auto; width: 8px; background: var(--panel-2); border-radius: 999px; cursor: pointer; min-height: 60px; }
.vprogress-played { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, var(--accent), var(--accent-2)); border-radius: 999px; height: 0; }
.vprogress-ab { position: absolute; left: 0; right: 0; background: rgba(52,211,153,.35); }
.vmarker { position: absolute; left: -3px; right: -3px; height: 3px; background: var(--ok); border-radius: 2px; }

/* speed & A-B vertical groups */
.speed-v, .ab-v { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.speed-v .speed-val { font-weight: 700; font-size: 13px; color: var(--accent-2); min-width: 40px; text-align: center; }
.speed-v .lbl, .ab-v .lbl { font-size: 10.5px; color: var(--muted); }
.countdown-pill { font-size: 11px; color: var(--accent-2); background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3); padding: 5px 7px; border-radius: 10px; text-align: center; }

.player-hidden { opacity: 0; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .side-bar { width: 64px; padding: 10px 5px; gap: 9px; }
  .play-btn { width: 48px; height: 48px; font-size: 21px; }
  .round-btn { width: 40px; height: 40px; font-size: 16px; }
  .round-btn.sm { width: 32px; height: 32px; font-size: 14px; }
  .bar-title { display: none; }
  .page-item img { width: 46px; height: 46px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; justify-content: center; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .score-card { min-height: 144px; padding: 20px 16px 66px; }
  .score-card .sc-name { padding-right: 0; font-size: 17px; }
  .score-card .sc-actions { left: 16px; right: 16px; bottom: 16px; opacity: 1; transform: none; flex-wrap: wrap; }
  .score-row { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px; }
  .score-list.batch-mode .score-row { padding-left: 54px; }
  .sr-side { width: 100%; align-items: flex-start; flex-direction: column; gap: 10px; }
  .score-row .sc-actions { flex-wrap: wrap; }
}

/* ---------- Image crop modal ---------- */
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 6, 12, .78);
  backdrop-filter: blur(8px);
}
.crop-dialog {
  width: min(960px, 100%);
  max-height: min(90vh, calc(100vh - 36px));
  max-height: min(90dvh, calc(100dvh - 36px));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.crop-head { display: flex; justify-content: space-between; gap: 12px; flex: 0 0 auto; }
.crop-stage {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(90vh - 148px);
  max-height: calc(90dvh - 148px);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #10131f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.crop-stage .cropper-container { max-width: 100%; max-height: 100%; }
.crop-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; flex: 0 0 auto; }
.cropper-view-box, .cropper-face { border-radius: 4px; }

@media (max-width: 640px) {
  .crop-modal { padding: 12px; }
  .crop-dialog { padding: 14px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .crop-stage { max-height: calc(100vh - 166px); max-height: calc(100dvh - 166px); }
  .crop-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Home batch actions ---------- */
.batch-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 18px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.batch-count { color: var(--accent-2); font-size: 14px; font-weight: 700; }
.batch-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid.batch-mode .score-card { padding-left: 54px; }
.grid.batch-mode .score-card:hover { transform: none; }
.grid.batch-mode .score-card .sc-actions { display: none; }
.score-card.selected { border-color: rgba(34,211,238,.7); box-shadow: 0 0 0 3px rgba(34,211,238,.12), var(--shadow); }
.batch-check {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(15,18,32,.82);
  border: 1px solid var(--border);
  cursor: pointer;
}
.batch-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

@media (max-width: 640px) {
  .batch-toolbar { align-items: stretch; }
  .batch-actions .btn { flex: 1; justify-content: center; }
}
