/* ────────────────────────────────────────────────────────────
   识字台 — 印刷校样台
   暖纸、浓墨、朱红印章；中间一块深色看片台。
   ──────────────────────────────────────────────────────────── */

:root {
  /* 颜色 */
  --paper:      #f1ebdf;
  --paper-hi:   #fbf8f1;
  --ink:        #1d1a15;
  --ink-2:      #5e5749;
  --ink-3:      #8b8474;
  --rule:       #d7cdb9;
  --seal:       #a4382a;   /* 朱红：只给动作和印章 */
  --seal-deep:  #8b2c21;
  --amber:      #b4740a;   /* 低置信度 */
  --stage:      #171a1d;
  --stage-2:    #20252a;
  --ok:         #2f6b4f;

  /* 字体 */
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans:  "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono:  "Iosevka", "Cascadia Mono", "Consolas", "SF Mono", ui-monospace, monospace;

  /* 间距（4 的倍数） */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px;

  --r-sm: 3px;
  --r-md: 6px;

  color-scheme: light;
  accent-color: var(--seal);
}

* { box-sizing: border-box; }

/* 类选择器里的 display 会盖掉 UA 的 [hidden]{display:none}，这里显式收回来 */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* 极淡的纸纹：两层斜向细线，不抢内容 */
  background-image:
    repeating-linear-gradient(115deg, rgba(120,105,80,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(25deg, rgba(120,105,80,.025) 0 1px, transparent 1px 4px);
}

.sprite { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.ico    { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }

.amber { color: var(--amber); }
.link  { color: var(--seal); text-decoration: underline; text-underline-offset: 2px; }
kbd {
  font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--rule); border-bottom-width: 2px;
  border-radius: var(--r-sm); padding: 0 4px; background: var(--paper-hi);
  color: var(--ink-2);
}

/* ── 顶栏 ──────────────────────────────────────────────── */

.topbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s5);
  padding: var(--s3) var(--s6);
  border-bottom: 2px solid var(--ink);
  flex: 0 0 auto;
}

.brand { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }

.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  position: relative;
  padding-right: 62px;
}
/* 朱红印章：全页唯一的“装饰”，但它承担了品牌 */
.brand h1::after {
  content: "校";
  position: absolute; right: 0; top: 50%;
  translate: 0 -52%;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  font-size: 20px; font-weight: 700; letter-spacing: 0;
  line-height: 1;
  color: #fdf6ec;
  background: var(--seal);
  border-radius: 2px;
  rotate: -3.5deg;
  /* 双线内框，像真的钤印 */
  box-shadow: inset 0 0 0 1.5px var(--seal), inset 0 0 0 3px rgba(253,246,236,.55);
}

.brand-sub {
  margin: 0;
  font-size: 13px; color: var(--ink-2);
  border-left: 1px solid var(--rule);
  padding-left: var(--s4);
  max-width: 46ch;
}

.engine {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 13px; color: var(--ink-2);
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-hi);
  white-space: nowrap;
}
.engine-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(139,132,116,.16);
}
.engine[data-state="loading"] .engine-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(180,116,10,.18); animation: pulse 1.2s ease-in-out infinite; }
.engine[data-state="ready"]   .engine-dot { background: var(--ok);    box-shadow: 0 0 0 3px rgba(47,107,79,.16); }
.engine[data-state="error"]   .engine-dot { background: var(--seal);  box-shadow: 0 0 0 3px rgba(164,56,42,.18); }

@keyframes pulse { 50% { opacity: .35; } }

/* ── 工作区 ────────────────────────────────────────────── */

