/* ============================================================
 * 外勤管家 · 页面级样式与动效
 * 1) toast / 页面入场 / 卡片错峰入场 / 按压反馈
 * 2) 图表组件：环形进度、折线趋势、图例
 * 3) 门店详情、打卡成功态
 * ============================================================ */

/* ---------- toast ---------- */
.wq-toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%) translateY(18px) scale(.96);
  max-width: 80%;
  padding: 12px 20px;
  border-radius: 24px;
  background: rgba(31, 35, 41, .93);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  z-index: 9999;
}
.wq-toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.wq-toast.success { background: rgba(13, 144, 79, .95); }
.wq-toast.warn    { background: rgba(227, 116, 0, .95); }
.wq-toast.error   { background: rgba(217, 48, 38, .95); }

/* ---------- 页面入场：内容块错峰上浮 ---------- */
.content > * {
  animation: contentIn .38s var(--ease) both;
}
.content > *:nth-child(1) { animation-delay: .02s; }
.content > *:nth-child(2) { animation-delay: .06s; }
.content > *:nth-child(3) { animation-delay: .10s; }
.content > *:nth-child(4) { animation-delay: .14s; }
.content > *:nth-child(5) { animation-delay: .18s; }
.content > *:nth-child(6) { animation-delay: .22s; }
.content > *:nth-child(7) { animation-delay: .26s; }
.content > *:nth-child(n+8) { animation-delay: .30s; }

@keyframes contentIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* tab 切换时 tab 图标弹一下 */
.tab-item.active svg { animation: tabBounce .3s var(--ease); }
@keyframes tabBounce {
  0%   { transform: scale(.88); }
  55%  { transform: scale(1.12); }
  100% { transform: translateY(-1px) scale(1.06); }
}

/* 打卡成功后状态徽标呼吸 */
.status-badge.online { animation: none; }
.status-badge.just-clocked { animation: badgeFlash .8s var(--ease) 2; }
@keyframes badgeFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,144,79,.35); }
  50%      { box-shadow: 0 0 0 8px rgba(13,144,79,0); }
}

/* 按钮点击涟漪（轻量） */
.btn-primary:active { transform: scale(.97) translateY(1px); }

