/* ============================================================
   dsh-rc mobile UI — design system (dark-first, touch-first)
   ============================================================ */
:root {
  --bg: #0a0e14;
  --bg-raise: #10161f;
  --bg-card: #151d29;
  --bg-card-2: #1a2432;
  --line: #223042;
  --line-soft: #1b2634;
  --fg: #e9eef5;
  --fg-dim: #8b98a9;
  --fg-faint: #5d6b7d;
  --accent: #4d8dff;
  --accent-soft: rgba(77, 141, 255, .14);
  --accent-fg: #fff;
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .12);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3);
  --shadow-2: 0 8px 24px rgba(0,0,0,.35);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.22, .8, .32, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 15px/1.6 -apple-system, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size: 12px; word-break: break-all; }
button { font-family: inherit; }
::-webkit-scrollbar { display: none; }

.view {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  padding-top: var(--safe-t); background: var(--bg);
  animation: viewIn .22s var(--ease);
}
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------------- 顶部栏 ---------------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; min-height: 58px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  position: relative; z-index: 5;
}
.topbar h1 { font-size: 17px; font-weight: 650; margin: 0; letter-spacing: .01em; }
.chat-title-wrap { flex: 1; min-width: 0; }
.chat-title-wrap h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.chat-status { font-size: 12px; color: var(--fg-dim); margin-top: 1px; display: flex; align-items: center; gap: 5px; }
.chat-status.running { color: var(--ok); }
.chat-status.running::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); animation: pulse 1.4s infinite;
}

.badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-card); color: var(--fg-dim); border: 1px solid var(--line-soft);
}
.badge .bdot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-faint); }
.badge.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.badge.on .bdot { background: var(--ok); }
.badge.off { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--danger-soft); }
.badge.off .bdot { background: var(--danger); animation: pulse 1.2s infinite; }

