/* juji-hunter-wall.css — 交易者观点（Trader Views）样式
 * 对齐 PRODUCT_DESIGN.md（04:20 定稿）+ d54640f / body.jr-on 深炭灰白淡紫体系：
 * - 桌机内容宽度约 1120px，最多两栏卡片，手机 390px 单栏零溢出
 * - 正文 16px、辅助字 14px、所有交互触控高度 ≥ 44px
 * - 移除粗紫框与金框背书；红色仅用于已查到的狙姬风险结论，正常退出使用中性灰
 */

.juji-hunter-wall {
  max-width: 1120px;
  margin: 16px auto 48px;
  padding: 0 24px;
  box-sizing: border-box;
  scroll-margin-top: 68px;
}

.jhw-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0 0;
  border-top: 1px solid var(--n-rule);
  background: transparent;
  box-shadow: none;
  color: var(--n-body);
}

/* 顶部第 1 层：页标 + 来源次要文字 + 一句用途 */
.jhw-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.jhw-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.jhw-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.jhw-title {
  margin: 0;
  font-family: var(--n-display, "Smiley Sans", sans-serif);
  font-size: 28.5px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--n-ink);
}

.jhw-source-caption {
  font-size: 15px;
  line-height: 1.35;
  color: var(--n-muted);
}

.jhw-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--n-body);
}

/* 顶部第 2 层：秒级「更新于 亚洲时间 HH:MM:SS」+ 两来源同步时间 + 综合排序 + 更新观点 */
.jhw-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.jhw-sync-meta {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 240px;
}

.jhw-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--n-ink);
  font-variant-numeric: tabular-nums;
}

.jhw-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--n-btn);
  flex: 0 0 auto;
}

.jhw-live-clock.is-paused .jhw-live-dot {
  background: var(--n-muted);
}

.jhw-sync-label {
  font-size: 15px;
  line-height: 1.4;
  color: var(--n-muted);
  font-variant-numeric: tabular-nums;
}

/* 零布局高度悬浮新观点胶囊（抵消 .jhw-shell 的 16px flex gap，确保卡片网格 0px 位移） */
.jhw-new-pill-anchor {
  position: sticky;
  top: calc(var(--jr-nav-h, 68px) + 10px);
  z-index: 16;
  height: 0;
  margin-top: -16px;
  overflow: visible;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.jhw-new-views-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--n-line);
  border-color: color-mix(in srgb, var(--n-btn) 45%, transparent);
  border-radius: 999px;
  background: var(--n-hover);
  color: var(--n-ink);
  font: 700 15px/1 var(--n-sans, sans-serif);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--n-shadow);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--n-shadow) 82%, transparent);
  transition: background 0.14s ease, border-color 0.14s ease;
}

.jhw-new-views-pill:hover {
  background: var(--n-btn);
  border-color: var(--n-btn);
  color: var(--n-btn-ink);
}

.jhw-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--n-rule);
  border-radius: 999px;
  background: var(--n-surface);
  color: var(--n-ink);
  font: 600 15px/1 var(--n-sans, sans-serif);
  cursor: pointer;
  box-shadow: none;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.jhw-refresh-btn:hover:not(:disabled) {
  background: var(--n-hover);
  border-color: var(--n-btn);
}

.jhw-refresh-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 状态横幅（等待更新 / 单源失败 / 配额暂停 / 闲置提示） */
.jhw-status-banner {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--n-rule);
  border-left-width: 3px;
  background: var(--n-surface);
  font-size: 15px;
  line-height: 1.45;
  color: var(--n-ink);
}

.jhw-status-banner.is-info {
  border-left-color: var(--n-btn);
}

.jhw-status-banner.is-caution {
  border-left-color: var(--n-caution);
  background: var(--n-caution-bg);
  color: var(--n-ink);
}

/* 顶部第 3 层：筛选工具列（桌机完整展开，手机首屏精简 + 筛选抽屉） */
.jhw-toolbar-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jhw-toolbar-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jhw-switch-kicker {
  font-size: 15px;
  color: var(--n-muted);
  margin-right: 2px;
}

