/* ============================================================
   上海图书馆 · 藏书速查  —  移动端优先样式
   ============================================================ */
:root {
  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --green: #188038;
  --green-bg: #e6f4ea;
  --green-dot: #34a853;
  --amber: #b06000;
  --amber-bg: #feefe3;
  --amber-dot: #f9ab00;
  --red: #c5221f;
  --red-bg: #fce8e6;
  --red-dot: #ea4335;
  --transit: #1a73e8;
  --transit-bg: #e8f0fe;
  --grey: #5f6368;
  --grey-bg: #f1f3f4;
  --grey-dot: #9aa0a6;
  --ink: #202124;
  --ink-2: #3c4043;
  --ink-3: #5f6368;
  --line: #e0e0e0;
  --bg: #f5f6f8;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 3px rgba(60, 64, 67, .12), 0 1px 2px rgba(60, 64, 67, .08);
  --shadow-lg: 0 4px 16px rgba(60, 64, 67, .18);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 凡是用 hidden 属性标记"不显示"的元素，必须真的不显示：
   UA 默认的 [hidden]{display:none} 优先级极低，会被下面任何带 display 的类规则
   （如 .lock-screen 的 display:flex）盖掉，导致"已解锁但遮罩仍在挡点击"。 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 15px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue);
  padding-top: var(--safe-top);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.topbar-inner { padding: 10px 12px; }
.brand { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #fff; }
.brand-icon { font-size: 20px; }
.brand-text strong { font-size: 16px; letter-spacing: .5px; display: block; line-height: 1.2; }
.brand-text small { font-size: 11px; opacity: .85; }

.searchbar { display: flex; gap: 7px; align-items: stretch; }
.search-input-wrap { position: relative; flex: 1; display: flex; }
.search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: .55; pointer-events: none;
}
#q {
  flex: 1; width: 100%;
  border: none; outline: none;
  border-radius: 22px;
  padding: 10px 34px 10px 34px;
  font-size: 15px; background: #fff; color: var(--ink);
  appearance: none;
}
#q::-webkit-search-cancel-button { display: none; }
.clear-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--ink-3);
  font-size: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.clear-btn.show { display: flex; }