/* ---------------- 状态条 / 遮罩 ---------------- */
.banner {
  position: fixed; top: var(--safe-t); left: 0; right: 0; z-index: 40;
  padding: 7px 14px; text-align: center; font-size: 13px;
  background: #2d2410; color: var(--warn); border-bottom: 1px solid rgba(251,191,36,.25);
  animation: slideDown .25s var(--ease);
}
@keyframes slideDown { from { transform: translateY(-100%); } }
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 8, 12, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.offline-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 28px 32px; box-shadow: var(--shadow-2); max-width: 22em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.offline-card h2 { margin: 0; font-size: 17px; }
.offline-card p { margin: 0; color: var(--fg-dim); font-size: 13px; line-height: 1.7; }
.offline-pulse {
  width: 14px; height: 14px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 0 rgba(248,113,113,.5); animation: ripple 1.6s infinite;
}
@keyframes ripple { 70% { box-shadow: 0 0 0 14px rgba(248,113,113,0); } 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------------- 会话列表 ---------------- */
.list-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.ptr {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 0; overflow: hidden; color: var(--fg-dim); font-size: 12px;
  transition: height .2s var(--ease);
}
.ptr-spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.list { padding: 12px 14px calc(96px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }

.session-row {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--bg-card); color: var(--fg); border: 1px solid var(--line-soft);
  border-radius: var(--r-m); padding: 14px 15px;
  transition: transform .12s var(--ease), border-color .15s, background .15s;
  animation: rowIn .25s var(--ease) backwards;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.session-row:active { transform: scale(.98); background: var(--bg-card-2); }
.session-row .title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.session-row .title span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-row .meta {
  font-size: 12px; color: var(--fg-dim); margin-top: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.run-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: #33404f; }
.run-dot.live { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.6); animation: pulse 1.6s infinite; }

.skel {
  border-radius: var(--r-m); height: 68px;
  background: linear-gradient(100deg, var(--bg-card) 40%, var(--bg-card-2) 50%, var(--bg-card) 60%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { color: var(--fg-dim); text-align: center; margin-top: 56px; font-size: 14px; line-height: 2; }
.empty .glyph { font-size: 34px; display: block; margin-bottom: 8px; opacity: .6; }

/* 项目分组 */
.group-head {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: none; border: 0; color: var(--fg); cursor: pointer;
  padding: 8px 4px 6px; text-align: left; animation: rowIn .25s var(--ease) backwards;
}
.group-head .chev { font-size: 9px; color: var(--fg-faint); transition: transform .18s var(--ease); width: 12px; }
.group-head .chev.open { transform: rotate(90deg); }
.group-head .gname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.group-head .gname > span:first-child { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-head .gpath { font-size: 11px; color: var(--fg-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-head .gcount {
  font-size: 11px; color: var(--fg-dim); background: var(--bg-card);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 8px;
}
.group-body { display: flex; flex-direction: column; gap: 8px; margin: 0 0 6px 12px; padding-left: 9px; border-left: 1px solid var(--line-soft); }
.group-body .session-row { animation: none; }

.fab {
  position: fixed; right: 18px; bottom: calc(84px + var(--safe-b)); z-index: 30;
  width: 54px; height: 54px; border-radius: 18px; border: 0; font-size: 26px; line-height: 1;
  background: var(--accent); color: var(--accent-fg); box-shadow: 0 8px 20px rgba(77,141,255,.35);
  transition: transform .12s var(--ease);
}
.fab:active { transform: scale(.92); }

/* ---------------- 聊天 ---------------- */
.turn-progress {
  height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 40% 100%; animation: tslide 1.2s linear infinite;
}
@keyframes tslide { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.chat-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
#chat-list { padding: 14px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.load-older {
  align-self: center; border: 1px solid var(--line); background: var(--bg-card);
  color: var(--fg-dim); font-size: 12px; padding: 6px 14px; border-radius: 999px;
}
.load-older:active { background: var(--bg-card-2); }

.msg { max-width: 86%; padding: 10px 13px; font-size: 15px; word-break: break-word; animation: msgIn .18s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } }
.msg.user {
  align-self: flex-end; background: var(--accent); color: var(--accent-fg);
  border-radius: var(--r-l) var(--r-l) 5px var(--r-l); white-space: pre-wrap;
  box-shadow: var(--shadow-1);
}
.msg.user.pending { opacity: .55; }
.msg.user.failed { background: var(--danger); }
.msg.assistant {
  align-self: flex-start; background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-l) var(--r-l) var(--r-l) 5px; box-shadow: var(--shadow-1);
}
.msg.assistant.streaming { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-soft)); }
.msg .cursor {
  display: inline-block; width: 8px; height: 15px; border-radius: 2px;
  background: var(--accent); vertical-align: -2px; animation: pulse 1s infinite;
}

/* markdown */
.msg p { margin: .35em 0; }
.msg ul, .msg ol { margin: .3em 0; padding-left: 1.4em; }
.msg li { margin: .15em 0; }
.msg h1, .msg h2, .msg h3 { font-size: 1.06em; margin: .7em 0 .3em; font-weight: 650; }
.msg a { color: var(--accent); }
.msg code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(127,147,170,.14); padding: .1em .35em; border-radius: 5px; }
.codeblock { margin: .5em 0; border: 1px solid var(--line-soft); border-radius: var(--r-s); overflow: hidden; background: #0b1017; }
.codeblock .code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line-soft);
}
.codeblock .code-lang { font-size: 11px; color: var(--fg-faint); font-family: ui-monospace, Menlo, monospace; }
.codeblock .code-copy {
  border: 0; background: none; color: var(--fg-dim); font-size: 11px; cursor: pointer;
  padding: 2px 8px; border-radius: 6px;
}
.codeblock .code-copy:active { background: var(--accent-soft); color: var(--accent); }
.codeblock pre { margin: 0; padding: 10px 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.55; }
.codeblock pre code { background: none; padding: 0; }

.reason-toggle {
  display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  font-size: 12px; color: var(--fg-faint); margin-bottom: 6px;
}
.reason-toggle .arrow { transition: transform .18s var(--ease); font-size: 10px; }
.reason-toggle.open .arrow { transform: rotate(90deg); }
.reasoning {
  color: var(--fg-dim); font-size: 13px; line-height: 1.65;
  border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin-bottom: 8px;
  white-space: pre-wrap;
}

/* 工具卡片 */
.tool-card {
  align-self: stretch; background: var(--bg-raise); border: 1px solid var(--line-soft);
  border-radius: var(--r-m); padding: 9px 13px; font-size: 13px; animation: msgIn .18s var(--ease);
}
.tool-card .head { display: flex; gap: 9px; align-items: center; cursor: pointer; color: var(--fg-dim); }
.tool-card .name { color: var(--fg); font-weight: 600; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.tool-card .chev { margin-left: auto; font-size: 10px; transition: transform .18s var(--ease); }
.tool-card.open .chev { transform: rotate(90deg); }
.tool-card .body {
  margin-top: 8px; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--fg-dim);
  max-height: 38vh; overflow-y: auto; border-top: 1px dashed var(--line-soft); padding-top: 8px;
}
.tstat { width: 15px; height: 15px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.tstat.run { color: var(--warn); }
.tstat.run::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid rgba(251,191,36,.3); border-top-color: var(--warn);
  animation: spin .8s linear infinite;
}
.tstat.ok { color: var(--ok); }
.tstat.err { color: var(--danger); }

.notice { align-self: center; font-size: 12px; color: var(--fg-faint); padding: 3px 10px; }
.notice.err { color: var(--danger); }

/* 审批：底部动作条 + 历史内联卡 */
.approval-sheet {
  position: relative; z-index: 8;
  margin: 0 12px; padding: 13px 14px;
  background: #221a0e; border: 1px solid rgba(251,191,36,.4); border-radius: var(--r-m);
  box-shadow: var(--shadow-2); animation: sheetUp .25s var(--ease);
}
@keyframes sheetUp { from { opacity: 0; transform: translateY(14px); } }
.approval-sheet h3 { margin: 0 0 3px; font-size: 14px; color: var(--warn); display: flex; align-items: center; gap: 8px; }
.approval-sheet h3 .countdown { margin-left: auto; font-size: 11px; color: var(--fg-dim); font-weight: 400; }
.approval-sheet .reason { font-size: 13px; color: var(--fg); white-space: pre-wrap; word-break: break-word; margin-bottom: 11px; max-height: 20vh; overflow-y: auto; }
.approval-sheet .actions { display: flex; gap: 10px; }
.approval-sheet .actions .btn { flex: 1; padding: 12px; font-weight: 600; }
.approval-card {
  align-self: stretch; background: #221a0e; border: 1px solid rgba(251,191,36,.35);
  border-radius: var(--r-m); padding: 11px 13px; opacity: .75;
}
.approval-card h3 { margin: 0; font-size: 13px; color: var(--fg-dim); }
.approval-card .reason { font-size: 12px; color: var(--fg-dim); margin-top: 4px; white-space: pre-wrap; word-break: break-word; }

/* 到底部按钮 */
.to-bottom {
  position: absolute; right: 16px; bottom: calc(86px + var(--safe-b)); z-index: 7;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-card-2); color: var(--fg); font-size: 16px; box-shadow: var(--shadow-2);
}