/* ---------- 图表：环形进度 ---------- */
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut {
  width: 92px; height: 92px; position: relative; flex-shrink: 0;
}
.donut svg { width: 100%; height: 100%; }
.donut .donut-track { fill: none; stroke: #eef1f6; stroke-width: 9; }
.donut .donut-fill {
  fill: none; stroke: var(--primary); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease);
}
.donut .donut-fill.green { stroke: var(--success); }
.donut .donut-fill.orange { stroke: var(--warning); }
.donut .donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.donut .donut-value { font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1; }
.donut .donut-label { font-size: 11px; color: var(--text-hint); }
.donut-meta { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.donut-meta .dm-row { display: flex; justify-content: space-between; font-size: 13px; }
.donut-meta .dm-row span:first-child { color: var(--text-hint); }

/* ---------- 图表：折线趋势 ---------- */
.line-chart { width: 100%; height: 120px; }
.line-chart svg { width: 100%; height: 100%; }
.line-chart .lc-grid { stroke: #eef1f6; stroke-width: 1; }
.line-chart .lc-area { fill: rgba(26,115,232,.10); }
.line-chart .lc-line { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .lc-dot { fill: #fff; stroke: var(--primary); stroke-width: 2; }
.line-labels { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--text-hint); }

.chart-legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; }
.chart-legend .lg-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.chart-legend .lg-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- 门店详情 ---------- */
.sd-hero {
  background: radial-gradient(120% 100% at 15% 0%, #2f8bf5 0%, var(--primary) 45%, var(--primary-dark) 100%);
  color: #fff;
  padding: 20px 18px 18px;
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(26,115,232,.26);
}
.sd-hero .sd-name { font-size: 19px; font-weight: 600; margin-bottom: 5px; }
.sd-hero .sd-sub  { font-size: 13px; color: rgba(255, 255, 255, .8); }
.sd-hero .sd-badges { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.sd-hero .sd-badge {
  background: rgba(255, 255, 255, .2);
  border-radius: 13px;
  padding: 4px 11px;
  font-size: 12px;
  color: #fff;
}
.sd-brand-chip {
  display: inline-block;
  padding: 7px 13px;
  margin: 0 8px 8px 0;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 空状态 / 加载 ---------- */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 37%, #eef1f5 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 数字滚动（由 common.js 驱动） ---------- */
.count-up { font-variant-numeric: tabular-nums; }

/* ---------- 卡片内通用信息行 ---------- */
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.info-row:last-child { border-bottom: none; }
.info-row .ir-label { color: var(--text-hint); font-size: 13px; }
.info-row .ir-value { font-weight: 500; }

/* ---------- 团队行 ---------- */
.team-row { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--border-light); }
.team-row:last-child { border-bottom: none; }
.team-row .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.team-row .tr-main { flex: 1; min-width: 0; }
.team-row .tr-name {
  font-size: 15px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.team-row .tr-sub {
  font-size: 12px; color: var(--text-hint); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.team-row .status-badge { flex-shrink: 0; }

/* ---------- 拜访记录卡 ---------- */
.visit-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; padding: 13px 15px; transition: transform .16s var(--ease); }
.visit-card:active { transform: scale(.985); }
.visit-card .vc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.visit-card .vc-name { flex: 1; font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-card .vc-meta { font-size: 12px; color: var(--text-hint); display: flex; gap: 12px; flex-wrap: wrap; }
.visit-card .vc-note { font-size: 13px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }

/* ============================================================
 * 工作台（首屏）：问候条 + 常用入口宫格
 * ============================================================ */

/* 问候条 */
.wb-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 14px;
}
.wb-greeting .wb-avatar {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, #5aa2ff, var(--primary));
  color: #fff; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(26, 115, 232, .25);
}
.wb-greeting .wb-hello { flex: 1; min-width: 0; }
.wb-greeting .wb-hello .h1 { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.wb-greeting .wb-hello .h2 { font-size: 12px; color: var(--text-hint); margin-top: 3px; }

/* 宫格卡片 */
.wb-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 8px 8px;
  margin-bottom: 14px;
}
.wb-card .wb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 8px;
}
.wb-card .wb-head .wb-title { font-size: 15px; font-weight: 600; }
.wb-card .wb-head .wb-more { font-size: 12px; color: var(--text-hint); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 2px;
}
.tool-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 7px;
  padding: 9px 2px 7px;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--ease), background .15s var(--ease);
  animation: contentIn .34s var(--ease) both;
}
.tool-item:nth-child(1) { animation-delay: .04s; }
.tool-item:nth-child(2) { animation-delay: .07s; }
.tool-item:nth-child(3) { animation-delay: .10s; }
.tool-item:nth-child(4) { animation-delay: .13s; }
.tool-item:nth-child(5) { animation-delay: .16s; }
.tool-item:nth-child(6) { animation-delay: .19s; }
.tool-item:nth-child(7) { animation-delay: .22s; }
.tool-item:nth-child(8) { animation-delay: .25s; }
.tool-item:active { transform: scale(.93); background: #f2f5f9; }

.tool-item .ti-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.tool-item .ti-icon svg { width: 22px; height: 22px; }
.tool-item .ti-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center;
}
.tool-item .ti-label { font-size: 12px; color: var(--text-secondary); line-height: 1.2; }
.tool-item.tool-more .ti-icon { background: #f1f4f8; }
.tool-item.tool-more .ti-icon svg { fill: #6b7684; }

/* 实心渐变图标（高频入口） */
.ti-icon.solid svg { fill: #fff; }
.ti-icon.c-blue   { background: linear-gradient(135deg, #5aa2ff, #1a73e8); box-shadow: 0 5px 12px rgba(26,115,232,.22); }
.ti-icon.c-green  { background: linear-gradient(135deg, #4fd18b, #0d904f); box-shadow: 0 5px 12px rgba(13,144,79,.22); }
.ti-icon.c-orange { background: linear-gradient(135deg, #ffb457, #e37400); box-shadow: 0 5px 12px rgba(227,116,0,.22); }
.ti-icon.c-purple { background: linear-gradient(135deg, #a78bfa, #7c4dff); box-shadow: 0 5px 12px rgba(124,77,255,.22); }
.ti-icon.c-red    { background: linear-gradient(135deg, #ff7b72, #d93026); box-shadow: 0 5px 12px rgba(217,48,38,.22); }

/* 浅底图标（次级入口） */
.ti-icon.s-blue   { background: var(--primary-light); }
.ti-icon.s-green  { background: var(--success-light); }
.ti-icon.s-orange { background: var(--warning-light); }
.ti-icon.s-purple { background: var(--purple-light); }
.ti-icon.s-gray   { background: #f1f4f8; }
.ti-icon.s-blue svg   { fill: var(--primary); }
.ti-icon.s-green svg  { fill: var(--success); }
.ti-icon.s-orange svg { fill: var(--warning); }
.ti-icon.s-purple svg { fill: #7c4dff; }
.ti-icon.s-gray svg   { fill: #6b7684; }

/* 工作台补充类 */
.card-sub { font-size: 12px; color: var(--text-hint); }
.timeline-item .content-text.muted { color: var(--text-hint); }
.camera-frame.compact { height: 132px; }

/* ============================================================
 * 搜索式顶栏：左图标 + 中间搜索 + 右通知
 * ============================================================ */
.top-bar.search-mode {
  justify-content: flex-start;
  gap: 6px;
}
.top-bar.search-mode .action-btn.sm {
  width: 32px; height: 32px;
  flex-shrink: 0;
  margin-left: -5px;
}
.top-bar.search-mode .action-btn.sm svg { width: 19px; height: 19px; }

.tb-search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  border-radius: 17px;
  background: #f1f4f8;
  transition: background .18s var(--ease), box-shadow .18s var(--ease);
}
.tb-search:focus-within {
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--primary), 0 2px 8px rgba(26, 115, 232, .12);
}
.tb-search svg { width: 16px; height: 16px; fill: #8a93a0; flex-shrink: 0; }
.tb-search input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none; padding: 0;
  font-size: 13px; color: var(--text);
  font-family: inherit;
}
.tb-search input::placeholder { color: #9aa3af; }
.tb-date { font-size: 12px; color: var(--text-hint); flex-shrink: 0; padding-left: 2px; }

/* 卡片标题右侧的“时间 + 状态”组合 */
.card-header .ch-right { display: flex; align-items: center; gap: 8px; }

/* ============================================================
 * 考勤折叠条（打卡降权态，替代满屏打卡卡）
 * ============================================================ */
.clock-bar {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--success);
  margin-bottom: 14px;
}
.clock-bar.warn { border-left-color: var(--warning); }
.clock-bar.danger { border-left-color: var(--danger); }
.clock-bar[hidden] { display: none; }
.clock-bar .cb-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--success-light); color: var(--success);
}
.clock-bar .cb-icon svg { width: 18px; height: 18px; fill: currentColor; }
.clock-bar.warn .cb-icon { background: var(--warning-light); color: var(--warning); }
.clock-bar.danger .cb-icon { background: var(--danger-light); color: var(--danger); }
.clock-bar .cb-main { flex: 1; min-width: 0; }
.clock-bar .cb-title {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.clock-bar .cb-sub {
  font-size: 12px; color: var(--text-hint); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.clock-bar .cb-btn {
  flex-shrink: 0;
  height: 30px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 15px;
  background: #fff; color: var(--primary);
  font-size: 12px; font-weight: 600; font-family: inherit;
  cursor: pointer;
}
.clock-bar .cb-btn.primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
#clockCard[hidden] { display: none; }

/* ============================================================
 * 通用底部面板（可装任意内容：工作台入口编辑等）
 * ============================================================ */
.panel-head {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 12px 8px; text-align: center;
}
.panel-head span { font-size: 15px; font-weight: 600; color: var(--text); }
.panel-head small { font-size: 12px; color: var(--text-hint); }
.panel-body { max-height: 54vh; overflow-y: auto; padding: 2px 10px; }
.panel-foot {
  display: flex; gap: 10px;
  padding: 10px 8px calc(8px + var(--safe-bot));
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}
.panel-foot .btn { flex: 1; }
.panel-foot .btn-primary { height: 44px; font-size: 15px; }
.panel-text {
  font-size: 13px; line-height: 1.6; color: var(--text-secondary);
  padding: 6px 4px 10px;
}
/* 搜索栏右侧按钮（筛选） */
.search-bar .search-icon-btn { padding: 10px; flex-shrink: 0; }
.search-bar .search-icon-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* 顶栏文字按钮（全部已读等） */
.link-btn {
  background: none; border: 0; padding: 4px 2px;
  font-size: 12px; color: var(--primary); font-family: inherit;
}
.link-btn:active { opacity: .6; }

/* 主管端拜访记录行 */
.record-card { margin-bottom: 8px; cursor: pointer; }
.record-card .card-body { padding: 11px 14px; }
.record-top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.record-store {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.record-meta { font-size: 11px; color: var(--text-hint); }
.record-note { font-size: 12px; color: var(--text-secondary); margin-top: 5px; line-height: 1.5; }
.avatar.av-xs { width: 24px; height: 24px; font-size: 11px; }

/* 列表首字徽标：圆角矩形（门店卡片 / 拜访记录 / 主管记录通用） */
.store-badge {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #fff;
  flex-shrink: 0; letter-spacing: 0;
  background: linear-gradient(135deg, #5aa2ff, #1a73e8);
  box-shadow: 0 2px 7px rgba(26, 115, 232, .24);
}
.store-badge.green  { background: linear-gradient(135deg, #4fd18b, #0d904f); box-shadow: 0 2px 7px rgba(13,144,79,.2); }
.store-badge.orange { background: linear-gradient(135deg, #ffb457, #e37400); box-shadow: 0 2px 7px rgba(227,116,0,.2); }
.store-badge.purple { background: linear-gradient(135deg, #a78bfa, #7c4dff); box-shadow: 0 2px 7px rgba(124,77,255,.2); }
.store-badge.gray   { background: linear-gradient(135deg, #9aa4b2, #6b7280); box-shadow: 0 2px 7px rgba(107,114,128,.2); }
/* 我的拜访记录行 */
.visit-row { margin-bottom: 8px; cursor: pointer; }
.visit-row .card-body { padding: 12px 14px; }

/* 可点行的指针反馈（真 App 手感） */
.rank-row, .team-row, .map-dot, .notice-item, .store-card .sc-body { cursor: pointer; }
.rank-row:active, .team-row:active, .notice-item:active, .store-card .sc-body:active { opacity: .72; }
.map-dot { transition: transform .12s; }
.map-dot:active { transform: scale(1.35); }
.panel-kv { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border-light); }
.panel-kv:last-child { border-bottom: none; }
.panel-kv .k { flex-shrink: 0; width: 76px; font-size: 13px; color: var(--text-hint); }
.panel-kv .v { flex: 1; font-size: 13px; color: var(--text); line-height: 1.5; }

/* 工作台入口编辑行 */
.wb-editor-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.wb-editor-row:last-child { border-bottom: none; }
.we-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.we-icon svg { width: 17px; height: 17px; }
.we-main { flex: 1; min-width: 0; }
.we-rank { font-size: 10.5px; color: var(--text-hint); margin-top: 2px; }
.we-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.we-pin {
  height: 26px; padding: 0 7px;
  border: 1px solid var(--border); border-radius: 7px;
  background: #fff; color: var(--text-secondary);
  font-size: 11px; font-family: inherit; cursor: pointer;
}
.we-pin:active { background: var(--bg); }
.we-pin:disabled { opacity: .32; }
.we-order { display: flex; gap: 4px; flex-shrink: 0; }
.we-move {
  width: 26px; height: 26px;
  border: 1px solid var(--border); border-radius: 7px;
  background: #fff; color: var(--text-secondary);
  font-size: 12px; font-family: inherit; cursor: pointer;
}
.we-move:active { background: var(--bg); }
.we-move:disabled { opacity: .32; }
.we-name {
  flex: 1; min-width: 0;
  font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.we-toggle {
  position: relative; flex-shrink: 0;
  width: 42px; height: 24px; border: 0; border-radius: 12px;
  background: #dfe4ea; cursor: pointer;
  transition: background .2s var(--ease);
}
.we-toggle.on { background: var(--primary); }
.we-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: left .2s var(--ease);
}
.we-toggle.on::after { left: 20px; }

/* 每日复盘：拜访勾选行 */
.rv-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rv-row:last-child { border-bottom: none; }
.rv-check {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rv-check svg { width: 13px; height: 13px; fill: #fff; display: none; }
.rv-row.on .rv-check { background: var(--primary); border-color: var(--primary); }
.rv-row.on .rv-check svg { display: block; }
.rv-main { flex: 1; min-width: 0; }
.rv-name {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-sub {
  font-size: 12px; color: var(--text-hint); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sheet-mask {
  position: fixed; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(16, 20, 26, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease);
  z-index: 9998;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 6px 8px calc(8px + var(--safe-bot));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .14);
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sheet-title {
  text-align: center;
  font-size: 12px; color: var(--text-hint);
  padding: 12px 0 8px;
}
.sheet-item {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 12px;
  background: transparent; border: 0; border-radius: 12px;
  font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sheet-item:active { background: #f4f7fb; }
.sheet-item .si-label { font-size: 15px; font-weight: 600; color: var(--text); }
.sheet-item .si-desc { font-size: 12px; color: var(--text-hint); }
.sheet-cancel {
  margin-top: 6px;
  padding: 15px 12px;
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 12px 12px;
  color: var(--text-hint); font-size: 15px;
}

@media (min-width: 768px) {
  .sheet { max-width: 430px; }
}

/* ============================================================
 * 排行榜行（序号 / 姓名 / 分数 / 进度）
 * ============================================================ */
.rank-row { padding: 12px 16px; gap: 12px; }
.rank-info { min-width: 0; }
.rank-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px;
}
.rank-top .name {
  flex: 1; min-width: 0;
  font-size: 15px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-score {
  flex-shrink: 0;
  font-size: 16px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums;
  padding-left: 6px;
}
.rank-score .unit { font-size: 11px; font-weight: 500; margin-left: 1px; opacity: .75; }
.rank-info .progress-bar { margin-top: 0; }
.rank-info .sub { font-size: 12px; color: var(--text-hint); margin-top: 5px; }

/* ============================================================
 * 登录页：手机号 + 密码，按手机号自动识别主管 / 业务员
 * ============================================================ */
.login-page {
  flex: 1; display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff;
}

.login-hero {
  flex-shrink: 0; position: relative; overflow: hidden;
  padding: 44px 24px 62px;
  text-align: center;
  border-radius: 0 0 28px 28px;
  background: radial-gradient(122% 92% at 50% 0%, #2f8bf5 0%, #1a73e8 46%, #14509c 100%);
}
.login-hero::before,
.login-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}
.login-hero::before { width: 180px; height: 180px; top: -64px; right: -52px; }
.login-hero::after  { width: 120px; height: 120px; bottom: -46px; left: -36px; }

.lh-logo {
  width: 66px; height: 66px; margin: 0 auto 15px;
  border-radius: 18px; background: rgba(255, 255, 255, .17);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
  animation: logoPop .5s var(--ease) both;
}
.lh-logo svg { width: 34px; height: 34px; fill: #fff; }
.lh-title {
  color: #fff; font-size: 25px; font-weight: 600;
  letter-spacing: 2px; margin-bottom: 8px;
}
.lh-sub { color: rgba(255, 255, 255, .78); font-size: 13px; letter-spacing: .5px; }

.login-card {
  position: relative; z-index: 2;
  margin: -46px 18px 0; padding: 18px 16px 16px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .13);
  animation: cardIn .45s var(--ease) both;
}

.lf-field { margin-bottom: 13px; }
.lf-label {
  display: block; font-size: 12px; color: var(--text-hint);
  margin-bottom: 6px; padding-left: 2px;
}
.lf-box {
  display: flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 12px;
  background: #f4f6fa; border: 1.5px solid transparent; border-radius: 12px;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.lf-box:focus-within {
  background: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}
.lf-icon { width: 18px; height: 18px; fill: #9aa4b2; }
.lf-box:focus-within .lf-icon { fill: var(--primary); }
.lf-input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 15px; color: var(--text);
}
.lf-input::placeholder { font-size: 13.5px; color: #aab3be; }
.lf-eye {
  width: 30px; height: 30px; padding: 0; border: 0; background: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer;
}
.lf-eye svg { width: 18px; height: 18px; fill: #9aa4b2; }
.lf-eye.on svg { fill: var(--primary); }

.lf-hint {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 12px; line-height: 1.5; color: var(--text-hint);
  background: #f7f9fc; border-radius: 10px;
  padding: 9px 11px; margin: 3px 0 14px;
}
.lf-hint svg { width: 14px; height: 14px; fill: #9aa4b2; margin-top: 1px; }
.lf-hint.err { color: var(--danger); background: #fdf2f1; }
.lf-hint.err svg { fill: var(--danger); }

.lf-submit { height: 48px; font-size: 16px; letter-spacing: 1px; }

.demo-block { margin: 20px 18px 26px; }
.db-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding: 0 2px;
}
.db-title { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.db-tip { font-size: 11.5px; color: var(--text-hint); }
.db-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.db-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 11px;
  background: #fff; cursor: pointer; text-align: left;
  transition: transform .15s var(--ease), background .15s;
}
.db-chip:active { transform: scale(.97); background: #f7f9fc; }
.db-chip .db-name { font-size: 13px; font-weight: 600; color: var(--text); }
.db-chip .db-role { font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 7px; }
.db-chip.mgr .db-role { background: var(--warning-light); color: var(--warning); }
.db-chip.sales .db-role { background: var(--primary-light); color: var(--primary); }
.db-chip .db-phone { font-size: 11px; color: var(--text-hint); letter-spacing: .3px; }
.db-chip.mgr { border-color: #f6dfc0; }

/* ---------------- 消息通知 ---------------- */
.nt-tabs { display: flex; gap: 8px; padding: 8px 14px 10px; overflow-x: auto; }
.nt-tab {
  flex: none; padding: 6px 12px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); font-size: 13px; color: var(--text-secondary);
}
.nt-tab i { font-style: normal; margin-left: 4px; font-weight: 600; color: var(--danger); font-size: 12px; }
.nt-tab.active {
  background: var(--primary-light); border-color: var(--primary);
  color: var(--primary-dark); font-weight: 600;
}
.nt-count { font-size: 12px; color: var(--text-hint); margin-left: 6px; }
.nt-count.has { color: var(--danger); font-weight: 600; }

.notice-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 14px; background: #fff;
  border-radius: var(--radius-sm, 12px); margin-bottom: 9px;
}
.notice-item.unread { background: var(--primary-light); }
.notice-item .avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
}
.nt-row { display: flex; align-items: baseline; gap: 8px; }
.nt-name { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.nt-imp {
  font-style: normal; font-size: 11px; padding: 1px 4px; margin-right: 5px;
  color: #b45309; background: #fef3c7; border-radius: 4px;
}
.nt-time { flex: none; font-size: 11.5px; color: var(--text-hint); }
.nt-desc {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nt-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.nt-tag { font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: #f1f5f9; color: #64748b; }
.nt-tag.blue { background: #eff6ff; color: #2563eb; }
.nt-tag.orange { background: #fff7ed; color: #c2410c; }
.nt-tag.purple { background: #faf5ff; color: #7e22ce; }
.nt-unread { font-size: 11.5px; color: var(--danger); }
.nt-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 70px 0; color: var(--text-hint); font-size: 13px;
}
.nt-empty svg { width: 46px; height: 46px; fill: #cbd5e1; }
.nt-panel-foot { margin-top: 12px; font-size: 12px; color: var(--text-hint); line-height: 1.6; }

/* ===== v0.5.17 自定义字段区块（后台字段定义驱动 App 渲染） ===== */
.cf-photo {
  width: 88px; height: 88px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--bg); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; color: var(--text-hint); font-size: 12px;
  transition: transform .16s var(--ease);
}
.cf-photo svg { width: 22px; height: 22px; fill: var(--text-hint); }
.cf-photo:active { transform: scale(.96); }
.cf-photo.done { border-style: solid; border-color: var(--success); color: var(--success); background: #f0fdf4; }
.cf-photo.done svg { fill: var(--success); }

/* ===== v0.5.17 模块入口：产品图册 ===== */
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-item {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: var(--bg);
}
.cat-thumb {
  width: 46px; height: 46px; flex: none; border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--primary); font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cat-item:nth-child(2) .cat-thumb { background: linear-gradient(135deg, #dcfce7, #f0fdf4); color: var(--success); }
.cat-item:nth-child(3) .cat-thumb { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: var(--warning); }
.cat-main { flex: 1; min-width: 0; }
.cat-name { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.cat-sub { font-size: 12px; color: var(--text-hint); margin-top: 3px; }
.cat-item .btn-sm { flex: none; }
/* ============================================================
 * v0.5.19 关于本应用 + 调试面板
 * 调试面板：全屏浮层，顶部标题 / 中部按维度分组 / 底部动作
 * ============================================================ */

/* ---------- 关于本应用 ---------- */
.about-hero {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 30px 20px 26px; margin-bottom: 12px;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  border-radius: var(--radius); border: 1px solid var(--border-light);
}
.about-logo {
  width: 66px; height: 66px; border-radius: 20px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(26, 115, 232, .28);
}
.about-logo svg { width: 34px; height: 34px; fill: #fff; }
.about-name { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.about-slogan { font-size: 12.5px; color: var(--text-secondary); }
.about-ver {
  margin-top: 6px; font-size: 12px; color: var(--primary);
  background: #eef4ff; border: 1px solid #d6e4ff; border-radius: 20px;
  padding: 5px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.about-ver:active { background: #e0ebff; }
.about-foot {
  text-align: center; font-size: 11.5px; color: var(--text-hint);
  line-height: 1.9; padding: 18px 0 26px;
}

/* ---------- 调试面板（浮动，不遮背后页面） ---------- */
.dbg-mask {
  position: fixed; inset: 0; z-index: 1200;
  background: transparent; pointer-events: none;
}
.dbg-page {
  pointer-events: auto;
  position: fixed; right: 12px; bottom: 12px; width: min(420px, calc(100% - 24px));
  max-height: 66vh;
  background: #fff; border-radius: 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .26), 0 0 0 1px rgba(15, 23, 42, .06);
  transform: translateY(14px); opacity: 0;
  transition: transform .24s ease, opacity .2s ease;
  overflow: hidden;
}
.dbg-mask.show .dbg-page { transform: translateY(0); opacity: 1; }
.dbg-page.dragging { transition: none; }
.dbg-page.collapsed { max-height: none; }
.dbg-page.collapsed .dbg-body,
.dbg-page.collapsed .dbg-foot { display: none; }

.dbg-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border-light);
  flex: none; cursor: move; touch-action: none; user-select: none;
}
.dbg-head-l { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.dbg-head-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: #eef4ff; display: flex; align-items: center; justify-content: center;
}
.dbg-head-ico svg { width: 18px; height: 18px; fill: var(--primary); }
.dbg-title { font-size: 15px; font-weight: 700; }
.dbg-sub { font-size: 11.5px; color: var(--text-hint); margin-top: 2px; }
.dbg-head-actions { display: flex; gap: 6px; flex: none; }
.dbg-head-btn {
  width: 30px; height: 30px; border-radius: 9px; border: none; flex: none;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.dbg-head-btn svg { width: 15px; height: 15px; fill: var(--text-secondary); }
.dbg-head-btn.rot svg { transform: rotate(180deg); }

.dbg-body { flex: 1; overflow-y: auto; padding: 14px 16px 4px; -webkit-overflow-scrolling: touch; }

.dbg-sec {
  border: 1px solid var(--border-light); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 12px; background: #fff;
}
.dbg-sec.danger { border-color: #fecdca; background: #fffbfb; }
.dbg-sec-head { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 11px; }
.dbg-sec-ico { width: 19px; height: 19px; fill: var(--primary); flex: none; margin-top: 1px; }
.dbg-sec.danger .dbg-sec-ico { fill: #d92d20; }
.dbg-sec-title { font-size: 14px; font-weight: 600; }
.dbg-sec-hint { font-size: 11.5px; color: var(--text-hint); margin-top: 3px; line-height: 1.6; }

.dbg-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dbg-btn {
  flex: 1; min-width: 96px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-size: 13px; padding: 0 10px; transition: all .16s ease;
}
.dbg-btn:active { transform: scale(.97); }
.dbg-btn.on { border-color: var(--primary); background: #eef4ff; color: var(--primary); font-weight: 600; }
.dbg-btn.ghost { background: var(--bg); color: var(--text-secondary); }
.dbg-btn.danger { border-color: #fecdca; background: #fef3f2; color: #b42318; font-weight: 600; }

.dbg-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dbg-row-label { font-size: 12.5px; color: var(--text-secondary); flex: none; }
.dbg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dbg-chip {
  height: 30px; padding: 0 12px; border-radius: 20px;
  border: 1px solid var(--border); background: #fff; font-size: 12.5px; color: var(--text-secondary);
}
.dbg-chip.on { border-color: var(--primary); background: #eef4ff; color: var(--primary); font-weight: 600; }

/* 时间与时长：当前业务时间的实时读数 */
.dbg-time-now {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f7f9fc; border: 1px solid var(--border-light); border-radius: 10px;
  padding: 9px 12px; margin: 0 0 10px; font-size: 12px; color: var(--text-secondary);
}
.dbg-time-now b {
  font-size: 15px; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.dbg-time-now em { font-style: normal; font-size: 11.5px; color: var(--text-hint); }

.dbg-geo { display: flex; flex-direction: column; gap: 8px; margin-bottom: 11px; }
.dbg-geo-item {
  text-align: left; border: 1px solid var(--border); border-radius: 11px;
  background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
}
.dbg-geo-item.on { border-color: var(--primary); background: #f5f9ff; }
.dbg-geo-item b { font-size: 13px; color: var(--text); }
.dbg-geo-item span { font-size: 11.5px; color: var(--text-hint); }

.dbg-empty { text-align: center; padding: 40px 0; font-size: 13px; color: var(--text-secondary); line-height: 2; }
.dbg-empty span { font-size: 11.5px; color: var(--text-hint); }

.dbg-foot {
  flex: none; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light); background: #fff;
}
.dbg-foot-btn {
  flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; font-size: 14px; color: var(--text);
}
.dbg-foot-btn.primary { border: none; background: var(--primary); color: #fff; font-weight: 600; }
.dbg-foot-btn:active { transform: scale(.98); }

.dbg-text { font-size: 13px; line-height: 1.9; color: var(--text-secondary); }
.dbg-text p { margin: 0 0 10px; }
.dbg-text b { color: var(--text); }

/* 我的页：三层身份条 */
.uh-tenant { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.uh-layer {
  font-size: 11px; font-weight: 600; color: #6b4fd8; background: #f4f0ff;
  border-radius: 9px; padding: 2px 7px;
}
.uh-tenant-name { font-size: 11.5px; color: rgba(255, 255, 255, .88); }
.uh-tenant-plan {
  font-size: 10.5px; color: #fff; background: rgba(255, 255, 255, .18);
  border-radius: 8px; padding: 1px 6px;
}

/* 调试面板：三层身份分区小标题 + 说明 */
.dbg-sub-line {
  font-size: 11px; color: var(--text-3, #8a94a6); margin: 8px 0 4px; letter-spacing: .3px;
}
.dbg-tip { font-size: 10.5px; line-height: 1.6; color: var(--text-3, #8a94a6); margin-top: 6px; }

/* 三层按钮两列等宽，避免最后一行单个被拉满 */
.dbg-btns-half .dbg-btn { flex: 1 1 calc(50% - 4px); min-width: 0; }


/* 首屏租户条：第一眼看到公司名 */
.app-tenant {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: #fff; border-bottom: 1px solid var(--line, #eef1f5);
  font-size: 12px; color: var(--text-2, #5b6472);
}
.app-tenant:empty { display: none; }
.app-tenant .at-ico { display: inline-flex; width: 14px; height: 14px; flex: none; }
.app-tenant .at-ico svg { width: 14px; height: 14px; fill: #1a73e8; }
.app-tenant .at-name { font-weight: 600; color: var(--text, #1c2128); }
.app-tenant .at-plan {
  font-size: 10.5px; color: #1a73e8; background: #eef6ff;
  border-radius: 8px; padding: 1px 6px;
}

/* v0.5.26 内联样式迁移后的通用类 */
.u-hidden { display: none; }
.mb-11 { margin-bottom: 11px; }
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.pt-12 { padding-top: 12px; }
.pt-14 { padding-top: 14px; }
.bg-white { background: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.icon-15 { width: 15px; height: 15px; }
.icon-18 { width: 18px; height: 18px; }
.fill-primary { fill: var(--primary); }
.fill-success { fill: var(--success); }
.fill-warning { fill: var(--warning); }
.fill-danger { fill: var(--danger); }
.fill-hint { fill: var(--text-hint); }
.fill-white { fill: #fff; }
.tile-primary { background: var(--primary-light); }
.tile-success { background: var(--success-light); }
.tile-warning { background: var(--warning-light); }
.tile-danger { background: var(--danger-light); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-hint { color: var(--text-hint); }
.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.stat-unit { font-size: 11px; color: var(--text-hint); }
.kpi-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.cover-btn { background: rgba(255,255,255,.15); }
.menu-icon-soft { background: var(--bg); }
.avatar-sm { font-size: 11px; }
.avatar-ink { background: var(--text); }
.avatar-danger { background: var(--danger); }
.avatar-primary { background: var(--primary); }
.map-300 { height: 300px; }
.map-road-1 { top: 38%; left: 0; right: 0; height: 8px; transform: rotate(-4deg); }
.map-road-2 { top: 0; bottom: 0; left: 46%; width: 7px; transform: rotate(3deg); }
.map-road-3 { top: 30%; left: 0; right: 0; height: 9px; transform: rotate(-3deg); }
.map-road-4 { top: 0; bottom: 0; left: 40%; width: 8px; transform: rotate(4deg); }
.map-road-5 { top: 62%; left: 0; right: 0; height: 6px; transform: rotate(2deg); }
.map-pin-1 { top: 26%; left: 22%; }
.map-pin-2 { top: 42%; left: 52%; }
.map-pin-3 { top: 58%; left: 38%; }
.map-pin-4 { top: 32%; left: 68%; }
.map-pin-5 { top: 68%; left: 24%; }
.map-pin-6 { top: 24%; left: 20%; }
.map-pin-7 { top: 40%; left: 50%; }
.map-pin-8 { top: 56%; left: 36%; }
.map-pin-9 { top: 30%; left: 66%; }
.map-pin-10 { top: 66%; left: 26%; }
.map-pin-me { top: 22%; left: 60%; background: var(--primary); box-shadow: 0 0 0 4px rgba(26,115,232,.2); }
.map-pin-me2 { top: 20%; left: 58%; background: var(--primary); box-shadow: 0 0 0 4px rgba(26,115,232,.2); }
.legend-wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.legend-item { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot.ok { background: var(--success); }
.legend-dot.warn { background: var(--warning); }
.legend-dot.danger { background: var(--danger); }
.legend-dot.primary { background: var(--primary); }
.progress-56 { width: 56%; }
.bar-h44 { height: 44px; }
.bar-h66 { height: 66px; }
.bar-h33 { height: 33px; }
.bar-h55 { height: 55px; }
.bar-h77 { height: 77px; }
.bar-h4 { height: 4px; }
.sd-muted { font-size: 12px; color: var(--text-hint); }
.sd-visit-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.sd-visit-time { font-size: 12px; color: var(--text-hint); width: 44px; flex: none; }
.sd-visit-note { flex: 1; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.sd-badge-gap { margin-left: 6px; }
.sd-empty-block { font-size: 12px; color: var(--text-hint); padding: 10px 0; }
.info-row-sm { padding: 7px 0; font-size: 13px; }
.sd-kv-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.list-empty { text-align: center; color: var(--text-hint); padding: 28px 0; }
.list-empty .small { font-size: 12px; }
.avatar-sq { border-radius: 8px; }
/* 公开演示：登录卡直接显示，避免浏览器后台标签页暂停动画时出现空白 */
.login-card { animation: none; opacity: 1; }

/* 公开演示：页面内容直接显示，避免浏览器后台标签页暂停动画时出现空白 */
.content > *, .tool-item, .role-card, .login-card { animation: none !important; opacity: 1 !important; transform: none !important; }