.workspace {
  display: grid;
  /* 三栏宽度随视口伸缩：左栏 260–320，右栏 340–560，中间吃掉剩下的 */
  grid-template-columns:
    clamp(260px, 20vw, 320px)
    minmax(0, 1fr)
    clamp(340px, 30vw, 560px);
  /* 高度由 flex 撑满剩余空间，不写死，矮窗口也不会被裁 */
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.rail {
  border-right: 1px solid var(--rule);
  padding: var(--s4) var(--s4) 0;
  display: flex; flex-direction: column;
  min-height: 0;
  overflow-y: auto;          /* 挤的时候整条左栏一起滚，谁也不压谁 */
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

/* ── 投放区 ────────────────────────────────────────────── */

.drop {
  border: 1.5px dashed var(--ink-3);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s4);
  text-align: center;
  color: var(--ink-2);
  background: var(--paper-hi);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
  margin-bottom: var(--s3);
  flex: 0 0 auto;            /* 左栏变挤时不许把投放区压扁 */
}
.drop:hover { border-color: var(--seal); color: var(--ink); }
.drop:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.drop.is-over {
  border-color: var(--seal); border-style: solid;
  background: #fdf1ea;
  transform: scale(.995);
}
.drop .ico { display: block; margin: 0 auto var(--s1); color: var(--seal); }
.drop-title { margin: 0 0 2px; font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: .06em; }
.drop-sub   { margin: 0; font-size: 12.5px; line-height: 1.7; }
.link-btn {
  font: inherit; font-size: inherit;
  background: none; border: 0; padding: 0;
  color: var(--seal);
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
.link-btn:hover { color: var(--seal-deep); }
.link-btn:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; border-radius: 2px; }

/* ── 设置面板 ──────────────────────────────────────────── */

.panel { border: 0; border-top: 1px solid var(--rule); min-height: 0; flex: 0 0 auto; }
.panel summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s2) 2px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 14px; letter-spacing: .18em;
  color: var(--ink-2);
  min-height: 38px;
}
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after {
  content: "+";
  font-family: var(--mono); font-size: 15px; color: var(--ink-3);
  translate: 0 -1px;
}
.panel[open] summary::after { content: "−"; }
.panel summary:hover { color: var(--ink); }
.panel summary:focus-visible { outline: 2px solid var(--seal); outline-offset: -2px; }

.panel-body { display: grid; gap: var(--s2) var(--s3); padding-bottom: var(--s3); }
.field { display: grid; gap: 5px; }
.field-label {
  font-size: 12px; letter-spacing: .06em; color: var(--ink-2);
  display: flex; align-items: baseline; gap: var(--s2);
  justify-content: space-between;
}
.hint { font-style: normal; font-size: 11px; color: var(--ink-3); letter-spacing: 0; }

