/* Hallmark · checked: 2026-11-25 · genre: modern-minimal (inferred) · scope: app
 * theme: custom · idea: "the relay station kept as a paper ledger: hairline rules, one vermilion seal, no cards" · vibe: "station ledger, ink on cool paper"
 * posture: restrained · paper: 97.4% 0.004 200 · display: cjk-serif (Songti) · accent: warm vermilion 30°
 * hero: Settled · nav: masthead rule with tab strip · footer: none · shape: app screen
 * built: Hallmark · redesign: full · pre-emit: P5 H4 E4 S4 R5 V4 · weakest: V — the shell is the one the product already had, so every pane was recomposed from boxes into the label-and-rule ledger
 * floor: 0 FAIL · waive 1 (the display face is the OS CJK serif, see below)
 */
/* Hallmark · waive 1 · the host has no font files and the CSP takes only same-origin · the display face is the visitor's own Songti or Noto Serif CJK SC, so no webfont ships */
/* Hallmark · reworded "WorkBuddy 中转站" to "代名词中转站" · the owner renamed the station */
/* Hallmark · reworded "可用模型 0 个" to "可用模型" with the count beside the head · 38iii names a coloured word inside a head */
/* Hallmark · answered F23 · lang, title and description are set in both documents, so a share preview names the station */

:root {
  --paper: oklch(97.4% 0.004 200);
  --paper-2: oklch(99.3% 0.002 200);
  --sunk: oklch(94.4% 0.006 200);
  --rule: oklch(85% 0.008 200);
  --rule-soft: oklch(91.2% 0.006 200);
  --rule-strong: oklch(75% 0.010 200);
  --field-edge: oklch(58% 0.008 200);
  --ink: oklch(22% 0.012 200);
  --ink-2: oklch(38% 0.010 200);
  --ink-3: oklch(48% 0.008 200);
  --seal: oklch(47% 0.155 30);
  --seal-ink: oklch(98% 0.008 30);
  --ok: oklch(43% 0.085 158);
  --err: oklch(46% 0.17 22);
  --warn: oklch(46% 0.10 68);
  --sel: oklch(88% 0.035 30);

  --font-display: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: 11.5px;
  --text-s: 12.5px;
  --text-m: 13.5px;
  --text-body: 14px;
  --text-l: 16px;
  --text-xl: 19px;
  --text-2xl: 24px;
  --text-3xl: 52px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;

  --r: 2px;
  --dur: 120ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  padding-bottom: var(--space-10);
  caret-color: var(--seal);
}
::selection { background: var(--sel); color: var(--ink); }
html { scrollbar-color: var(--rule-strong) var(--paper); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: var(--text-xl); margin: 0; }
h2 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-4);
  line-height: 1.35;
  overflow-wrap: break-word;
  min-width: 0;
}
h2 small {
  font-family: var(--font-body);
  color: var(--ink-3);
  font-weight: 400;
  font-size: var(--text-s);
  margin-left: var(--space-2);
}
h3 { font-size: var(--text-m); margin: 0 0 var(--space-3); }

code {
  font-family: var(--font-mono);
  font-size: var(--text-s);
  background: var(--sunk);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 0 var(--space-1);
}
.sub { color: var(--ink-2); font-size: var(--text-s); margin: 0 0 var(--space-4); }
.hint { color: var(--ink-3); font-size: var(--text-s); margin: 0 0 var(--space-4); line-height: 1.7; }
.hint b { color: var(--ink-2); font-weight: 600; }
.empty { color: var(--ink-3); font-size: var(--text-s); padding: var(--space-7) 0; text-align: left; }
.empty::before { content: ""; display: block; width: var(--space-6); height: 1px; background: var(--rule-strong); margin-bottom: var(--space-3); }

