/* 设计稿配色：暖白 + 橙色。颜色只在这里定义，组件一律引用变量。 */
:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --text: #2A2118;
  --text-2: #54483C;
  --muted: #6E6154;
  --border: #E8DFD3;
  --border-strong: #D6CABB;
  --row: #F1EAE0;
  --chip: #EADFCF;
  --chip-text: #3A2E22;
  --accent: #C2410C;
  --accent-strong: #9A3412;
  --accent-hover: #7C2D12;
  --accent-soft: #FDEBDD;
  --danger: #9F1239;
  --danger-border: #E7B3C0;
  --warn-bg: #FFF8DB;
  --warn-border: #D4A72C;
  --warn-text: #6B4E00;
  --switch-off: #8F8375;
  --player-bg: #1C1611;
  --player-accent: #FB923C;

  --radius: 12px;
  --radius-sm: 8px;
  --tap: 44px;
  --sidebar-w: 220px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent-strong); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 基础控件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.btn-danger { border-color: var(--danger); color: var(--danger); font-weight: 600; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-block { width: 100%; }
.btn-icon { width: var(--tap); padding: 0; border-color: transparent; background: transparent; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .error { font-size: 12px; color: var(--danger); font-weight: 600; }
.input {
  min-height: var(--tap); padding: 0 12px; width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface);
}
.input[aria-invalid="true"] { border-color: var(--danger); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--row); color: var(--text-2);
}
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); }
.dot { width: 8px; height: 8px; border-radius: 4px; background: currentColor; }

.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text);
}
.banner .btn { background: var(--warn-text); border-color: var(--warn-text); color: #fff; }

/* ---------- 登录页 ---------- */
.auth-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
}
.auth-card { width: 100%; max-width: 380px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; }