select, input[type="text"] {
  width: 100%;
  font: inherit; font-size: 13.5px;
  color: var(--ink);
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 7px 9px;
  min-height: 36px;
}
select { appearance: none; padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select:hover, input[type="text"]:hover { border-color: var(--ink-3); }
select:focus-visible, input[type="text"]:focus-visible {
  outline: 2px solid var(--seal); outline-offset: 1px; border-color: var(--seal);
}

.checks { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.checks legend { padding: 0; margin-bottom: 6px; }
.check {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 13.5px; color: var(--ink-2);
  min-height: 28px; cursor: pointer;
}
.check input { width: 16px; height: 16px; margin: 0; }
.check:hover { color: var(--ink); }

.range-row { display: grid; gap: 4px; padding-left: 24px; }
.range-row input[type="range"] { width: 100%; }

/* ── 队列 ──────────────────────────────────────────────── */

.queue-block {
  border-top: 1px solid var(--rule);
  margin-top: var(--s4);
  padding: var(--s3) 0 var(--s4);
  display: flex; flex-direction: column;
  min-height: 0;
  flex: 0 0 auto;            /* 不跟设置抢高度：内容多就一起滚 */
}
.queue-head { display: flex; align-items: center; justify-content: space-between; }
.queue-head h2 {
  margin: 0; font-family: var(--serif); font-size: 14px;
  letter-spacing: .18em; color: var(--ink-2); font-weight: 600;
}
.count {
  font-family: var(--mono); font-size: 11px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 0 6px; margin-left: 4px;
  vertical-align: 1px;
}

.queue {
  list-style: none; margin: var(--s2) 0 0; padding: 0;
  display: grid; gap: 2px;
  align-content: start;
}
.queue-empty { font-size: 12.5px; color: var(--ink-3); margin: var(--s2) 0 0; line-height: 1.7; }

.q-item {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center; gap: var(--s2);
  padding: 6px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  text-align: left; font: inherit; color: inherit; width: 100%;
}
.q-item:hover { background: var(--paper-hi); border-color: var(--rule); }
.q-item[aria-current="true"] {
  background: var(--paper-hi); border-color: var(--ink);
  box-shadow: 2px 2px 0 rgba(29,26,21,.10);
}
.q-item:focus-visible { outline: 2px solid var(--seal); outline-offset: 1px; }

.q-thumb {
  width: 34px; height: 34px; object-fit: cover;
  border-radius: 2px; background: var(--stage-2);
  border: 1px solid var(--rule);
}
.q-name {
  font-size: 12.5px; color: var(--ink); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.q-sub { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); line-height: 1.3; }
.q-mid { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.q-state {
  font-size: 10.5px; letter-spacing: .04em;
  padding: 1px 5px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink-3);
  white-space: nowrap;
}
.q-state[data-s="done"]    { color: var(--ok); border-color: #b9cfc1; background: #eef4ef; }
.q-state[data-s="run"]     { color: var(--seal); border-color: #e3c2bb; background: #fbeeea; }
.q-state[data-s="error"]   { color: #fff; background: var(--seal); border-color: var(--seal); }

/* ── 中间：看片台 ───────────────────────────────────────── */

.stage-wrap {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--stage);
  color: #e8e4da;
}
.stage-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.stage-title {
  font-family: var(--serif); font-size: 14px; letter-spacing: .1em;
  color: #cfc9bd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stage-tools { display: flex; gap: var(--s2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12px;
  padding: 5px 10px; min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: transparent; color: #cfc9bd;
  cursor: pointer;
}
.chip:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.chip[aria-pressed="true"] { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.chip:focus-visible { outline: 2px solid #f0c68a; outline-offset: 2px; }
.chip:disabled { opacity: .4; cursor: not-allowed; }

.stage {
  flex: 1;
  min-height: 0;
  display: grid; place-items: center;
  padding: var(--s5);
  overflow: auto;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
}

.stage-empty {
  max-width: 40ch; text-align: center; color: #9aa0a6;
  font-size: 13px; line-height: 1.9;
}
.stage-empty .ico-lg { color: #565d64; margin-bottom: var(--s2); }
.stage-empty p { margin: 0; }

/* 只按宽度缩放：overlay 用 100%/100% 叠在上面时才和图片严丝合缝。
   图太高就让 .stage 自己滚，不做 letterbox。 */
.stage-inner { position: relative; line-height: 0; max-width: 100%; }
.stage-inner canvas {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}
#overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  box-shadow: none; pointer-events: none;
  border-radius: 2px;
}

.stage-foot {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  flex-wrap: wrap;
}
/* 原生 <progress>，完全自绘：静默禁用默认样式后按轨道/填充分别上色 */
progress {
  appearance: none;
  border: 0 solid;
  overflow: clip;
  flex: 1 1 140px;
  min-width: 90px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  /* 让不确定态的光段按轨道宽度定位 */
  container-type: inline-size;
  --progress-bar-radius: 999px;
  --progress-bar-indeterminate-size: 28%;
  --progress-bar-indeterminate-animation-duration: 1.4s;
}
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value {
  background: #f0c68a;
  border-radius: var(--progress-bar-radius);
  transition: inline-size .3s ease;
  animation: var(--progress-bar-animation, revert-rule);
}
progress::-moz-progress-bar {
  background: #f0c68a;
  border-radius: var(--progress-bar-radius);
  transition: inline-size .3s ease;
  animation: var(--progress-bar-animation, revert-rule);
}
progress:indeterminate {
  --progress-bar-animation: progress-bar-indeterminate
    var(--progress-bar-indeterminate-animation-duration) infinite linear;
}
@keyframes progress-bar-indeterminate {
  from, to {
    inline-size: var(--progress-bar-indeterminate-size);
    margin-right: auto; /* 固定在物理左侧，RTL 也不会跑偏 */
  }
  from { translate: -100%; }
  to   { translate: 100cqi; }
}
.stage-status {
  font-size: 12px; color: #b6b1a7;
  font-family: var(--mono);
  min-width: 8ch;
  flex: 0 1 auto;
}
.stage-actions { display: flex; gap: var(--s2); margin-left: auto; }

/* ── 按钮 ──────────────────────────────────────────────── */

.primary, .ghost, .ghost-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 13.5px;
  min-height: 38px; padding: 0 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, translate .08s;
  white-space: nowrap;
}
.primary {
  background: var(--seal); color: #fdf6ec;
  border-color: var(--seal);
  letter-spacing: .04em;
}
.primary:hover:not(:disabled) { background: var(--seal-deep); border-color: var(--seal-deep); }
.primary:active:not(:disabled) { translate: 0 1px; }
.primary:disabled { background: #64524d; border-color: #64524d; color: #b9b1ab; cursor: not-allowed; }

.ghost {
  background: transparent; color: #ddd8cd;
  border-color: rgba(255,255,255,.28);
}
.ghost:hover:not(:disabled) { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }
.ghost:disabled { opacity: .45; cursor: not-allowed; }

.ghost-sm {
  min-height: 30px; padding: 0 10px;
  font-size: 12.5px;
  background: transparent; color: var(--ink-2);
  border-color: var(--rule);
}
.ghost-sm:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-3); background: var(--paper-hi); }
.ghost-sm:disabled { opacity: .45; cursor: not-allowed; }

.primary:focus-visible, .ghost:focus-visible, .ghost-sm:focus-visible,
.q-item:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--seal); outline-offset: 2px;
}
.stage .ghost:focus-visible, .stage-bar .chip:focus-visible { outline-color: #f0c68a; }

/* ── 右栏：稿纸 ────────────────────────────────────────── */

.sheet {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--rule);
  background: var(--paper-hi);
  min-width: 0; min-height: 0;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--rule);
}
.sheet-head h2 {
  margin: 0; font-family: var(--serif);
  font-size: 15px; letter-spacing: .16em; font-weight: 600;
}
.sheet-actions { display: flex; gap: 6px; }

.sheet-meta {
  display: flex; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s2) var(--s4);
  font-size: 11.5px; color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
}
.sheet-meta b { color: var(--ink-2); font-weight: 600; }