/* ---------- 登录：站牌在左，入口在右 ---------- */
.login-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: var(--space-11);
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-9) var(--space-6);
}
.login-plate { min-width: 0; }
.seal {
  display: inline-grid;
  place-items: center;
  width: var(--space-7);
  height: var(--space-7);
  background: var(--seal);
  color: var(--seal-ink);
  font-family: var(--font-display);
  font-size: var(--text-l);
  line-height: 1;
  border-radius: var(--r);
  user-select: none;
}
.plate-name {
  font-size: var(--text-3xl);
  text-wrap: balance;
  line-height: 1.04;
  margin: var(--space-6) 0 var(--space-7);
  overflow-wrap: break-word;
}
.plate-name span {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: .16em;
  margin-top: var(--space-3);
}
.plate-facts { margin: 0; border-top: 1px solid var(--ink); }
.fact {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.fact dt { color: var(--ink-3); font-size: var(--text-s); }
.fact dd { margin: 0; color: var(--ink-2); font-size: var(--text-s); }

.login-wrap .login-card {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  padding: var(--space-7) var(--space-6) var(--space-6);
}
.login-card .sub { margin-bottom: var(--space-5); }
.login-card input { width: 100%; margin-bottom: var(--space-3); min-height: 40px; }
.login-card button.primary { width: 100%; min-height: 40px; }
.login-link {
  display: block;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-soft);
  text-align: center;
  font-size: var(--text-s);
  color: var(--ink-2);
  text-decoration: none;
}
.login-link:hover { color: var(--seal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 顶部站牌 ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: var(--space-3) max(var(--space-6), calc((100% - 1280px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
header .brand { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
header .brand .seal { width: var(--space-6); height: var(--space-6); font-size: var(--text-s); }
header .brand strong {
  font-family: var(--font-display);
  font-size: var(--text-l);
  font-weight: 700;
  white-space: nowrap;
}
header nav { display: flex; gap: 0; align-items: center; flex-wrap: wrap; }

/* ---------- 版面 ---------- */
.tabpane {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-6) var(--space-9);
}
#tab-keylogs { max-width: 1180px; }
.card {
  padding: var(--space-6) 0 var(--space-2);
  border-top: 1px solid var(--rule-soft);
}
.tabpane > .card:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- 控件 ---------- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-s);
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--field-edge);
  border-radius: var(--r);
  padding: var(--space-2) var(--space-3);
  min-height: 34px;
  min-width: 0;
  transition: background-color var(--dur) var(--ease);
}
input:hover, textarea:hover, select:hover { background: var(--sunk); }
input:focus, textarea:focus, select:focus,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
input:disabled, textarea:disabled, select:disabled {
  opacity: .45; cursor: not-allowed; background: var(--sunk);
}
textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.65;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: var(--space-3);
}
select { font-size: var(--text-s); }

button {
  font-family: var(--font-body);
  font-size: var(--text-s);
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  padding: var(--space-1) var(--space-3);
  min-height: 34px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
button:hover { background: var(--sunk); border-color: var(--ink-3); }
button:active { background: var(--rule-soft); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 500;
}
button.primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }
button.ghost { background: transparent; }
button.ghost:hover { background: var(--sunk); }
button.danger { color: var(--err); }
button.danger:hover { border-color: var(--err); background: transparent; }
button.ghost.active { color: var(--seal); border-color: var(--seal); background: transparent; }
button.tab {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink-3);
  padding: var(--space-2) var(--space-3);
  min-height: 0;
  font-size: var(--text-s);
  box-shadow: inset 0 -2px 0 transparent;
}
button.tab:hover { color: var(--ink); background: transparent; }
button.tab.active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--seal); }

.row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); align-items: center; }
.form { display: flex; flex-direction: column; gap: var(--space-3); }
.form.inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.form label { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-s); color: var(--ink-2); }
.form.inline label input { width: 132px; }
/* 复选框不能跟着上面的 132px 走，否则勾选框被拉成一条长条 */
.ckline { display: inline-flex; align-items: center; gap: var(--space-1); }
.ckline input[type=checkbox] { width: auto; min-height: 0; margin: 0; }
.form.inline label select { width: auto; min-width: 190px; }
.filepick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  background: var(--paper-2);
  color: var(--ink);
  font-size: var(--text-s);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filepick:hover { background: var(--sunk); border-color: var(--ink-3); }

/* ---------- 登录流程 ---------- */
.loginflow {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}
.step { font-size: var(--text-s); color: var(--ink-2); margin-bottom: var(--space-3); }
.linkbox { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.linkbox input { flex: 1; font-family: var(--font-mono); font-size: var(--text-xs); }

/* ---------- 折叠区 ---------- */
.manual { margin-top: var(--space-5); border-top: 1px solid var(--rule-soft); padding-top: var(--space-4); }
.manual summary, details summary {
  cursor: pointer;
  color: var(--ink-2);
  font-size: var(--text-s);
  padding: var(--space-1) 0;
  list-style: none;
}
.manual summary::-webkit-details-marker, details summary::-webkit-details-marker { display: none; }
.manual summary::after, details summary::after { content: "＋"; color: var(--ink-3); margin-left: var(--space-1); }
.manual[open] summary::after, details[open] summary::after { content: "－"; }
.manual summary:hover, details summary:hover { color: var(--ink); }
.manual .form { margin-top: var(--space-4); }

/* ---------- 列表：细线分栏，不做盒子 ---------- */
.list { display: flex; flex-direction: column; }
.item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule-soft);
  flex-wrap: wrap;
}
.list > .item:first-child { border-top: 0; }
.item-main { min-width: 0; flex: 1; }
.item-title {
  font-size: var(--text-m);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  overflow-wrap: break-word;
}
.item-sub { color: var(--ink-3); font-size: var(--text-s); margin-top: var(--space-1); word-break: break-all; }
.item-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: flex-start; }
.item-actions button { padding: var(--space-1) var(--space-2); font-size: var(--text-xs); min-height: 28px; }
.item.primary { border-left: 2px solid var(--seal); padding-left: var(--space-4); }

