/* 工单速记 — mobile work log */
:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --ink: #14181F;
  --muted: #7A8394;
  --line: #E6EAF0;
  --accent: #2F6BFF;
  --accent-soft: #EAF0FF;
  --success: #12B76A;
  --success-soft: #E7F8F0;
  --warn: #F79009;
  --warn-soft: #FFF4E5;
  --danger: #F04438;
  --danger-soft: #FEECEB;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(20, 24, 31, 0.08);
  --top-h: 108px;
  --composer-h: 92px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
input, textarea { outline: none; }

#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(20,24,31,0.04);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 10px;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.brand {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
}
.icon-btn:disabled { opacity: 0.35; }
.icon-btn:active { transform: scale(0.96); }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.sum-card .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.sum-card .value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sum-card .value.warn { color: var(--warn); }
.sum-card .value.success { color: var(--success); }
.sum-card .value.accent { color: var(--accent); }

/* Tabs */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px 12px 6px;
  background: var(--bg);
  position: sticky;
  top: var(--top-h);
  z-index: 15;
}
.tab {
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}
.tab.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.main {
  flex: 1;
  padding: 8px 12px calc(var(--composer-h) + var(--safe-b) + 16px);
  min-height: 200px;
}
.view { display: none; }
.view.active { display: block; }

/* Filters */
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.chip.active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, white);
  background: var(--accent-soft);
}
#btn-client-filter {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip.push { margin-left: auto; }
.chip.warn-active {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 40%, white);
  background: var(--warn-soft);
}

/* Record cards */
.record-list, .batch-list, .client-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}
.rec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 11px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.rec:active { transform: scale(0.99); }
.rec.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.rec-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  margin-top: 2px;
  color: white;
  background: white;
}
.rec.selected .rec-check {
  background: var(--accent);
  border-color: var(--accent);
}
.rec-check svg { opacity: 0; }
.rec.selected .rec-check svg { opacity: 1; }

.rec-body { min-width: 0; }
.rec-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.rec-client {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.tag.pending { color: var(--warn); background: var(--warn-soft); }
.tag.billed { color: var(--accent); background: var(--accent-soft); }
.tag.paid { color: var(--success); background: var(--success-soft); }
.tag.draft { color: var(--muted); background: var(--bg); }

.rec-content {
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 6px;
  word-break: break-word;
}
.rec-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.rec-metrics .m {
  font-size: 13px;
  color: var(--muted);
}
.rec-metrics .m strong {
  color: var(--ink);
  font-weight: 650;
}
.rec-metrics .amount {
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}
.rec-meta {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.rec-raw {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

/* Batch cards */
.batch-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.batch-card.paid { border-color: color-mix(in srgb, var(--success) 35%, white); }
.batch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.batch-title {
  font-weight: 700;
  font-size: 15px;
}
.batch-total {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.batch-card.paid .batch-total { color: var(--success); }
.batch-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.batch-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.batch-line .l {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-line .r {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  flex: 0 0 auto;
}
.batch-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.batch-open {
  color: var(--accent);
  font-weight: 600;
  padding: 4px 0;
}

/* Clients */
.client-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.client-name { font-weight: 700; }
.client-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.client-stats {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.client-stats .n { font-weight: 750; font-size: 15px; }
.client-stats .t { font-size: 11px; color: var(--muted); }

/* Stats */
.stats-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-hero {
  background: linear-gradient(135deg, #2F6BFF 0%, #4F86FF 100%);
  color: white;
  border-radius: 18px;
  padding: 18px 16px;
}
.stat-hero .k { opacity: 0.85; font-size: 13px; }
.stat-hero .v {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 10px;
}
.stat-hero .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-hero .row .cell {
  background: rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 8px 10px;
}
.stat-hero .row .cell .kk { font-size: 11px; opacity: 0.85; }
.stat-hero .row .cell .vv {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.stat-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 64px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.bar-row .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}
.bar-row .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.kv {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 650; font-variant-numeric: tabular-nums; }

/* Composer */
.composer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(430px, 100%);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(10px + var(--safe-b));
  z-index: 30;
}
.composer-hint {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
#input-sentence {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 96px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 12px;
  line-height: 1.35;
}
#input-sentence:focus {
  border-color: color-mix(in srgb, var(--accent) 45%, white);
  background: white;
}
.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.28);
}
.send-btn:active { transform: scale(0.95); }

/* Batch bar */
.batch-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--composer-h) + var(--safe-b) - 8px);
  width: min(430px, 100%);
  background: var(--ink);
  color: white;
  border-radius: 16px 16px 0 0;
  padding: 12px 14px calc(12px + var(--safe-b));
  z-index: 35;
  box-shadow: var(--shadow);
}
.batch-bar-info {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.batch-bar-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
}