/* 输入区 */
.composer-hint {
  padding: 4px 18px 0; font-size: 11px; color: var(--warn);
}
.composer {
  display: flex; gap: 9px; align-items: flex-end;
  padding: 9px 14px calc(10px + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
}
.composer textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg-card); color: var(--fg); padding: 11px 16px; font-size: 15px;
  max-height: 120px; font-family: inherit; line-height: 1.45;
  transition: border-color .15s;
}
.composer textarea:focus { outline: none; border-color: var(--accent); }
.send-btn {
  border: 0; border-radius: 50%; width: 42px; height: 42px; flex: 0 0 auto;
  background: var(--accent); color: var(--accent-fg); font-size: 17px; font-weight: 700;
  transition: transform .12s var(--ease), opacity .15s;
}
.send-btn:disabled { opacity: .35; }
.send-btn:active { transform: scale(.9); }

/* 停止按钮 */
.stop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  background: var(--danger-soft); color: var(--danger);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.stop-sq { width: 9px; height: 9px; border-radius: 2px; background: var(--danger); }

/* ---------------- 按钮 ---------------- */
.btn {
  border: 1px solid var(--line); background: var(--bg-card); color: var(--fg);
  border-radius: var(--r-s); padding: 10px 16px; font-size: 15px;
  transition: transform .12s var(--ease), background .15s;
}
.btn:active { transform: scale(.97); background: var(--bg-card-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:active { filter: brightness(1.1); }
.btn.lg { padding: 13px 18px; font-size: 16px; font-weight: 600; border-radius: var(--r-m); }
.btn.danger-outline { border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); background: transparent; width: 100%; margin-top: 16px; }
.btn:disabled { opacity: .45; }
.icon-btn { border: 0; background: none; color: var(--fg-dim); font-size: 21px; padding: 4px 8px; border-radius: 8px; }
.icon-btn:active { background: var(--bg-card-2); color: var(--fg); }

/* ---------------- Tab ---------------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft); padding-bottom: var(--safe-b);
}
.tab { flex: 1; padding: 13px 0 12px; border: 0; background: none; color: var(--fg-dim); font-size: 14px; position: relative; transition: color .15s; }
.tab.active { color: var(--accent); font-weight: 600; }
.tab.active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent);
}

/* ---------------- 设置 ---------------- */
.settings-body { padding: 16px 16px calc(96px + var(--safe-b)); flex: 1; overflow-y: auto; }
.setting-card { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--r-m); padding: 2px 14px; }
.setting-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row span:first-child { color: var(--fg-dim); flex: 0 0 auto; }
.setting-row .val { text-align: right; }
.settings-note { color: var(--fg-faint); font-size: 12px; margin-top: 16px; line-height: 1.7; }