.badge {
  font-size: var(--text-xs);
  padding: 0 var(--space-1);
  border-radius: var(--r);
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  background: transparent;
  white-space: nowrap;
  line-height: 1.75;
}
.badge.green { color: var(--ok); border-color: var(--ok); }
.badge.blue { color: var(--ink-2); border-color: var(--rule-strong); }
.badge.red { color: var(--err); border-color: var(--err); }
.badge.gray { color: var(--ink-3); border-color: var(--rule); }
.badge.gold { color: var(--warn); border-color: var(--warn); }

/* ---------- 导入区 ---------- */
.dropzone {
  margin-top: var(--space-4);
  padding: var(--space-6) var(--space-4);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r);
  color: var(--ink-3);
  font-size: var(--text-s);
  text-align: center;
  background: transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dropzone.over { border-color: var(--seal); color: var(--seal); }

.msg { font-size: var(--text-s); color: var(--ok); min-height: 18px; margin-top: var(--space-2); white-space: pre-wrap; }
.msg.err { color: var(--err); }

/* ---------- 积分 ---------- */
.credit { margin-top: var(--space-2); font-size: var(--text-s); color: var(--ink-2); }
.credit .cnum {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.credit .cnum.inf { font-size: var(--text-l); }
.credit .csub { color: var(--ink-3); margin-left: var(--space-1); font-size: var(--text-xs); }
.credit.mid .cnum { color: var(--warn); }
.credit.low .cnum { color: var(--err); }
.credit.err { color: var(--err); font-size: var(--text-xs); }
.cbar {
  margin-top: var(--space-1);
  height: 2px;
  background: var(--rule);
  overflow: hidden;
  max-width: 320px;
}
.cbar i { display: block; height: 100%; background: var(--ink); }
.credit.mid .cbar i { background: var(--warn); }
.credit.low .cbar i { background: var(--err); }

.pkgs { margin-top: var(--space-2); }
.pkgs summary { font-size: var(--text-xs); }
.pkg {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.pkg:last-child { border-bottom: 0; }
.pkg span { flex: 1; min-width: 120px; color: var(--ink-2); }
.pkg b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.pkg em { color: var(--ink-3); font-style: normal; }

/* ---------- 分账号消耗 ---------- */
.accstats { display: flex; flex-wrap: wrap; gap: 0; margin-top: var(--space-3); border-top: 1px solid var(--rule-soft); }
.accstats:empty { display: none; }
.accstat {
  font-size: var(--text-s);
  color: var(--ink-3);
  padding: var(--space-1) var(--space-3);
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.accstat:first-child { padding-left: 0; }
.accstat b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 表格 ---------- */
.calls { overflow-x: auto; margin-top: var(--space-4); -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--text-s); }
th {
  text-align: left;
  color: var(--ink-3);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
  background: var(--sunk);
}
td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--rule-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
tr.fail td { color: var(--err); }
.credit-cell b { color: var(--ink); font-weight: 600; }
.dim { color: var(--ink-3); }

.fullprice { display: inline-flex; align-items: baseline; gap: var(--space-1); }
.fullprice b { color: var(--err); }
.fullprice i {
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--err);
  border: 1px solid var(--err);
  padding: 0 var(--space-1);
  border-radius: var(--r);
  line-height: 1.4;
}

.ctx { font-variant-numeric: tabular-nums; }
.ctx.warn { color: var(--warn); font-weight: 600; }
.ctx.red { color: var(--err); font-weight: 600; }
.cache { font-variant-numeric: tabular-nums; font-weight: 600; }
.cache.green { color: var(--ok); }
.cache.warn { color: var(--warn); }
.cache.red { color: var(--err); }
.speed { font-variant-numeric: tabular-nums; color: var(--ink); }
.speed .unit { color: var(--ink-3); font-size: var(--text-xs); margin-left: var(--space-1); }
.speed.dim { color: var(--ink-3); }

/* ---------- 限额面板 ---------- */
.limitbox {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}
.limitbox h3 { margin-bottom: var(--space-3); }
.limitbox .form.inline label input { width: 120px; }
.limitbox .row { margin-bottom: 0; margin-top: var(--space-4); }
.limitbox .hint { margin-bottom: var(--space-3); }
.lim.warn-text { color: var(--err); font-weight: 600; }
.limbar { margin-top: var(--space-2); height: 4px; background: var(--rule-soft); overflow: hidden; }
.limbar i { display: block; height: 100%; background: var(--ink); }
.limbar i.warn { background: var(--warn); }
.limbar i.crit { background: var(--err); }

.newkey {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--paper-2);
  border: 1px solid var(--seal);
  border-radius: var(--r);
}