.jhw-filter-group,
.jhw-chain-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jhw-filter-btn,
.jhw-chain-btn,
.jhw-mobile-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--n-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--n-body);
  font: 500 15px/1 var(--n-sans, sans-serif);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.jhw-filter-btn:hover,
.jhw-chain-btn:hover,
.jhw-mobile-filter-toggle:hover {
  background: var(--n-hover);
  color: var(--n-ink);
}

.jhw-filter-btn.is-active,
.jhw-chain-btn.is-active,
.jhw-mobile-filter-toggle.is-open {
  background: var(--n-seg-on);
  border-color: var(--n-seg-on);
  color: var(--n-seg-ink);
  font-weight: 700;
}

.jhw-count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--n-field);
  background: color-mix(in srgb, var(--n-ink) 12%, transparent);
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.jhw-filter-btn.is-active .jhw-count-chip {
  background: color-mix(in srgb, var(--n-seg-ink) 16%, transparent);
}

.jhw-mobile-filter-toggle {
  display: none;
}

.jhw-cond-summary-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.jhw-cond-summary-text {
  font-size: 15px;
  color: var(--n-muted);
}

.jhw-clear-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--n-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--n-btn);
  font: 600 15px/1 var(--n-sans, sans-serif);
  cursor: pointer;
}

.jhw-toolbar-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.jhw-filter-hint {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--n-muted);
}

/* 卡片双栏网格（最多两栏，手机单栏） */
.jhw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.jhw-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--n-rule);
  border-radius: 18px;
  background: var(--n-surface);
  box-shadow: none;
  min-width: 0;
}

.jhw-card.is-removed {
  opacity: 0.56;
  filter: grayscale(0.75);
  border-style: dashed;
}

.jhw-card-top-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.jhw-removed-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--n-rule);
  background: var(--n-field);
  background: color-mix(in srgb, var(--n-ink) 8%, transparent);
  color: var(--n-muted);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.jhw-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* 第 1 段：币名、链、来源标记（统一中性淡紫，不加金框）、完整地址 */
.jhw-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.jhw-coin-id {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.jhw-symbol {
  font-family: var(--n-display, "Smiley Sans", sans-serif);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--n-ink);
  word-break: break-word;
}

.jhw-name {
  font-size: 15px;
  color: var(--n-muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jhw-chain-badge {
  font-size: 15px;
  font-weight: 600;
  color: var(--n-muted);
  letter-spacing: 0.03em;
}

.jhw-src-tag,
.jhw-neutral-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--n-rule);
  border-color: color-mix(in srgb, var(--n-btn) 32%, transparent);
  background: var(--n-quote);
  background: color-mix(in srgb, var(--n-btn) 14%, transparent);
  color: var(--n-body);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}

.jhw-neutral-tag {
  border-color: var(--n-rule);
  background: var(--n-field);
  color: var(--n-muted);
}

.jhw-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--n-rule);
  background: var(--n-field);
  color: var(--n-body);
  font-size: 15px;
  font-weight: 600;
}

.jhw-status-pill.tone-multi {
  border-color: var(--n-btn);
  border-color: color-mix(in srgb, var(--n-btn) 45%, transparent);
  color: var(--n-btn);
}

.jhw-addr-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--n-muted);
}

.jhw-addr-label {
  font-size: 15px;
  color: var(--n-muted);
  flex: 0 0 auto;
}

.jhw-addr-full {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  line-height: 1.45;
  color: var(--n-body);
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* 第 2 段：观点摘要 */
.jhw-sec-summary {
  padding-top: 10px;
  border-top: 1px solid var(--n-rule);
}

.jhw-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.jhw-sec-title-grp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jhw-sec-kicker {
  font-size: 15px;
  font-weight: 700;
  color: var(--n-ink);
}

.jhw-ai-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--n-field);
  color: var(--n-muted);
  font-size: 15px;
}

.jhw-orig-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--n-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--n-body);
  font: 500 15px/1 var(--n-sans, sans-serif);
  cursor: pointer;
}

.jhw-orig-toggle-btn:hover {
  color: var(--n-ink);
  border-color: var(--n-btn);
}

