*, *::before, *::after { box-sizing: border-box; }

:root {
  /* 墨色主调（与 Logo 同色）+ 靛蓝点缀 */
  --ink: #111820;
  --ink-hover: #262F3B;
  --on-ink: #FFFFFF;
  --accent: #5B5BD6;
  --accent-strong: #4646C2;
  --accent-soft: #EEEEFC;
  --accent-ring: rgba(91, 91, 214, .25);
  --accent-2: #2EA8C8;        /* 渐变第二色：青 */

  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #F0F2F5;
  --text: #111820;
  --muted: #6B7280;
  --border: #E5E7EB;

  --green: #1F8A5B;  --green-soft: #E7F4EE;
  --orange: #B45309; --orange-soft: #FDF0E1;
  --red: #D0463A;    --red-soft: #FCE9E7;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17,24,32,.04), 0 6px 20px rgba(17,24,32,.04);
  --mono: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F4F6;
    --ink-hover: #FFFFFF;
    --on-ink: #111820;
    --accent: #8B8CF8;
    --accent-strong: #A5A6FA;
    --accent-soft: rgba(139,140,248,.12);
    --accent-ring: rgba(139,140,248,.32);
    --accent-2: #5CCBE6;
    --bg: #0E1116;
    --surface: #161A21;
    --surface-2: #1F242C;
    --text: #F3F4F6;
    --muted: rgba(243,244,246,.6);
    --border: rgba(255,255,255,.09);
    --green: #6CC795;  --green-soft: rgba(108,199,149,.1);
    --orange: #E3A15F; --orange-soft: rgba(227,161,95,.1);
    --red: #EF7B6E;    --red-soft: rgba(239,123,110,.1);
    --shadow: none;
  }
}

