/* ============================================================
 * 西蒙智印标签 — 设计系统 V2「清新科技风 Clean Tech」
 * 冷白底 · 墨青主色 · 电光青强调 · 层级表面 · 柔和大圆角
 * 字体：PingFang SC / MiSans / HarmonyOS Sans / Segoe UI Variable
 * ============================================================ */
:root {
  --bg: #F4F7FB;             /* 冷白底 */
  --bg-2: #EDF2F8;           /* 次级底 */
  --surface: #FFFFFF;
  --surface-2: #F8FAFD;      /* 浅表面 */
  --ink: #0B1526;            /* 深墨（正文） */
  --ink-2: #3D4A5C;          /* 次级文字 */
  --ink-3: #8492A6;          /* 弱化 */
  --line: #E3EAF3;           /* 细边线 */
  --line-2: #D5DFEC;
  --primary: #0E7490;        /* 墨青主色（cyan-700） */
  --primary-2: #155E8F;      /* 深一档 */
  --accent: #06B6D4;         /* 电光青 */
  --accent-2: #22D3EE;
  --accent-soft: #E0F7FB;
  --primary-soft: #E6F3F8;
  --ok: #0F9960;
  --ok-soft: #E3F5EE;
  --warn: #C77E0A;
  --warn-soft: #FCF3E2;
  --danger: #DE4A3B;
  --danger-soft: #FCEBE8;
  --grad-primary: linear-gradient(135deg, #0E7490 0%, #0891B2 55%, #06B6D4 100%);
  --grad-deep: linear-gradient(160deg, #0B1526 0%, #0E2A47 60%, #10527E 100%);
  --radius: 16px;
  --radius-s: 10px;
  --font: "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --shadow-1: 0 1px 2px rgba(11, 21, 38, .05), 0 2px 8px rgba(11, 21, 38, .05);
  --shadow-2: 0 2px 6px rgba(11, 21, 38, .06), 0 12px 32px rgba(11, 21, 38, .10);
  --shadow-3: 0 4px 12px rgba(11, 21, 38, .10), 0 24px 56px rgba(14, 116, 144, .16);
  --ring: 0 0 0 3px rgba(6, 182, 212, .22);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.65; letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 460px at 85% -12%, rgba(6, 182, 212, .10), transparent 62%),
    radial-gradient(900px 420px at -10% 8%, rgba(14, 116, 144, .08), transparent 58%);
  background-attachment: fixed;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
::selection { background: rgba(6, 182, 212, .25); }

/* ---------- 页面骨架 ---------- */
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-bottom: 116px; }
.page { padding: 24px 20px 40px; animation: pageIn .32s cubic-bezier(.22,.9,.32,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-title { font-size: 25px; font-weight: 700; letter-spacing: .01em; margin: 4px 0 4px; }
.page-title b, .page-title strong { font-weight: 800; color: var(--primary); }
.page-sub { color: var(--ink-3); font-size: 13px; font-weight: 400; margin-bottom: 22px; }
.section-gap { height: 26px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- 底部导航（玻璃浮岛） ---------- */
.tabbar {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 520px; display: flex; z-index: 40;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 20px; padding: 8px 10px calc(8px);
  box-shadow: var(--shadow-2);
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-3); padding: 6px 0; font-weight: 500; border-radius: 14px; transition: all .18s ease; letter-spacing: .05em; }
.tabbar button .tab-ico { font-size: 19px; line-height: 1.2; transition: transform .18s ease; }
.tabbar button.active { color: #fff; background: var(--grad-primary); font-weight: 600; box-shadow: 0 6px 16px rgba(8, 145, 178, .35); }
.tabbar button.active .tab-ico { transform: translateY(-1px) scale(1.06); }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.card.tap { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card.tap:hover { border-color: rgba(6, 182, 212, .45); box-shadow: var(--shadow-2); }
.card.tap:active { transform: scale(.984); }
.card-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--grad-primary); }
.hero-card { display: flex; align-items: center; gap: 15px; padding: 21px 20px; }
.hero-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; box-shadow: 0 6px 14px rgba(8, 145, 178, .30); }
.hero-ico.soft { background: var(--accent-soft); color: var(--primary); box-shadow: none; }
.hero-ico.deep { background: var(--grad-deep); box-shadow: 0 6px 14px rgba(11, 21, 38, .28); }
.hero-main { flex: 1; min-width: 0; }
.hero-title { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.hero-desc { font-size: 12.5px; color: var(--ink-2); font-weight: 400; margin-top: 2px; }
.hero-arrow { color: var(--ink-3); font-weight: 300; font-size: 20px; transition: transform .16s ease, color .16s ease; }
.card.tap:hover .hero-arrow { transform: translateX(3px); color: var(--accent); }

/* ---------- 顶部英雄区（科技感横幅） ---------- */
.hero-banner { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 22px 24px; margin-bottom: 16px; background: var(--grad-deep); color: #fff; box-shadow: var(--shadow-3); }
.hero-banner::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(480px 200px at 88% -30%, rgba(34, 211, 238, .38), transparent 65%),
  radial-gradient(380px 180px at -12% 120%, rgba(8, 145, 178, .45), transparent 60%);
  pointer-events: none; }
.hero-banner::after { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; }
.hero-banner .hb-title { font-size: 22px; font-weight: 800; letter-spacing: .02em; position: relative; }
.hero-banner .hb-title b { color: var(--accent-2); font-weight: 800; }
.hero-banner .hb-sub { font-size: 12.5px; opacity: .78; margin-top: 3px; position: relative; }
.hero-banner .hb-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.hero-banner .hb-chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.hb-actions { display: flex; gap: 10px; margin-top: 16px; position: relative; }
.hb-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 13px; font-size: 13.5px; font-weight: 600; transition: transform .15s ease, filter .15s ease; }
.hb-btn:active { transform: scale(.97); }
.hb-btn.glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); color: #fff; backdrop-filter: blur(6px); }
.hb-btn.solid { background: linear-gradient(135deg, #06B6D4, #22D3EE); color: #04202B; box-shadow: 0 8px 20px rgba(34, 211, 238, .35); }

/* ---------- 状态徽标 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: .03em; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: var(--bg-2); color: var(--ink-3); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--danger-soft); color: var(--danger); }
.badge.pulse .dot { animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.input.mono { font-family: var(--mono); letter-spacing: .08em; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; font-weight: 400; }
.err-text { font-size: 12px; color: var(--danger); margin-top: 5px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 22px; border-radius: 13px; font-size: 15px; font-weight: 600; letter-spacing: .03em;
  transition: opacity .15s, transform .12s, box-shadow .15s, filter .15s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad-primary); color: #fff; box-shadow: 0 6px 16px rgba(8, 145, 178, .32); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.accent { background: linear-gradient(135deg, #06B6D4, #22D3EE); color: #04202B; box-shadow: 0 8px 20px rgba(34, 211, 238, .35); }
.btn.ghost { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--primary); }
.btn.danger { border: 1.5px solid #F3C4BD; background: #fff; color: var(--danger); }
.btn.block { display: flex; width: 100%; }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1; }

/* ---------- 列表 ---------- */
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); transition: background .14s; border-radius: 8px; }
.list-item:hover { background: var(--surface-2); }
.list-item:last-child { border-bottom: none; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* li-sub 省略 */
.empty { text-align: center; padding: 46px 0; color: var(--ink-3); font-weight: 400; font-size: 14px; letter-spacing: .06em; }
.empty::before { content: "◇"; display: block; font-size: 26px; margin-bottom: 8px; color: var(--line-2); }

/* ---------- 模态 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(11, 21, 38, .40); backdrop-filter: blur(4px); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
.modal { background: var(--surface); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); max-height: 86dvh; overflow: auto; box-shadow: var(--shadow-3); }
@media (min-width: 600px) { .modal-mask { align-items: center; } .modal { border-radius: 22px; } }
.modal-title { font-size: 18px; font-weight: 700; letter-spacing: .02em; margin-bottom: 6px; }
.modal-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-bottom: 18px; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: 88vw; }
.toast { background: rgba(11, 21, 38, .92); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 13.5px; animation: toastIn .25s cubic-bezier(.2,.9,.3,1.2); box-shadow: var(--shadow-2); border: 1px solid rgba(255,255,255,.08); max-width: 100%; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
.toast.ok { background: linear-gradient(135deg, #0E7490, #0891B2); }
.toast.err { background: linear-gradient(135deg, #C03A2C, #E0553F); }

/* ---------- 字段卡片（OCR 结果） ---------- */
.field-card { border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); margin-bottom: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.field-card:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.field-card .fc-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px 0; }
.field-card .fc-name { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: .08em; }
.field-card .fc-name .req { color: var(--danger); }
.field-card input { border: none; width: 100%; padding: 6px 14px 12px; font-size: 15.5px; outline: none; background: transparent; font-weight: 500; }
.field-card.low-conf { border-color: #E8C77E; background: #FFFDF4; }
.field-card.missing { border-color: #F3C4BD; }

/* ---------- 画布区 ---------- */
.canvas-wrap { background: var(--surface-2); border: 1.5px dashed var(--line-2); border-radius: var(--radius); overflow: auto; display: flex; align-items: center; justify-content: center; padding: 20px; }
canvas.label-canvas { background: #fff; box-shadow: var(--shadow-2); max-width: 100%; border-radius: 4px; }

/* ---------- 设计器 ---------- */
.des-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 0 14px; flex-wrap: wrap; }
.des-toolbar .spacer { flex: 1; }
.comp-lib { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; }
.comp-chip { flex: none; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: grab; transition: all .15s; }
.comp-chip:hover { border-color: var(--accent); color: var(--primary); box-shadow: var(--shadow-1); }
.prop-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sel-box { position: absolute; border: 1.5px solid var(--accent); pointer-events: none; box-shadow: var(--ring); }
.handle { position: absolute; width: 12px; height: 12px; background: #fff; border: 1.5px solid var(--accent); border-radius: 3px; box-shadow: 0 1px 4px rgba(11,21,38,.18); }
.guide-line { position: absolute; background: #F97362; pointer-events: none; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 520px; }
table.tbl th { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); }
table.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td input { border: 1px solid transparent; background: transparent; width: 100%; outline: none; }
table.tbl td input:focus { border-color: var(--accent); background: #fff; border-radius: 6px; }

/* ---------- 打印进度 ---------- */
.print-progress { padding: 26px 0 8px; text-align: center; }
.print-progress .big { font-size: 34px; font-weight: 200; letter-spacing: .04em; }
.print-progress .big b { font-weight: 800; color: var(--primary); }
.bar { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin: 18px 0 8px; }
.bar > i { display: block; height: 100%; background: var(--grad-primary); border-radius: 999px; transition: width .25s ease; position: relative; }
.bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 指标 ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.metric::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-primary); opacity: .85; }
.metric .m-val { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.metric .m-val b { font-weight: 800; color: var(--primary); }
.metric .m-label { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; margin-top: 2px; font-weight: 600; }

/* ---------- 筛选 ---------- */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.filter-chip { flex: none; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--ink-2); background: var(--surface); font-weight: 500; transition: all .15s; }
.filter-chip:hover { border-color: var(--accent); }
.filter-chip.active { border-color: transparent; background: var(--grad-primary); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(8, 145, 178, .3); }

/* ---------- 引导遮罩 ---------- */
.guide-mask { position: fixed; inset: 0; background: rgba(11, 21, 38, .86); backdrop-filter: blur(6px); z-index: 80; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 26px 50px; }
.guide-mask h3 { font-size: 21px; font-weight: 700; letter-spacing: .04em; margin-bottom: 10px; }
.guide-mask p { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .78); margin-bottom: 24px; }

/* ---------- 权限置灰 ---------- */
.perm-denied { opacity: .4; pointer-events: none; }
.lock-note { font-size: 12px; color: var(--ink-3); padding: 8px 4px; }

/* ---------- 拆分 ---------- */
.split-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.split-row .idx { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex: none; }
.split-row input { flex: 1; }
.split-row .auto { font-size: 12px; color: var(--ink-3); flex: 1; text-align: center; background: var(--surface-2); border-radius: 8px; padding: 11px 0; }

/* ---------- 详情 ---------- */
.kv { display: flex; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { width: 96px; color: var(--ink-3); font-size: 12.5px; padding-top: 2px; flex: none; letter-spacing: .04em; font-weight: 600; }
.kv .v { flex: 1; word-break: break-all; font-weight: 500; }

/* ---------- 模板缩略预览块 ---------- */
.tpl-thumb { margin-top: 8px; height: 34px; border-radius: 8px; background: var(--primary-soft); border: 1px solid rgba(8, 145, 178, .28); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .06em; }

/* ---------- 登录英雄页 ---------- */
.login-hero { background: var(--grad-deep); border-radius: 0 0 26px 26px; padding: 46px 26px 34px; color: #fff; position: relative; overflow: hidden; }
.login-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(520px 240px at 90% -20%, rgba(34, 211, 238, .40), transparent 62%),
  radial-gradient(400px 200px at -14% 110%, rgba(8, 145, 178, .5), transparent 58%); }
.login-hero::after { content: ""; position: absolute; inset: 0; opacity: .45; background-image:
  linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; }
.login-hero .lh-title { font-size: 30px; font-weight: 800; letter-spacing: .02em; position: relative; }
.login-hero .lh-title b { color: var(--accent-2); }
.login-hero .lh-sub { font-size: 13px; opacity: .8; margin-top: 6px; position: relative; letter-spacing: .06em; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #C9D6E4; border-radius: 4px; }

/* ---------- 移动端/PDA 适配 ---------- */
@media (max-width: 600px) {
  .page { padding: 16px 14px 32px; }
  .page-title { font-size: 22px; }
  .hero-banner { padding: 18px 16px 20px; border-radius: 18px; }
  .hero-banner .hb-title { font-size: 19px; }
  .hb-actions { flex-direction: column; }
  .hb-btn { padding: 14px 10px; font-size: 14px; }
  .metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .metric { padding: 11px 10px; }
  .metric .m-val { font-size: 18px; }
  .card { padding: 16px; }
  .btn { padding: 14px 20px; font-size: 15.5px; min-height: 46px; }
  .btn.sm { min-height: 38px; }
  .input { padding: 13px 14px; min-height: 46px; font-size: 16px; }
  .tabbar button { padding: 7px 0; }
  .tabbar button .tab-ico { font-size: 21px; }
  .des-toolbar { gap: 6px; }
  .comp-chip { padding: 9px 14px; }
  .filter-chip { padding: 9px 15px; }
  .modal { border-radius: 20px 20px 0 0; }
}
@media (max-width: 380px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric .m-val { font-size: 16px; }
  .hero-banner .hb-title { font-size: 17px; }
}
/* PDA 扫描枪场景：物理扫码输入即键盘 Enter，全局监听 */
body.pda-listen .input.mono:focus { background: var(--accent-soft); }

.hidden { display: none !important; }
.muted { color: var(--ink-3); font-weight: 400; }
.mono { font-family: var(--mono); letter-spacing: .05em; }
.right { text-align: right; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; }

/* ---------- 数据列表操作按钮 & 搜索行（移动端适配 2026-08-31） ---------- */
.search-row { display: flex; gap: 8px; }
.search-row .input { flex: 1; min-width: 0; width: auto; }
.search-row .btn { flex: none; white-space: nowrap; padding-left: 18px; padding-right: 18px; }
.li-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.li-actions .btn { padding: 6px 12px; font-size: 12.5px; min-height: 0; border-radius: 9px; white-space: nowrap; }
@media (max-width: 700px) {
  .list-item { flex-wrap: wrap; }
  .list-item .li-main { flex-basis: calc(100% - 20px); }
  .li-actions { width: 100%; justify-content: flex-end; padding-top: 4px; }
}

/* 模板/记录操作按钮：窄屏 5 键等分一行，文本永不换行 */
.li-actions .btn { white-space: nowrap; }
@media (max-width: 700px) {
  .li-actions { gap: 5px; }
  .li-actions .btn { flex: 1 1 0; min-width: 0; padding: 7px 4px; font-size: 12px; text-align: center; }
}