/* ---------------- 配对 ---------------- */
.pair-card { margin: auto; max-width: 22.5em; padding: 26px 24px; display: flex; flex-direction: column; gap: 13px; align-items: stretch; text-align: center; }
.pair-card h1 { margin: 2px 0 0; font-size: 21px; letter-spacing: .02em; }
.pair-card p { color: var(--fg-dim); font-size: 13.5px; margin: 0; line-height: 1.7; }
.pair-logo { position: relative; width: 74px; height: 74px; margin: 0 auto 4px; }
.pair-logo .core { position: absolute; inset: 40%; border-radius: 50%; background: var(--ok); }
.pair-logo .ring { position: absolute; border: 2px solid var(--accent); border-radius: 50%; opacity: .8; }
.pair-logo .r1 { inset: 22%; }
.pair-logo .r2 { inset: 8%; animation: pulse 2.4s infinite; }
.pair-divider { display: flex; align-items: center; gap: 10px; color: var(--fg-faint); font-size: 12px; margin-top: 4px; }
.pair-divider::before, .pair-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.pair-card input {
  background: var(--bg-card); border: 1px solid var(--line); color: var(--fg);
  border-radius: var(--r-s); padding: 12px 14px; font-size: 14px; text-align: left;
}
.pair-card input:focus { outline: none; border-color: var(--accent); }

/* 扫码取景 */
#scanner { z-index: 80; }
#scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame {
  width: 62vw; height: 62vw; max-width: 300px; max-height: 300px;
  border: 3px solid var(--accent); border-radius: 20px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.45);
  z-index: 1; animation: pulse 2s infinite;
}
#scanner p { z-index: 1; margin-top: 18px; color: var(--fg); }
#scanner .btn { z-index: 1; margin-top: 12px; }

/* 弹窗 */
.modal-card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 20px; width: min(92vw, 26em); text-align: left; box-shadow: var(--shadow-2);
  animation: sheetUp .25s var(--ease);
}
.modal-card h2 { font-size: 16px; margin: 0 0 13px; }
.modal-card input, .modal-card textarea, .modal-card select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--fg);
  border-radius: var(--r-s); padding: 11px 13px; font-size: 15px; margin-bottom: 10px; font-family: inherit;
}
.modal-card input:focus, .modal-card textarea:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(104px + var(--safe-b)); transform: translateX(-50%);
  background: #26313f; color: var(--fg); padding: 10px 20px; border-radius: 999px;
  font-size: 14px; z-index: 60; max-width: 86vw; text-align: center;
  box-shadow: var(--shadow-2); animation: sheetUp .2s var(--ease);
}

/* ---------------- 浅色主题 ---------------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f9;
    --bg-raise: #ffffff;
    --bg-card: #ffffff;
    --bg-card-2: #eef1f6;
    --line: #dde3ec;
    --line-soft: #e8ecf3;
    --fg: #17222f;
    --fg-dim: #5d6b7d;
    --fg-faint: #93a0b1;
    --accent-soft: rgba(77, 141, 255, .1);
    --shadow-1: 0 1px 3px rgba(23, 34, 47, .08);
    --shadow-2: 0 10px 30px rgba(23, 34, 47, .12);
  }
  .codeblock { background: #f0f3f8; }
  .approval-sheet, .approval-card { background: #fef6e0; }
  .banner { background: #fff3d6; }
  .overlay { background: rgba(244, 246, 249, .82); }
  .toast { background: #17222f; color: #e9eef5; }
  #scanner p { color: #fff; }
}