html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.meta { color: var(--muted); font-size: 13px; }
.optional { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.error { color: var(--red); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.error:empty { min-height: 0; margin: 0; }
code { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
svg { width: 18px; height: 18px; flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .06s, box-shadow .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible, .tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

.btn-soft { background: transparent; border-color: transparent; color: var(--text); }
.btn-soft:hover { background: rgba(0,0,0,.05); }
.btn-warn { color: var(--orange); border-color: transparent; background: transparent; }
.btn-warn:hover { background: var(--orange-soft); }
.btn-danger { color: var(--red); border-color: var(--red-soft); background: var(--red-soft); }
.btn-danger:hover { border-color: var(--red); }

.btn-icon { width: 44px; height: 44px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); }
.btn-icon:hover { background: var(--surface-2); color: var(--text); }
.btn-icon svg { width: 20px; height: 20px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.btn-lg { width: 100%; min-height: 48px; font-size: 16px; font-weight: 600; }

.btn-huge {
  width: 100%;
  min-height: 64px;
  margin-top: 12px;
  font-size: 19px; font-weight: 700; letter-spacing: .5px;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  box-shadow: 0 10px 24px -10px rgba(17,24,32,.55);
  transition: background .2s, transform .12s var(--spring), box-shadow .2s;
}
.btn-huge svg { width: 20px; height: 20px; }
.btn-huge:disabled { box-shadow: none; }

/* ---------- 输入 ---------- */
input[type="text"], input[type="password"], input[type="search"], input:not([type]), textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 16px;            /* ≥16px 防止 iOS 自动缩放 */
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
textarea { resize: vertical; line-height: 1.6; word-break: break-all; font-family: var(--mono); font-size: 14px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > input { padding-left: 40px; }

.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

/* ---------- Logo ---------- */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--on-ink);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-lg { width: 52px; height: 52px; border-radius: 14px; }
.logo-lg svg { width: 34px; height: 34px; }

/* ---------- 登录 ---------- */
.login-view {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(700px 380px at 50% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.login-box {
  width: 100%; max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px 28px 28px;
  text-align: center;
}
.login-title { font-size: 24px; margin: 16px 0 4px; letter-spacing: 1px; }
.login-box .muted { margin-bottom: 24px; }
.login-box .input-icon { margin-bottom: 12px; text-align: left; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: .5px; }

/* ---------- 主体 ---------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px calc(48px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* ---------- 库存概览 ---------- */
.stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.stat-value b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-unit { font-size: 13px; color: var(--muted); }
.stat-main .stat-value b { color: var(--text); font-size: 30px; }
.stat-bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 10px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; transition: width .8s var(--ease-out); position: relative; overflow: hidden; }
.stat-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: bar-flow 2.6s ease-in-out infinite; }
.stat-warn { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--orange); }
.stat-warn svg { width: 15px; height: 15px; }
.stat-main.is-low .stat-value b { color: var(--orange); }
.stat-main.is-low .stat-bar span { background: var(--orange); }
.stat-main.is-empty .stat-bar span { background: var(--red); }
.stat-main.is-empty .stat-value b { color: var(--red); }
.stat-main.is-empty .stat-warn { color: var(--red); }

/* ---------- 刚刚发出 ---------- */
.last-issued {
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
  animation: pop-in .22s ease-out;
}
.last-issued.copy-failed { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.last-issued-head, .last-issued-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.last-issued-head { margin-bottom: 10px; }
.last-issued-head .btn, .last-issued-foot .btn { flex: none; }
.last-issued-foot { margin-top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green); }
.badge svg { width: 18px; height: 18px; }
.last-issued.copy-failed .badge { color: var(--red); }
.last-issued-text {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 160px;
  overflow-y: auto;
  user-select: all;
  -webkit-user-select: all;
}

.hint { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.hint.error-text { color: var(--red); font-weight: 600; }

/* ---------- 列表 ---------- */
.list-card { padding: 0; overflow: hidden; }
.list-head { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--border); }
.tabs { position: relative; display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.tab-indicator { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--surface); border-radius: 9px; box-shadow: 0 1px 3px rgba(17,24,32,.1); transition: transform .35s var(--spring), width .35s var(--spring); z-index: 0; }
.tab {
  flex: 1;
  appearance: none; border: none; background: none;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1;
  min-height: 36px; padding: 8px 10px;
  color: var(--muted); cursor: pointer;
  border-radius: 9px;
  transition: color .2s;
}
.tab:hover { color: var(--text); }
.tab { position: relative; z-index: 1; }
.tab.active { color: var(--text); font-weight: 600; }
.tabs:not(.has-indicator) .tab.active { background: var(--surface); }
.tab .count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); margin-left: 2px; }
.tab.active .count { color: var(--accent); }

.key-list { list-style: none; margin: 0; padding: 0; }
.key-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.key-item:last-child { border-bottom: none; }
.key-item:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.key-main { min-width: 0; }
.key-value {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.key-item.used .key-value { color: var(--muted); }
.key-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.unused { color: var(--green); background: var(--green-soft); }
.pill.used { color: var(--muted); background: var(--surface-2); }

.key-actions { display: flex; gap: 2px; }
.key-actions .btn { width: 36px; height: 36px; min-height: 36px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); }
.key-actions .btn:hover { background: var(--surface-2); color: var(--text); }
.key-actions .btn.danger:hover { background: var(--red-soft); color: var(--red); }

.key-list .empty { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 16px; }
.key-list .empty svg { display: block; margin: 0 auto 10px; width: 32px; height: 32px; opacity: .5; }
.key-list .more { padding: 14px 16px; font-size: 13px; }

/* ---------- 设置抽屉 ---------- */
.settings-view { position: fixed; inset: 0; z-index: 30; }
.settings-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.32); animation: fade-in .2s ease-out; }
.settings-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 480px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  animation: slide-in .24s cubic-bezier(.2,.8,.2,1);
  padding-top: env(safe-area-inset-top);
}
.settings-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.settings-head h2 { margin: 0; font-size: 18px; }
.settings-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
.set-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.set-section h3 { margin: 0 0 6px; font-size: 16px; }
.set-section .muted { margin-bottom: 12px; }
.set-section textarea, .set-section input { margin-bottom: 10px; }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.row-end .meta { margin-right: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.danger-zone h3 { color: var(--red); margin-bottom: 4px; }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.danger-row:first-of-type { border-top: none; }
.danger-row b { font-size: 15px; font-weight: 600; }
.danger-row .muted { margin: 2px 0 0; font-size: 13px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #2C2C2B;
  color: #fff;
  font-size: 14px; font-weight: 500;
  padding: 11px 18px;
  border-radius: 10px;
  max-width: 88vw;
  text-align: center;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  animation: toast-in .2s ease-out;
}
.toast.toast-error { background: var(--red); }
@media (prefers-color-scheme: dark) { .toast { background: #383836; } }

/* ========== 动效 ========== */

/* 曲线加载器 */
.curve-loader { display: block; width: 100%; height: 100%; overflow: visible; }
.curve-track { stroke-width: 1.1; opacity: .12; }

/* 启动画面 */
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { position: relative; width: 132px; height: 132px; color: var(--accent); }
.boot-loader { position: absolute; inset: 0; }
.boot-logo { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); color: var(--text); animation: breathe 2.4s ease-in-out infinite; }

/* 登录页背景装饰 */
.login-view { overflow: hidden; }
.login-deco {
  position: absolute; left: 50%; top: 50%;
  width: min(820px, 150vw); height: min(820px, 150vw);
  transform: translate(-50%, -50%);
  color: var(--accent); opacity: .22; pointer-events: none;
}
.login-box { position: relative; animation: rise-in .6s var(--ease-out) both; }
.login-box.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }

/* 按钮里的加载器 */
.btn-loader { display: none; width: 22px; height: 22px; flex: none; }
.btn-huge .btn-loader { width: 34px; height: 34px; margin: -6px 0; }
.btn.is-loading .btn-loader { display: block; animation: fade-in .2s; }
.btn.is-loading .btn-ico { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading:disabled { opacity: 1; }

/* 大按钮：流光 + 点击波纹 */
.btn-huge .shine {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.13), transparent);
  transform: skewX(-18deg);
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.btn-huge:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(17,24,32,.6); }
.btn-huge:active { transform: translateY(0) scale(.985); }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .25;
  transform: scale(0); animation: ripple .6s var(--ease-out) forwards;
}
@media (prefers-color-scheme: dark) {
  .btn-huge { box-shadow: 0 10px 30px -12px rgba(139,140,248,.5); }
  .btn-huge .shine { background: linear-gradient(100deg, transparent, rgba(91,91,214,.18), transparent); }
}