/* ---------- 应用外壳 ---------- */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  width: var(--sidebar-w); flex: none;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
}
.sidebar .brand { padding: 6px 10px 16px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 0 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
.nav-link:hover { background: var(--row); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.nav-link svg { flex: none; }
.sidebar-foot {
  margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.main { flex: 1 1 auto; min-width: 0; padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-head > h1 { flex: 1 1 200px; }
.tabbar { display: none; }
.mobile-head { display: none; }

@media (max-width: 767px) {
  .sidebar { display: none; }
  .shell { flex-direction: column; }
  .main { padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
  h1 { font-size: 22px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tab {
    flex: 1; min-height: 56px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    font-size: 11px; font-weight: 500; color: var(--text-2); text-decoration: none;
  }
  .tab[aria-current="page"] { color: var(--accent-strong); font-weight: 700; }
}

/* ---------- 筛选胶囊、开关、头像、分类标签 ---------- */
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pill {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 600; cursor: pointer;
}
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.switch {
  flex: none; width: 56px; height: var(--tap); padding: 0; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.switch .track { display: block; width: 46px; height: 26px; border-radius: 13px; position: relative; background: var(--switch-off); transition: background .15s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .knob { left: 23px; }
.switch:disabled { opacity: .5; cursor: wait; }

.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 20px;
  background: var(--chip); color: var(--chip-text);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.chip { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-soft); }
.chip-off { background: var(--surface); color: var(--muted); border: 1px dashed var(--border-strong); text-decoration: line-through; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.link-btn { border: 0; background: transparent; color: var(--accent-strong); font-weight: 600; font-size: 12px; padding: 4px 6px; cursor: pointer; min-height: 28px; }

/* ---------- 列表 ---------- */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--row); }
.list-row:first-child { border-top: 0; }
.list-row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-cats { flex: 2 1 320px; }
.search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 240px; max-width: 360px;
  min-height: var(--tap); padding: 0 12px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--muted);
}
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: var(--text); }

@media (max-width: 767px) {
  .chat-cats { display: none; }
  .search { max-width: none; flex-basis: 100%; }
  .list { border-radius: 10px; }
}

/* ---------- 对话框 ---------- */
dialog {
  border: 0; border-radius: var(--radius); padding: 0; width: min(440px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgba(42, 33, 24, .25);
}
dialog::backdrop { background: rgba(42, 33, 24, .35); }
.dialog-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 767px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .dialog-actions .btn { flex: 1; }
}
.check-row { display: flex; align-items: center; gap: 10px; min-height: var(--tap); }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }

/* ---------- 设置页 ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; }
.steps li { padding: 4px 10px; border-radius: 6px; background: var(--row); color: var(--text-2); }
.steps li.done { background: var(--accent-soft); color: var(--accent-strong); }
.steps li.current { background: var(--accent); color: #fff; }
.account { display: flex; align-items: center; gap: 12px; }
.account .avatar { width: 44px; height: 44px; border-radius: 22px; }
.status-ok { color: var(--accent-strong); background: var(--accent-soft); }

/* ---------- 下载队列 ---------- */
.q-card { padding: 14px 16px; gap: 10px; }
.q-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-failed { border-color: var(--danger-border); }
.progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress-fill { height: 8px; border-radius: 4px; background: var(--accent); width: 0; transition: width .4s; }
@media (max-width: 767px) {
  .q-actions { width: 100%; }
  .q-actions .btn { flex: 1; }
}

/* ---------- 文件管理 ---------- */
.files-layout { display: flex; gap: 16px; align-items: flex-start; }
.tree {
  flex: none; width: 260px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px;
}
.tree-title { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 8px 8px; }
.tree-row {
  display: flex; align-items: center; gap: 4px; width: 100%; min-height: 34px; padding: 0 8px 0 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-weight: 500; text-align: left; cursor: pointer;
  text-decoration: none;
}
.tree-row:hover { background: var(--row); color: var(--text); }
.tree-row[aria-current="true"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.tree-row .twisty { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: transform .15s; }
.tree-row .twisty[data-open="true"] { transform: rotate(90deg); }
.tree-row .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row .count { font-size: 12px; color: var(--muted); font-weight: 400; }
.files-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; padding: 2px 4px; border-radius: 4px; }
.crumbs a:hover { background: var(--row); color: var(--text); }
.crumbs .here { color: var(--text); font-weight: 600; padding: 2px 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.select {
  min-height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
.batchbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px;
  background: var(--accent-soft); border-radius: 10px; position: sticky; top: 8px; z-index: 5;
}
.batchbar .count { font-weight: 600; color: var(--accent-strong); flex: 1 1 100px; }
.batchbar .btn { min-height: 36px; }

.frow {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 80px 90px 110px auto; gap: 8px; align-items: center;
  padding: 6px 12px; border-top: 1px solid var(--row); min-height: 52px;
}
.frow:first-child { border-top: 0; }
.frow.head { min-height: 40px; font-size: 12px; font-weight: 600; color: var(--muted); background: transparent; }
.frow input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.frow .fname { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; color: var(--text); }
.frow .fname .ficon { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--row); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.frow .fname .ftext { min-width: 0; display: flex; flex-direction: column; }
.frow .fname .ftitle { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .fname:hover .ftitle { color: var(--accent-strong); }
.frow .fmeta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .cell { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.frow .actions { display: flex; gap: 2px; justify-content: flex-end; }
.frow .actions .btn-icon { width: 36px; min-height: 36px; color: var(--text-2); }
.frow .actions .btn-icon:hover { color: var(--accent-strong); background: var(--row); }
.frow.selected { background: #FFF7F0; }
.frow.missing .ftitle { color: var(--muted); text-decoration: line-through; }
.mobile-only { display: none !important; }
.folder-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--row); text-decoration: none; color: var(--text); min-height: 56px; }
.folder-row:first-child { border-top: 0; }
.folder-row .ficon { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; }

@media (max-width: 1023px) {
  .tree { display: none; }
  .frow { grid-template-columns: 32px minmax(0, 1fr) 90px auto; }
  .frow .c-cat, .frow .c-time { display: none; }
}
@media (max-width: 767px) {
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }
  .frow { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 4px 6px 12px; }
  .frow.selecting { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .frow .c-check { display: none; }
  .frow.selecting .c-check { display: block; }
  .frow .c-size, .frow .actions .a-desktop { display: none; }
  .frow.head { display: none; }
}

/* 预览与菜单 */
.preview-dialog { width: min(1100px, calc(100vw - 32px)); background: var(--player-bg); color: #F1F3F5; }
.preview-dialog .dialog-body { padding: 12px; }
.preview-media { width: 100%; max-height: 75vh; display: block; margin: 0 auto; background: #000; border-radius: 8px; object-fit: contain; }
.preview-head { display: flex; align-items: center; gap: 8px; }
.preview-head .title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-head .btn-icon { color: #F1F3F5; }
.menu-list { display: flex; flex-direction: column; }
.menu-item {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; border: 0; background: transparent;
  color: var(--text); font-weight: 500; text-align: left; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.menu-item:hover { background: var(--row); }
.menu-item.danger { color: var(--danger); }
.kv { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

/* ---------- 缩略图 ---------- */
.frow .fname .ficon { overflow: hidden; }
.frow .fname .ficon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 视频播放页 ---------- */
.player-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.player-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.player-stage { position: relative; background: var(--player-bg); border-radius: var(--radius); overflow: hidden; }
.player-video { width: 100%; max-height: 72vh; display: block; background: #000; aspect-ratio: 16 / 9; }
.player-notice, .player-resume {
  position: absolute; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 8px;
  background: rgba(28, 22, 17, .85); color: #F1F3F5; font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.player-notice { top: 50%; transform: translate(-50%, -50%); text-align: center; max-width: 80%; }
.player-resume { bottom: 64px; }
.player-resume .link-btn { color: var(--player-accent); }
.player-title { font-size: 20px; word-break: break-all; }
.player-queue {
  flex: 1 1 300px; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; max-height: 80vh; overflow-y: auto;
}
.pq-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--row); text-decoration: none; color: var(--text); }
.pq-item:hover { background: var(--row); }
.pq-item.current { background: var(--accent-soft); }
.pq-thumb { position: relative; flex: none; width: 80px; height: 48px; border-radius: 6px; background: var(--chip-text); overflow: hidden; }
.pq-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pq-dur { position: absolute; right: 4px; bottom: 3px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); padding: 0 4px; border-radius: 3px; }
.pq-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pq-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  .player-queue { max-width: none; max-height: none; }
  .player-video { max-height: none; }
}

/* ---------- 音频播放条 ---------- */
.audiobar {
  position: fixed; left: var(--sidebar-w); right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 6px 14px; padding: 8px 20px;
  background: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: 0 -4px 16px rgba(42, 33, 24, .06);
}
body.has-audiobar .main { padding-bottom: 96px; }
.ab-cover { flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--chip); color: var(--chip-text); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ab-cover img { width: 100%; height: 100%; object-fit: cover; }
.ab-info { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; border: 0; background: transparent; padding: 0; text-align: left; color: var(--text); cursor: pointer; }
.ab-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-controls { display: flex; align-items: center; }
.ab-play { width: var(--tap); height: var(--tap); border: 0; border-radius: 22px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ab-play:hover { background: var(--accent-strong); }
.ab-progress { flex: 2 1 220px; display: flex; align-items: center; gap: 10px; }
.ab-time { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ab-seek { flex: 1; accent-color: var(--accent); }
.ab-text { min-height: 36px; padding: 0 8px; font-weight: 600; }
@media (max-width: 1023px) { .ab-text { display: none; } }
@media (max-width: 767px) {
  .audiobar { left: 0; bottom: calc(57px + env(safe-area-inset-bottom)); padding: 6px 8px 6px 12px; gap: 8px; flex-wrap: nowrap; }
  .ab-progress, .audiobar .ab-controls .btn-icon:first-child { display: none; }
  body.has-audiobar .main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* ---------- 提示 ---------- */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: calc(100vw - 32px);
}
@media (max-width: 767px) { #toast { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.toast {
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(42, 33, 24, .2); font-weight: 500;
}
.toast-error { background: var(--danger); }

.empty {
  padding: 48px 16px; text-align: center; color: var(--muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface);
}
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