.jhw-view-summary-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--n-ink);
  word-break: break-word;
}

.jhw-summary-orig-box {
  margin: 0;
  padding: 8px 12px;
  border-left: 2px solid var(--n-rule);
  font-size: 15px;
  line-height: 1.55;
  color: var(--n-muted);
  word-break: break-word;
}

/* 第 3 段：资料列（已知买入金额 / 持仓价值 / 观点记录，克制灰白，不做金绿轰炸） */
.jhw-sec-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--n-rule);
  border-bottom: 1px solid var(--n-rule);
}

.jhw-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.jhw-stat-label {
  font-size: 15px;
  color: var(--n-muted);
}

.jhw-stat-val {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--n-ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

/* 第 4 段：作者记录 */
.jhw-rec-count-label {
  font-size: 15px;
  color: var(--n-muted);
  font-variant-numeric: tabular-nums;
}

.jhw-signals-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jhw-sig-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--n-btn);
  border-left-color: color-mix(in srgb, var(--n-btn) 52%, transparent);
}

/* 正常退出与未提供均采用中性灰边框，绝不用红色制造诈骗假警报 */
.jhw-sig-item.state-exited,
.jhw-sig-item.state-unavailable {
  border-left-color: var(--n-rule);
}

.jhw-sig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  flex-wrap: wrap;
}

.jhw-sig-who {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.jhw-sig-trader {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--n-ink);
}

.jhw-ext-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 6px;
  font-size: 15px;
  color: var(--n-btn);
  text-shadow: 0 0 10px color-mix(in srgb, var(--n-btn) 40%, transparent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jhw-sig-time {
  font-size: 15px;
  color: var(--n-muted);
  font-variant-numeric: tabular-nums;
}

.jhw-sig-facts {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1.45;
  color: var(--n-muted);
  font-variant-numeric: tabular-nums;
}

.jhw-pos-fact.is-holding {
  color: var(--n-body);
  font-weight: 600;
}

.jhw-pos-fact.is-exited,
.jhw-pos-fact.is-unavailable,
.jhw-pnl-muted {
  color: var(--n-muted);
}

.jhw-sig-note {
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  color: var(--n-ink);
  word-break: break-word;
}

.jhw-sig-orig {
  margin: 0;
  font-size: 15px;
  line-height: 1.52;
  color: var(--n-muted);
  word-break: break-word;
}

.jhw-more-sigs-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--n-rule);
  background: transparent;
  color: var(--n-body);
  font: 600 15px/1 var(--n-sans, sans-serif);
  cursor: pointer;
}

.jhw-more-sigs-btn:hover {
  color: var(--n-ink);
  border-color: var(--n-btn);
}

/* 第 5 段：狙姬查币独立列（红色仅用于已查到的风险结论 KILL_TRASH） */
.jhw-sec-report {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--n-rule);
  background: var(--n-field);
}

.jhw-sec-report.is-risk {
  border-color: var(--n-risk);
  border-color: color-mix(in srgb, var(--n-risk) 50%, transparent);
  background: var(--n-risk-bg);
}

.jhw-report-kicker {
  font-size: 15px;
  font-weight: 700;
  color: var(--n-ink);
  flex: 0 0 auto;
}

.jhw-report-body {
  display: flex;
  align-items: baseline;
  gap: 6px 10px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1.45;
  color: var(--n-body);
}

.jhw-report-ver {
  font-weight: 700;
  color: var(--n-btn);
}

.jhw-report-verdict {
  font-weight: 700;
  color: var(--n-ink);
}

.jhw-report-verdict.is-risk {
  color: var(--n-risk-ink);
}

.jhw-report-time,
.jhw-report-muted {
  color: var(--n-muted);
}

.jhw-report-flag {
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--n-rule);
  font-size: 15px;
  color: var(--n-caution-ink);
}

/* 第 6 段：主要动作「查看这颗币」+ 次要动作「展开记录」「复制地址」（触控高度 ≥ 44px） */
.jhw-actions {
  margin-top: auto;
  padding-top: 6px;
}