/* 页面元素依次进入 */
.reveal { animation: rise-in .55s var(--ease-out) both; }

/* 发货成功卡片 */
.last-issued.pop { animation: success-pop .5s var(--spring); }
.badge svg { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .1s var(--ease-out) forwards; }

/* 数字跳动 */
.stat-value b.bump { animation: bump .45s var(--spring); }

/* 列表条目 */
.key-item.enter { animation: item-in .4s var(--ease-out) both; }
.key-item.leaving { animation: item-out .28s ease-in forwards; }

/* 空状态里的曲线 */
.empty-loader { display: block; width: 88px; height: 88px; margin: 0 auto 12px; color: var(--accent); opacity: .7; }

/* 设置面板里的分组依次滑入 */
.settings-view:not(.hidden) .set-section { animation: rise-in .45s var(--ease-out) both; }
.settings-view:not(.hidden) .set-section:nth-child(2) { animation-delay: .04s; }
.settings-view:not(.hidden) .set-section:nth-child(3) { animation-delay: .08s; }
.settings-view:not(.hidden) .set-section:nth-child(4) { animation-delay: .12s; }
.settings-view:not(.hidden) .set-section:nth-child(5) { animation-delay: .16s; }
.settings-view.closing .settings-panel { animation: slide-out .22s ease-in forwards; }
.settings-view.closing .settings-backdrop { animation: fade-out .22s ease-in forwards; }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(.9); } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes shine { 0% { left: -40%; } 55%, 100% { left: 130%; } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes success-pop { 0% { transform: scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bump { 0% { transform: translateY(0); } 40% { transform: translateY(-4px) scale(1.08); } 100% { transform: none; } }
@keyframes item-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes item-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes bar-flow { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
@keyframes fade-out { to { opacity: 0; } }

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 560px) {
  main { padding: 12px 12px calc(40px + env(safe-area-inset-bottom)); gap: 12px; }
  .topbar-inner { padding: 6px 8px 6px 14px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-main { grid-column: 1 / -1; }
  .stat { padding: 12px 14px; }
  .card { padding: 16px; }
  .list-card { padding: 0; }
  .list-head { padding: 12px; }
  .key-item { padding: 12px; }
  .btn-huge { font-size: 18px; min-height: 60px; }
  .settings-panel { max-width: none; border-left: none; }
}

@media (max-width: 560px) {
  @keyframes slide-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes slide-out { to { transform: translateY(100%); } }
}
.empty-loader .curve-track { opacity: .2; }
.btn-loader .curve-track { opacity: .3; stroke-width: 2; }

/* 浅色模式图标：白底黑图 */
@media (prefers-color-scheme: light) { .logo-mark { background: #fff; color: #111820; box-shadow: inset 0 0 0 1px rgba(17,24,32,.12); } }