#out {
  flex: 1; min-height: 0; width: 100%;
  border: 0; outline-offset: -2px;
  padding: var(--s4) var(--s4) 0;
  resize: none;
  font-family: var(--mono);
  font-size: 13.5px; line-height: 1.95;
  color: var(--ink);
  background:
    repeating-linear-gradient(transparent 0 27px, var(--rule) 27px calc(27px + 1px));
  background-attachment: local;
}
#out::placeholder { color: var(--ink-3); font-family: var(--sans); }
#out:focus-visible { outline: 2px solid var(--seal); }
#out:disabled { opacity: .6; }

.sheet-foot { padding: var(--s2) var(--s4); border-top: 1px solid var(--rule); }
.sheet-foot .ghost-sm { width: 100%; }

.sheet-empty {
  margin: 0; padding: 0 var(--s4) var(--s3);
  font-size: 12.5px; color: var(--ink-3);
}

/* ── Toast ─────────────────────────────────────────────── */

/* 右下角、抬起一截：让开底部按钮条，落进看片台的空白带里 */
.toast {
  position: fixed; right: 16px; bottom: 72px; left: auto;
  translate: 0 10px;
  background: var(--ink); color: var(--paper-hi);
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(0,0,0,.32);
  opacity: 0; pointer-events: none;
  transition: opacity .18s, translate .18s;
  max-width: min(80vw, 40ch);
  z-index: 60;
}
.toast.show { opacity: 1; translate: 0 0; }

/* ── 中等宽度：左栏留着，看片台与稿纸折成上下两段 ────────── */

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: clamp(240px, 26vw, 300px) minmax(0, 1fr);
    /* 上下两段都给下限，矮窗口里稿纸也还写得下字 */
    grid-template-rows: minmax(200px, 1fr) minmax(240px, .9fr);
  }
  .rail { grid-column: 1; grid-row: 1 / -1; }
  .stage-wrap { grid-column: 2; grid-row: 1; }
  .sheet {
    grid-column: 2; grid-row: 2;
    border-left: 0; border-top: 1px solid var(--rule);
  }
}

/* ── 窄屏：一列堆叠，页面整体滚动 ───────────────────────── */

@media (max-width: 860px) {
  body { height: auto; overflow-y: auto; }
  .topbar { flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s4); }
  .brand-sub { border-left: 0; padding-left: 0; font-size: 12px; }
  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    flex: 0 0 auto;
    overflow: visible;
  }
  .rail, .stage-wrap, .sheet { grid-column: 1; grid-row: auto; }
  .rail { border-right: 0; border-bottom: 1px solid var(--rule); max-height: none; overflow: visible; }
  .stage-wrap { min-height: 62vh; }
  .stage { padding: var(--s3); }
  .sheet { min-height: 66vh; }
  .stage-foot { gap: var(--s2); }
  .stage-actions { width: 100%; margin-left: 0; }
  .stage-actions .primary, .stage-actions .ghost { flex: 1; }

  /* 队列改成一条横向滑动的带子：手机上一屏就能看完整张图 */
  .queue-block { flex: 0 0 auto; }
  .queue {
    display: flex; gap: var(--s2);
    overflow-x: auto; overflow-y: hidden;
    padding-bottom: var(--s2);
    scroll-snap-type: x proximity;
  }
  .queue > li { flex: 0 0 auto; scroll-snap-align: start; }
  .q-item { width: 216px; grid-template-columns: 34px minmax(0, 1fr); }
  .q-state { grid-column: 2; justify-self: start; }
}

/* ── 很矮的窗口：把顶栏压扁，别占掉看片台 ────────────────── */

@media (max-height: 620px) and (min-width: 861px) {
  .topbar { padding: var(--s2) var(--s5); }
  .brand h1 { font-size: 26px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .progress.is-indeterminate .progress-fill { animation: none; width: 100%; opacity: .5; }
}

/* 无动画时也要能看出“在跑” */
.progress.is-indeterminate { opacity: .9; }