.search-btn {
  border: none; background: #fff; color: var(--blue);
  font-weight: 600; font-size: 14px;
  border-radius: 22px; padding: 0 16px; white-space: nowrap;
}
.search-btn:active { background: #e8f0fe; }
.adv-toggle {
  border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff;
  border-radius: 50%; width: 38px; font-size: 16px; flex-shrink: 0;
}
.adv-toggle.active { background: rgba(255, 255, 255, .25); }

/* 检索建议下拉 */
.suggest-box {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg);
  overflow: hidden; z-index: 60; max-height: 320px; overflow-y: auto;
}
.suggest-item { padding: 10px 14px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid #f0f0f0; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:active, .suggest-item.active { background: var(--grey-bg); }

/* 高级面板 */
.adv-panel { background: var(--blue-dark); padding: 12px; }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adv-field span { display: block; font-size: 11px; color: rgba(255, 255, 255, .8); margin-bottom: 3px; }
.adv-field select {
  width: 100%; padding: 8px; border-radius: 8px; border: none;
  background: #fff; color: var(--ink); font-size: 13px;
}
.adv-hint { margin: 10px 0 0; font-size: 11px; color: rgba(255, 255, 255, .8); line-height: 1.4; }

/* ---------- 优先馆条 ---------- */
.prio-bar {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 7px 12px; background: rgba(0, 0, 0, .18);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.prio-tag {
  font-size: 11.5px; color: #fff; font-weight: 600; white-space: nowrap;
  letter-spacing: .3px;
}
.prio-select {
  flex: 1; min-width: 0; max-width: 260px;
  padding: 5px 8px; border-radius: 8px; border: none;
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600;
}
.prio-chip {
  border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff;
  border-radius: 15px; padding: 4px 11px; font-size: 11.5px; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.prio-chip.on { background: #fff; color: var(--blue-dark); border-color: #fff; font-weight: 600; }
.prio-chip:active { opacity: .8; }

/* ---------- 工具条 ---------- */
.toolbar {
  position: sticky; top: var(--head-h, 0px); z-index: 40;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 8px 12px;
}
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result-summary { font-size: 13px; color: var(--ink-3); flex-shrink: 1; min-width: 0; }
.result-summary b { color: var(--ink); font-weight: 600; }
.result-summary .sum-hit {
  color: var(--green); background: var(--green-bg);
  padding: 1px 7px; border-radius: 9px; font-weight: 700;
}
.toolbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.slider {
  width: 38px; height: 22px; border-radius: 22px; background: #ccc;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.slider::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.switch input:checked + .slider { background: var(--green-dot); }
.switch input:checked + .slider::after { transform: translateX(16px); }
.switch-label { font-size: 12px; color: var(--ink-2); white-space: nowrap; }

.lib-filter {
  padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 12px; max-width: 130px;
}

/* 进度条 */
.progress-wrap { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.progress-bar { flex: 1; height: 4px; background: var(--grey-bg); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--blue); border-radius: 4px; transition: width .3s; }
.progress-text { font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* ---------- 主内容 ---------- */
.content { max-width: 860px; margin: 0 auto; padding: 12px; }

/* 欢迎页 */
.welcome { padding: 20px 0; }
.welcome-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 22px;
  text-align: center; box-shadow: var(--shadow);
}
.welcome-emoji { font-size: 46px; }
.welcome-card h1 { font-size: 20px; margin: 10px 0 8px; color: var(--ink); }
.welcome-desc { font-size: 14px; color: var(--ink-3); margin: 0 0 18px; line-height: 1.7; }
.welcome-desc strong { color: var(--blue); }
.welcome-prio {
  display: flex; gap: 9px; align-items: flex-start; text-align: left;
  background: var(--transit-bg); border: 1px solid #d2e3fc; border-radius: var(--radius-sm);
  padding: 10px 12px; margin: 0 0 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
}
.welcome-prio b { color: var(--blue-dark); }
.welcome-prio small { color: var(--ink-3); font-size: 11.5px; }
.wp-icon { font-size: 16px; line-height: 1.4; flex-shrink: 0; }
.welcome-tips { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.tip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); }
.tip-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green-dot); }
.dot-amber { background: var(--amber-dot); }
.dot-red { background: var(--red-dot); }
.quick-searches { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.quick-label { font-size: 12px; color: var(--ink-3); }
.quick-chip {
  border: 1px solid var(--line); background: #fff; color: var(--blue);
  border-radius: 16px; padding: 5px 13px; font-size: 13px;
}
.quick-chip:active { background: var(--transit-bg); }

/* ---------- 结果卡片 ---------- */
.results { display: flex; flex-direction: column; gap: 11px; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; border-left: 4px solid transparent; transition: border-color .2s;
}
.card.st-available { border-left-color: var(--green-dot); }
.card.st-inlib { border-left-color: var(--amber-dot); }
.card.st-out { border-left-color: var(--red-dot); }
.card.st-transit { border-left-color: var(--transit); }
.card.st-loading { border-left-color: var(--grey-dot); }
.card.hidden-by-filter { display: none; }

.card-main { display: flex; gap: 11px; padding: 12px; }
.cover-wrap {
  width: 62px; height: 84px; flex-shrink: 0; border-radius: 6px; overflow: hidden;
  background: var(--grey-bg); display: flex; align-items: center; justify-content: center;
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder { font-size: 26px; opacity: .5; }

.card-info { flex: 1; min-width: 0; }
.card-title {
  font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35;
  margin: 0 0 4px; word-break: break-word;
}
.card-title a { color: inherit; }
.card-meta { font-size: 12.5px; color: var(--ink-3); margin: 0 0 6px; line-height: 1.5; }
.card-meta .sep { margin: 0 4px; opacity: .5; }
.badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--grey-bg); color: var(--ink-2);
}
.badge.format { background: var(--transit-bg); color: var(--blue-dark); }
.badge.online { background: var(--green-bg); color: var(--green); }
.callnum { font-size: 12px; color: var(--ink-3); font-family: "SF Mono", Menlo, monospace; }

/* ---------- 优先馆徽标（卡片顶部醒目标注） ---------- */
.prio-badge {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 0 0 8px; padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 12.5px; line-height: 1.5; border: 1px solid transparent;
  background: var(--grey-bg); color: var(--ink-3);
}
.prio-badge .pb-ico { flex-shrink: 0; font-size: 13px; line-height: 1.45; }
.prio-badge .pb-body { min-width: 0; flex: 1; }
.prio-badge .pb-main { font-weight: 600; }
.prio-badge .pb-sub { font-size: 11.5px; opacity: .85; margin-top: 1px; word-break: break-word; }
.prio-badge .pb-sub .mono { font-family: "SF Mono", Menlo, monospace; }
.prio-badge.loading { background: var(--grey-bg); color: var(--ink-3); }
.prio-badge.loading .pb-ico { animation: pulse 1.1s infinite; }
.prio-badge.available {
  background: var(--green-bg); color: var(--green); border-color: #b7dfc1;
  box-shadow: inset 3px 0 0 var(--green-dot);
}
.prio-badge.inlib { background: var(--amber-bg); color: var(--amber); border-color: #f3d3ab; }
.prio-badge.transit { background: var(--transit-bg); color: var(--blue-dark); border-color: #d2e3fc; }
.prio-badge.out { background: var(--red-bg); color: var(--red); border-color: #f2c4bf; }
.prio-badge.none { background: var(--grey-bg); color: var(--grey); }
.prio-badge.error { background: var(--grey-bg); color: var(--ink-3); }
/* 闵行可借的书：整卡加一层淡绿描边，扫一眼就能挑出来 */
.card.prio-hit { box-shadow: var(--shadow), 0 0 0 2px rgba(52, 168, 83, .35); }

/* 状态区块 */
.status-block { padding: 0 12px 12px; }
.status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 16px;
  white-space: nowrap;
}
.pill .pill-dot { width: 8px; height: 8px; border-radius: 50%; }
.pill.available { background: var(--green-bg); color: var(--green); }
.pill.available .pill-dot { background: var(--green-dot); }
.pill.inlib { background: var(--amber-bg); color: var(--amber); }
.pill.inlib .pill-dot { background: var(--amber-dot); }
.pill.out { background: var(--red-bg); color: var(--red); }
.pill.out .pill-dot { background: var(--red-dot); }
.pill.transit { background: var(--transit-bg); color: var(--transit); }
.pill.transit .pill-dot { background: var(--transit); }
.pill.loading, .pill.other { background: var(--grey-bg); color: var(--grey); }
.pill.loading .pill-dot { background: var(--grey-dot); animation: pulse 1.1s infinite; }
.pill.other .pill-dot { background: var(--grey-dot); }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* 馆 chips */
.lib-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lib-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 4px 10px; border-radius: 14px;
  background: var(--grey-bg); color: var(--ink-2); border: 1px solid transparent;
}
.lib-chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grey-dot); flex-shrink: 0; }
.lib-chip.has-avail { background: var(--green-bg); color: var(--green); border-color: #ceead6; }
.lib-chip.has-avail .chip-dot { background: var(--green-dot); }
.lib-chip.all-out { background: var(--red-bg); color: var(--red); }
.lib-chip.all-out .chip-dot { background: var(--red-dot); }
.lib-chip .chip-count { font-weight: 600; }
.more-note { font-size: 11px; color: var(--ink-3); margin-top: 6px; }

/* 展开按钮 */
.expand-btn {
  width: 100%; border: none; background: var(--grey-bg); color: var(--ink-2);
  padding: 9px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 5px;
  border-top: 1px solid var(--line);
}
.expand-btn:active { background: #e4e6e8; }
.expand-btn .chevron { transition: transform .2s; font-size: 11px; }
.card.expanded .expand-btn .chevron { transform: rotate(180deg); }

/* 详情（完整馆藏） */
.detail { display: none; padding: 12px; background: #fafbfc; border-top: 1px solid var(--line); }
.card.expanded .detail { display: block; }
.detail-loading { text-align: center; color: var(--ink-3); font-size: 13px; padding: 14px; }
.detail-error { text-align: center; color: var(--red); font-size: 13px; padding: 14px; }

/* 展开后第一眼：优先馆（闵行区图书馆）结论 */
.detail-prio { margin: -2px 0 12px; }
.detail-prio .prio-badge { margin: 0; }

.branch-group { margin-bottom: 14px; }
.branch-group:last-child { margin-bottom: 0; }
.branch-group.prio {
  background: #fff; border: 1px solid #ceead6; border-left: 3px solid var(--green-dot);
  border-radius: 10px; padding: 10px; margin-bottom: 12px;
}
.branch-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px;
  padding-bottom: 5px; border-bottom: 2px solid var(--line);
}
.branch-group.prio .branch-head { border-bottom-color: #e3f2e6; flex-wrap: wrap; }
.prio-flag {
  font-size: 11px; font-weight: 700; color: var(--green);
  background: var(--green-bg); border-radius: 9px; padding: 2px 8px; white-space: nowrap;
}
.branch-stat { font-size: 12px; font-weight: 500; }
.branch-stat .ok { color: var(--green); }
.branch-stat .no { color: var(--red); }

.loc-group { margin-bottom: 9px; }
.loc-name { font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.loc-name::before { content: "📍"; font-size: 11px; }

.copy-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.copy-table th {
  text-align: left; color: var(--ink-3); font-weight: 500; padding: 4px 6px;
  border-bottom: 1px solid var(--line); font-size: 11px; white-space: nowrap;
}
.copy-table td { padding: 6px; border-bottom: 1px solid #eee; color: var(--ink-2); vertical-align: top; }
.copy-table tr:last-child td { border-bottom: none; }
.copy-table .mono { font-family: "SF Mono", Menlo, monospace; font-size: 11px; }
.state-tag { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.state-tag.available { background: var(--green-bg); color: var(--green); }
.state-tag.inlib { background: var(--amber-bg); color: var(--amber); }
.state-tag.out { background: var(--red-bg); color: var(--red); }
.state-tag.transit { background: var(--transit-bg); color: var(--transit); }
.state-tag.lost, .state-tag.other { background: var(--grey-bg); color: var(--grey); }
.due-link { color: var(--blue); font-size: 11px; }

.detail-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-btn {
  flex: 1; min-width: 120px; border: 1px solid var(--line); background: #fff; color: var(--blue);
  border-radius: 8px; padding: 8px; font-size: 13px; text-align: center;
}
.detail-btn:active { background: var(--transit-bg); }

/* ---------- 通知区 ---------- */
.notice { padding: 40px 20px; text-align: center; }
.notice .spinner {
  width: 34px; height: 34px; border: 3px solid var(--grey-bg); border-top-color: var(--blue);
  border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.notice h3 { font-size: 16px; color: var(--ink-2); margin: 0 0 6px; }
.notice p { font-size: 13px; color: var(--ink-3); margin: 0; }
.notice.error h3 { color: var(--red); }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 0; }
.page-btn {
  border: 1px solid var(--line); background: #fff; color: var(--blue);
  border-radius: 20px; padding: 8px 18px; font-size: 14px;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-info { font-size: 13px; color: var(--ink-3); }

/* ---------- 页脚 ---------- */
.footer { text-align: center; padding: 20px 16px 30px; font-size: 11.5px; color: var(--ink-3); }
.footer a { color: var(--ink-3); text-decoration: underline; }

/* 回到顶部 */
.back-top {
  position: fixed; right: 16px; bottom: 22px; z-index: 45;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--blue); color: #fff; font-size: 19px; box-shadow: var(--shadow-lg);
}
.back-top:active { background: var(--blue-dark); }

/* ---------- 桌面端适配 ---------- */
@media (min-width: 600px) {
  .topbar-inner { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
  .brand { margin-bottom: 0; flex-shrink: 0; }
  .searchbar { flex: 1; max-width: 620px; }
  .adv-grid { grid-template-columns: repeat(4, 1fr); }
  .content { padding: 18px 20px; }
  .cover-wrap { width: 76px; height: 104px; }
  .card-title { font-size: 17px; }
}

/* ---------- 访问口令锁屏 ---------- */
body.locked { overflow: hidden; }
.lock-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px calc(24px + var(--safe-top));
  background: linear-gradient(160deg, #e8f0fe 0%, var(--bg) 55%, #f1f3f4 100%);
}
.lock-card {
  width: 100%; max-width: 340px;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 26px 22px 22px;
  text-align: center;
}
.lock-icon { font-size: 34px; line-height: 1; }
.lock-title { margin: 10px 0 2px; font-size: 20px; color: var(--ink); }
.lock-sub { margin: 0 0 18px; font-size: 13px; color: var(--ink-3); }
.lock-input-wrap { position: relative; display: flex; align-items: center; }
.lock-input {
  width: 100%; padding: 13px 44px 13px 14px;
  font-size: 17px; letter-spacing: .3px;
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.lock-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 115, 232, .14); }
.lock-reveal {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 17px; color: var(--ink-3); border-radius: 8px;
}
.lock-reveal:active { background: var(--grey-bg); }
.lock-btn {
  width: 100%; margin-top: 12px; padding: 13px 16px;
  background: var(--blue); color: #fff; border: 0; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; transition: background .15s, opacity .15s;
}
.lock-btn:active { background: var(--blue-dark); }
.lock-btn:disabled { background: var(--grey-dot); cursor: default; }
.lock-btn.cooling { background: var(--amber); font-variant-numeric: tabular-nums; }
.lock-hint { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-3); }
.lock-msg {
  margin: 12px 0 0; padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 12.5px; text-align: left; line-height: 1.45;
}
.lock-msg.bad { background: var(--red-bg); color: var(--red); }
.lock-msg.warn { background: var(--amber-bg); color: var(--amber); }

/* ---------- 取数身份条 ---------- */
.whoami {
  margin-top: 6px; display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums;
}
.whoami.warn { color: var(--amber); }
.whoami-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-3);
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px; font-family: inherit;
}
.whoami-btn:active { background: var(--grey-bg); }