/* Buttons */
.btn {
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 650;
  font-size: 14px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: white; }
.btn.ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.batch-bar .btn.ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.12);
}
.btn.warn { background: var(--warn); color: white; }
.btn.danger { background: var(--danger); color: white; }
.btn.danger.ghost {
  background: var(--danger-soft);
  color: var(--danger);
  border: none;
}
.btn:disabled { opacity: 0.45; }
.btn.block { width: 100%; }

/* Sheets */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 25, 0.45);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-mask[hidden] { display: none !important; }
.sheet {
  width: min(430px, 100%);
  background: white;
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(16px + var(--safe-b));
  max-height: min(88vh, 760px);
  overflow: auto;
  animation: sheet-up 0.22s ease;
}
@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 4px auto 12px;
}
.sheet-title {
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 8px;
}
.sheet-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field > span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.field input {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 11px 12px;
}
.field input:focus {
  border-color: color-mix(in srgb, var(--accent) 45%, white);
  background: white;
}
.field-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.amount-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 14px;
}
.amount-line strong {
  font-size: 22px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.inline-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.inline-date input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: var(--bg);
}
.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 6px;
}
.sheet-actions:has(.btn.danger.ghost) {
  grid-template-columns: 1fr 1fr 1.1fr;
}

.parse-preview {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.parse-preview .hl {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 1px 5px;
  margin-right: 4px;
  font-weight: 600;
}
.parse-src {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  word-break: break-all;
  opacity: 0.9;
}
.items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.item-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--bg);
}
.item-row-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.item-row-top .item-name {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: white;
  font-weight: 650;
}
.item-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 18px;
  line-height: 1;
}
.item-row-bot {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.item-row-bot label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.item-row-bot input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: white;
  font-variant-numeric: tabular-nums;
}
.item-amt {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: right;
}
.settings-row {
  margin: 4px 0 12px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.check-line input { width: 16px; height: 16px; }
.send-btn.loading { opacity: 0.7; }

.client-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 12px;
}
.client-suggest:empty { display: none; }
.suggest-chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, white);
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.choice {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice .title { font-weight: 700; }
.choice .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Empty */
.empty {
  text-align: center;
  padding: 48px 16px 24px;
  color: var(--muted);
}
.empty-icon { font-size: 36px; margin-bottom: 8px; }
.empty p { margin: 4px 0; }
.empty-sub { font-size: 13px; opacity: 0.85; }

/* Toast */
.toast-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--composer-h) + 72px + var(--safe-b));
  width: min(400px, calc(100% - 24px));
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: rgba(20, 24, 31, 0.94);
  color: white;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toast-in 0.18s ease;
}
.toast .action {
  color: #8FB3FF;
  font-weight: 700;
  flex: 0 0 auto;
}
@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Login */
.login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #EAF0FF 0%, var(--bg) 45%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-screen[hidden] { display: none !important; }
.login-card {
  width: min(380px, 100%);
  background: white;
  border-radius: 18px;
  padding: 22px 18px 16px;
  box-shadow: var(--shadow);
}
.login-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}
.login-sub {
  margin: 0 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.login-hint {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.user-line {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.muted-x { color: var(--muted); font-size: 12px; }

/* Desktop gentle frame */
@media (min-width: 480px) {
  body { padding: 12px 0 0; }
  #app {
    min-height: calc(100vh - 12px);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .composer { bottom: 12px; border-radius: 18px 18px 0 0; }
  .batch-bar { bottom: calc(12px + var(--composer-h) + var(--safe-b) - 8px); border-radius: 18px 18px 0 0; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Loading mask */
.loading-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 18, 25, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.loading-mask[hidden] { display: none !important; }
.loading-card {
  background: white;
  border-radius: 16px;
  padding: 22px 28px 18px;
  text-align: center;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(20, 24, 31, 0.18);
}
.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.loading-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.send-btn.loading,
.btn.loading {
  opacity: 0.55;
  pointer-events: none;
}

.client-card[data-id] {
  cursor: pointer;
  user-select: none;
}
.client-card[data-id]:active {
  transform: scale(0.99);
}

/* Mic */
.mic-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.mic-btn.recording {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
  box-shadow: 0 0 0 0 rgba(240, 68, 56, 0.5);
  animation: mic-pulse 1.2s ease-out infinite;
}
@keyframes mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 68, 56, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(240, 68, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 68, 56, 0); }
}
.mic-btn:disabled { opacity: 0.5; }

.captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.captcha-row input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
}
.captcha-img {
  width: 120px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #f0f3f8;
  flex: 0 0 auto;
}
.login-hint {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}