.jhw-act-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jhw-btn-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--n-btn);
  color: var(--n-btn-ink);
  font: 700 15px/1 var(--n-sans, sans-serif);
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.14s ease;
}

.jhw-btn-check:hover {
  opacity: 0.9;
}

.jhw-btn-secondary,
.jhw-btn-copy,
.jhw-clear-filter-btn,
.jhw-return-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--n-rule);
  border-radius: 10px;
  background: var(--n-field);
  color: var(--n-body);
  font: 600 15px/1 var(--n-sans, sans-serif);
  cursor: pointer;
  box-shadow: none;
}

.jhw-btn-secondary:hover,
.jhw-btn-copy:hover,
.jhw-clear-filter-btn:hover,
.jhw-return-btn:hover {
  color: var(--n-ink);
  border-color: var(--n-btn);
}

/* 独立预览旧页返回观点条 */
.jhw-return-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--n-rule);
  background: var(--n-surface);
}

.jhw-return-hint {
  font-size: 15px;
  color: var(--n-muted);
}

/* 空白与等待态 */
.jhw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px;
  text-align: center;
  border: 1px solid var(--n-rule);
  border-radius: 18px;
  background: var(--n-surface);
  color: var(--n-muted);
  font-size: 17px;
}

.jhw-empty-msg {
  margin: 0;
}

/* 首屏轻量直达胶囊（双页签未挂载时显示，触控高度 44px） */
.jhw-hero-jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  margin-right: 10px;
  padding: 0 16px;
  border: 1px solid var(--n-rule);
  border-radius: 999px;
  background: var(--n-surface);
  color: var(--n-ink);
  font: 600 15px/1 var(--n-sans, sans-serif);
  text-decoration: none;
  box-shadow: none;
}

.jhw-hero-jump:hover {
  background: var(--n-hover);
  border-color: var(--n-btn);
}

:is(
  .jhw-refresh-btn,
  .jhw-filter-btn,
  .jhw-chain-btn,
  .jhw-mobile-filter-toggle,
  .jhw-clear-inline-btn,
  .jhw-orig-toggle-btn,
  .jhw-btn-check,
  .jhw-btn-secondary,
  .jhw-btn-copy,
  .jhw-more-sigs-btn,
  .jhw-clear-filter-btn,
  .jhw-return-btn,
  .jhw-hero-jump,
  .jhw-new-views-pill,
  .jhw-ext-link
):focus-visible {
  outline: 2px solid var(--n-ink);
  outline-offset: 2px;
}