/* ---------- 模型 ---------- */
.models { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4); }
.model {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 0 var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.9;
  color: var(--ink-2);
  font-family: var(--font-mono);
}

/* ---------- 密钥日志表格 ---------- */
.kl-table { min-width: 640px; }
.kl-table td, .kl-table th { padding: var(--space-1) var(--space-2); white-space: nowrap; }
.kl-table .kl-head { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.kl-table .kl-key { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: var(--font-mono); font-size: var(--text-xs); }
.kl-tok { font-size: var(--text-s); }
.kl-part { font-size: var(--text-xs); color: var(--ink-3); }
.live-age { color: var(--ink-3); font-size: var(--text-xs); }

/* ---------- 密钥日志展开详情 ---------- */
.kl-hint { color: var(--ink-3); font-size: var(--text-s); margin-top: var(--space-3); }
.kl-ch { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
tr.kl-row { cursor: pointer; }
tr.kl-row:hover, tr.kl-row.open { background: var(--sunk); }
tr.kl-detrow > td { background: var(--sunk); padding: 0; border-bottom: 1px solid var(--rule-soft); }
.kl-det { padding: var(--space-3); }
.kl-det-table { min-width: 0; width: 100%; font-size: var(--text-s); }
.kl-det-table th {
  background: transparent;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-3);
  width: 96px;
  vertical-align: top;
}
.kl-det-table td { white-space: normal; border-bottom: 1px solid var(--rule-soft); }
.kl-det-table tr:last-child th, .kl-det-table tr:last-child td { border-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .login-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-8) var(--space-5);
    align-content: center;
  }
  .login-card { max-width: none; }
  .plate-name { font-size: var(--text-2xl); margin: var(--space-5) 0 var(--space-6); }
  .plate-name span { font-size: var(--text-xl); }
}
@media (max-width: 720px) {
  .tabpane { padding: var(--space-5) var(--space-4) var(--space-8); }
  header { padding: var(--space-2) var(--space-4); gap: var(--space-2); }
  header nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  button.tab { padding: var(--space-2) var(--space-2); }
  .form.inline label input, .form.inline label select { width: 100%; }
  .form.inline label { flex: 1; min-width: 128px; }
  .item { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .item-actions { justify-content: flex-start; }
  h1 { font-size: var(--text-l); }
  /* 手机上宽度跟屏幕，只留「时间 / 状态 / 渠道 / 消耗 / 耗时」5 列：
     必须按 nth-child 同时隐藏 th 与 td，只藏 td 会让表头多出列、整行错位 */
  .kl-table { min-width: 0; width: 100%; }
  .kl-table th:nth-child(3), .kl-table td:nth-child(3),
  .kl-table th:nth-child(7), .kl-table td:nth-child(7) { display: none; }
  .kl-table .kl-part { display: none; }
  .kl-table .kl-ch { max-width: 76px; }
  .kl-table td, .kl-table th { padding: var(--space-1); }
  .kl-detrow > td { white-space: normal; }
  .kl-det-table th { width: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 签到卡的手机排布：时/分两列 → 复选框独占一行 → 两个按钮平分。
   只作用于 #trCkCard，别去动其它卡片的 .form.inline（批量导入那块的宽度不能变） */
@media (max-width: 640px) {
  #trCkCard .form.inline { flex-wrap: wrap; row-gap: var(--space-2); }
  #trCkCard .form.inline > label { flex: 1 1 40%; min-width: 80px; }
  /* 手机上勾选框和文字排一行更省空间，也不用跟 40px 输入框对齐 */
  #trCkCard .form.inline > label.ck3 {
    flex: 1 1 100%; flex-direction: row; align-items: center; gap: var(--space-2);
  }
  #trCkCard .form.inline > label.ck3 input { margin: 0; }
  #trCkCard .form.inline > button { flex: 1 1 40%; }
}

/* 复选框没有 40px 的输入框高：给足上边距，让它跟旁边的「时 / 分」视觉对齐 */
.form.inline label input[type=checkbox] { width: 16px; height: 16px; min-height: 0; margin: var(--space-4) 0 0; }