@media (max-width: 920px) {
  .jhw-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 手机窄屏（≤760px / 390px）：页头控制两行、更新状态收一列、先露主要检视 + 筛选入口 + 当前条件摘要 */
@media (max-width: 760px) {
  .juji-hunter-wall {
    padding: 0 16px;
    margin: 10px auto 36px;
  }

  .jhw-shell {
    gap: 12px;
    padding-top: 14px;
  }

  .jhw-title-row {
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: space-between;
  }

  .jhw-title {
    font-size: 25px;
    white-space: nowrap;
  }

  .jhw-source-caption {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jhw-sub {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .jhw-sync-bar {
    gap: 8px;
  }

  .jhw-sync-meta {
    gap: 4px 10px;
    flex: 1 1 210px;
  }

  .jhw-live-clock,
  .jhw-sync-label {
    font-size: 15px;
  }

  .jhw-new-pill-anchor {
    margin-top: -12px;
    top: calc(var(--jr-nav-h, 60px) + 8px);
  }

  .jhw-switch-kicker {
    display: none;
  }

  .jhw-mobile-filter-toggle {
    display: inline-flex;
  }

  .jhw-cond-summary-row {
    display: flex;
  }

  .jhw-toolbar-wrap:not(.is-drawer-open) .jhw-filter-btn.is-secondary-mobile,
  .jhw-toolbar-wrap:not(.is-drawer-open) .jhw-toolbar-secondary {
    display: none;
  }

  .jhw-card {
    padding: 16px;
    border-radius: 16px;
  }

  .jhw-sec-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .jhw-stat-cell {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
}

/* Call-flow card face: newest call first, coin chip second, legacy sections in a details block */
.jhw-card {
  gap: 10px;
  padding: 14px 16px 12px;
}

.jhw-flow-lead {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.jhw-flow-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jhw-flow-avatar,
.jhw-flow-logo {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--n-hover);
  border: 1px solid var(--n-rule);
}

.jhw-flow-avatar {
  width: 40px;
  height: 40px;
}

.jhw-flow-logo {
  width: 28px;
  height: 28px;
}

.jhw-flow-initial {
  font: 400 18px/1 var(--n-display, "Smiley Sans", sans-serif);
  color: var(--n-btn);
}

.jhw-flow-logo .jhw-flow-initial {
  font-size: 15px;
}

.jhw-flow-avatar img,
.jhw-flow-logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jhw-flow-meta {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jhw-flow-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.jhw-flow-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 16px/1.25 var(--n-sans, sans-serif);
  color: var(--n-ink);
}

.jhw-flow-name-row .jhw-src-tag {
  flex: 0 0 auto;
}

.jhw-flow-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font: 500 14px/1.3 var(--n-sans, sans-serif);
  color: var(--n-muted);
}

.jhw-flow-more-calls {
  color: var(--n-btn);
  white-space: nowrap;
}

.jhw-flow-quote {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  font: 400 15.5px/1.45 var(--n-sans, sans-serif);
  color: var(--n-body);
}

.jhw-flow-tr {
  display: inline-block;
  margin-right: 6px;
  padding: 0 4px;
  border: 1px solid var(--n-rule);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--n-muted);
  vertical-align: 1px;
}

.jhw-flow-coin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--n-rule);
  border-radius: 12px;
  background: var(--n-field);
}

.jhw-flow-coin-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.jhw-flow-sym {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 20px/1.1 var(--n-display, "Smiley Sans", sans-serif);
  color: var(--n-ink);
}

.jhw-flow-coin-top .jhw-chain-badge,
.jhw-flow-removed,
.jhw-flow-risk {
  flex: 0 0 auto;
}

.jhw-flow-risk {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--n-risk-bg);
  color: var(--n-risk-ink);
  font: 700 13.5px/1.4 var(--n-sans, sans-serif);
  white-space: nowrap;
}

.jhw-flow-view.jhw-btn-check {
  flex: 0 0 auto;
  min-height: 32px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 15px;
  white-space: nowrap;
}

.jhw-flow-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 6px 12px;
  margin: 0;
}

.jhw-flow-cell {
  min-width: 0;
}

.jhw-flow-cell.is-wide {
  grid-column: span 2;
}

.jhw-flow-cell dt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 13px/1.3 var(--n-sans, sans-serif);
  color: var(--n-muted);
}

.jhw-flow-cell dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 15px/1.3 var(--n-sans, sans-serif);
  font-variant-numeric: tabular-nums;
  color: var(--n-ink);
}

.jhw-flow-cell.is-up dd {
  color: var(--n-pass-ink);
}

.jhw-flow-cell.is-down dd {
  color: var(--n-risk-ink);
}

.jhw-flow-asof {
  margin: 0;
  font: 500 13px/1.3 var(--n-sans, sans-serif);
  color: var(--n-muted);
}

.jhw-flow-more-btn {
  align-self: flex-start;
  padding: 2px 0;
  border: 0;
  background: none;
  font: 600 14.5px/1.4 var(--n-sans, sans-serif);
  color: var(--n-muted);
  cursor: pointer;
}

.jhw-flow-more-btn:hover,
.jhw-flow-more-btn:focus-visible {
  color: var(--n-ink);
}

.jhw-flow-more-btn::after {
  content: " \25BE";
}

.jhw-flow-more-btn[aria-expanded="true"]::after {
  content: " \25B4";
}

.jhw-flow-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--n-rule);
}

.jhw-flow-details[hidden] {
  display: none;
}

@media (min-width: 1200px) {
  .jhw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .jhw-card {
    gap: 8px;
    padding: 12px 14px 10px;
  }

  .jhw-flow-nums {
    gap: 4px 10px;
  }
}
