/* 趣购数据 · 最终版
   布局：demo=3（居中英雄徽章 + 2×2 资产网格）
   配色：品牌青绿 #89f800 + 金额橙 #f0731f */

/* 注意：勿用 .qg-phone 作壳样式——手机号 span 也曾用同名 class，会互相污染 */
#qgPhone {
  --qg-ink: #1a2210;
  --qg-muted: rgba(26, 34, 16, 0.48);
  --qg-lime: #89f800;
  --qg-lime-deep: #5eb000;
  --qg-orange: #f0731f;
  --qg-panel: #ffffff;
  --qg-font-display: "Sora", "Outfit", "Noto Sans SC", "PingFang SC", sans-serif;
  --qg-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 优先用 visualViewport 写入的高度，避开浏览器底栏；svh 次之 */
  --qg-shell-h: var(--qg-vvh, 100svh);
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  max-width: 100%;
  width: min(100%, var(--phone-w, 375px));
  /* 一屏壳：按小视口高度，避免 Chrome 底栏裁切 */
  height: 100vh;
  height: var(--qg-shell-h);
  max-height: 100vh;
  max-height: var(--qg-shell-h);
  min-height: 100vh;
  min-height: var(--qg-shell-h);
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  font-family: var(--qg-font-body);
  color: var(--qg-ink);
  overscroll-behavior: none;
  touch-action: manipulation;
  box-sizing: border-box;
}
@media (min-width: 421px) {
  #qgPhone {
    --qg-shell-h: min(812px, calc(100vh - 48px));
  }
}

.qg-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 8px;
  padding-top: max(6px, env(safe-area-inset-top, 0px));
  position: relative;
  flex: 0 0 auto;
  z-index: 20;
  /* 与「我的」页 .pf-header 顶部渐变一致 */
  background: linear-gradient(
    180deg,
    #dfffc7 0%,
    #c8f59a 38%,
    #e8f8d0 74%,
    rgba(248, 248, 248, 0) 100%
  );
}

.qg-back {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--qg-ink);
  font-size: 28px;
  line-height: 1;
  background: #fff;
  box-shadow: 0 4px 14px rgba(26, 34, 16, 0.08);
}

.qg-head-titles { text-align: center; min-width: 0; }
.qg-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
  line-height: 28px;
}

.qg-head-link {
  border: 0;
  background: transparent;
  color: var(--qg-lime-deep);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 4px;
  cursor: pointer;
}

.qg-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden; /* 一屏布局：禁止上下滑动 */
  -webkit-overflow-scrolling: touch;
  /* 底部再留余量，避免浏览器工具栏/手势条裁切最后一行 */
  padding: 0 14px max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}
.qg-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Hero：可释放积分卡片（内含积分转移，去掉底部 CTA / 脚注） */
.qg-hero {
  position: relative;
  text-align: center;
  padding: 0 0 4px;
  isolation: isolate;
  flex: 0 0 auto;
  animation: qgRise 0.55s ease both;
}
.qg-hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 10px 12px 10px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 255, 228, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 8px 20px rgba(26, 34, 16, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.qg-hero-label {
  display: inline-block;
  margin: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(137, 248, 0, 0.22);
  color: var(--qg-lime-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.qg-hero-value {
  margin: 6px 0 0;
  font-family: var(--qg-font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--qg-ink);
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qg-hero-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--qg-muted);
}
.qg-hero-sub b {
  color: #e53935;
  font-family: var(--qg-font-display);
  font-size: 15px;
  font-weight: 700;
  margin-left: 4px;
}
.qg-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 0;
  width: min(100%, 200px);
  height: 36px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #142008;
  background: linear-gradient(100deg, #c8ff5a 0%, var(--qg-lime) 55%, #9dff1a 100%);
  box-shadow: 0 6px 16px rgba(137, 248, 0, 0.28);
  position: relative;
  z-index: 1;
}
.qg-hero-cta:active { filter: brightness(0.96); }
.qg-hero-glow {
  position: absolute;
  inset: auto -12% -48% -12%;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(137, 248, 0, 0.34), transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: qgPulse 3.6s ease-in-out infinite;
}
.qg-block-last {
  margin-bottom: 0;
  padding-bottom: 0;
}

.qg-block {
  margin-top: 4px;
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  animation: qgRise 0.6s ease both;
  animation-delay: 0.08s;
}
.qg-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
  padding: 0 4px;
}
.qg-block-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #142008;
}
.qg-block-head span {
  font-size: 11px;
  font-weight: 500;
  color: var(--qg-muted);
}

/* 资产/团队：Soft Fintech 分卡列表（每行独立软卡片） */
.qg-metric-list,
.qg-team {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
  animation: qgRise 0.55s ease both;
}
.qg-team {
  animation-delay: 0.1s;
  color: var(--qg-ink);
}
.qg-team::before { display: none; }

.qg-metric,
.qg-team-cell,
.qg-team-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 255, 240, 0.94) 100%);
  box-shadow:
    0 8px 22px rgba(26, 34, 16, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: default;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}
.qg-metric {
  cursor: pointer;
}
.qg-metric::before,
.qg-team-row::before,
.qg-team-cell::before {
  content: "";
  width: 3px;
  align-self: stretch;
  min-height: 28px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #b6ff4a 0%, var(--qg-lime) 55%, #5eb000 100%);
  box-shadow: 0 0 0 3px rgba(137, 248, 0, 0.12);
}
.qg-team-row:nth-child(2)::before,
.qg-team-cell:nth-child(2)::before {
  background: linear-gradient(180deg, #ffb347 0%, var(--qg-orange) 60%, #e05a12 100%);
  box-shadow: 0 0 0 3px rgba(240, 115, 31, 0.12);
}
.qg-metric:active {
  transform: scale(0.985);
  background: linear-gradient(145deg, #f4ffe6 0%, #eefadb 100%);
  box-shadow: 0 4px 14px rgba(26, 34, 16, 0.06);
}

.qg-metric-left,
.qg-team-row > span:first-child,
.qg-team-cell > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.qg-metric-left strong,
.qg-team-row > span:first-child,
.qg-team-cell > span:first-child {
  display: block;
  /* 与明细 .qg-rec p 对齐 */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(20, 32, 8, 0.78);
}
.qg-metric-left em { display: none; }

.qg-metric-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  margin-top: 0;
  gap: 2px;
}
.qg-metric-right b,
.qg-team-row > b,
.qg-team-cell > b {
  display: block;
  margin-top: 0;
  font-family: var(--qg-font-display);
  /* 与明细 .qg-rec b 对齐 */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--qg-orange);
  max-width: 48vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  flex: 0 1 auto;
}
.qg-metric-right .chev {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(137, 248, 0, 0.14);
  color: rgba(20, 32, 8, 0.45);
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
  margin-left: 4px;
}

.qg-cta-wrap {
  margin-top: auto;
  padding-top: 8px;
  flex: 0 0 auto;
  animation: qgRise 0.7s ease both;
  animation-delay: 0.18s;
}
.qg-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: #142008;
  background: linear-gradient(100deg, #c8ff5a 0%, var(--qg-lime) 55%, #9dff1a 100%);
  box-shadow: 0 8px 20px rgba(137, 248, 0, 0.28);
}
.qg-cta:active { filter: brightness(0.96); }

.qg-footnote {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  color: var(--qg-muted);
  flex: 0 0 auto;
}

/* 明细抽屉 */
.qg-sheet[hidden] { display: none !important; }
.qg-sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
}
.qg-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 10, 0.42);
  animation: qgFade 0.22s ease both;
}
.qg-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: #f4f8ec;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  animation: qgSheetUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
.qg-sheet-grab {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.12);
  margin: 10px auto 4px;
  flex-shrink: 0;
}
.qg-sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.qg-sheet-bar h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.qg-sheet-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--qg-ink);
}
.qg-sheet-tabs {
  /* 与首页「推荐 / 京东专区」.tabs/.tab 一致 */
  display: flex;
  gap: 8px;
  padding: 0 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #f4f8ec;
}
.qg-sheet-tabs::-webkit-scrollbar { display: none; }
.qg-sheet-tabs .rec-tab {
  flex: 0 0 auto;
  height: 26px;
  line-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 12.5px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  color: var(--qg-ink);
  cursor: pointer;
  font-family: inherit;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}
.qg-sheet-tabs .rec-tab.on {
  background: var(--brand, var(--qg-lime));
  font-weight: 800;
  border-radius: 32px;
  padding: 0 12px;
  color: var(--qg-ink);
}
.qg-sheet-tip {
  margin: 0 16px 8px;
  font-size: 11px;
  color: var(--qg-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.qg-sheet-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  transition: opacity 0.15s ease;
}
.qg-sheet-list.is-refreshing {
  opacity: 0.55;
  pointer-events: none;
}
.qg-sheet-list.is-refreshing::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 2px;
  margin: 0 -12px 8px;
  background: linear-gradient(90deg, transparent, var(--qg-lime), transparent);
  z-index: 2;
}
.qg-sheet-list::-webkit-scrollbar { width: 0; height: 0; display: none; }
.qg-rec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 8px;
}
.qg-rec p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.qg-rec time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--qg-muted);
}
.qg-rec b {
  font-family: var(--qg-font-display);
  font-size: 16px;
  color: var(--qg-orange);
  font-variant-numeric: tabular-nums;
}
.qg-rec b.neg { color: #c62828; }
.qg-empty {
  text-align: center;
  padding: 36px 12px;
  color: var(--qg-muted);
  font-size: 13px;
}

@keyframes qgRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes qgPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}
@keyframes qgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes qgSheetUp {
  from { transform: translateY(24%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .qg-hero, .qg-block, .qg-team, .qg-cta-wrap,
  .qg-hero-glow, .qg-sheet-mask, .qg-sheet-panel {
    animation: none !important;
  }
}


/* —— 身份区：ui-ux-pro-max Soft Fintech + Soft UI Evolution ——
   层级：头像 | 昵称 → 标签芯片行 → 手机号元信息；避免名/标/号挤在同一行 */
.qg-identity {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  padding: 0 0 5px;
  overflow: visible;
}
.qg-id-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 10px 10px 10px 8px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 255, 236, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 28px rgba(26, 34, 16, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  animation: qgRise 0.45s ease both;
}
.qg-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(160deg, #f3ffe3, #dfffc7);
  box-shadow: 0 0 0 3px rgba(137, 248, 0, 0.28);
}
.qg-avatar-wrap.lv1 { box-shadow: 0 0 0 3px rgba(188, 149, 116, 0.85); }
.qg-avatar-wrap.lv2 { box-shadow: 0 0 0 3px rgba(234, 196, 94, 0.9); }
.qg-avatar-wrap.lv3 { box-shadow: 0 0 0 3px rgba(198, 64, 255, 0.55); }
.qg-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  display: block;
}
.qg-agent-chip {
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f7f4ef;
  background: linear-gradient(180deg, #c9a27e, #bc9574);
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(188, 149, 116, 0.35);
}
.qg-avatar-wrap.lv2 .qg-agent-chip {
  color: #6a3e02;
  background: linear-gradient(180deg, #f0d27a, #eac45e);
}
.qg-avatar-wrap.lv3 .qg-agent-chip {
  color: #3b1048;
  background: linear-gradient(180deg, rgba(230, 170, 255, 0.95), rgba(198, 64, 255, 0.7));
}
.qg-id-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 0;
}
.qg-id-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.qg-id-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #142008;
  line-height: 1.25;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qg-id-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.qg-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(26, 34, 16, 0.06);
}
.qg-chip[hidden] { display: none !important; }
.qg-chip-team {
  color: #fff;
  border-color: rgba(237, 79, 39, 0.35);
  background: linear-gradient(135deg, #e68534 0%, #f0a66a 100%);
}
.qg-chip-star {
  color: #fff;
  background: linear-gradient(135deg, #f0731f 0%, #ffb347 100%);
}
.qg-chip-star b {
  font-weight: 800;
  font-family: var(--qg-font-display);
}
.qg-chip-member {
  color: #1e3a6e;
  background: linear-gradient(135deg, rgba(148, 186, 255, 0.55), rgba(118, 168, 253, 0.42));
  border-color: rgba(118, 168, 253, 0.35);
}
.qg-id-meta {
  min-width: 0;
}
.qg-id-phone {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(20, 32, 8, 0.58);
  background: rgba(137, 248, 0, 0.12);
  border: 1px solid rgba(137, 248, 0, 0.18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qg-id-phone::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--qg-lime);
  box-shadow: 0 0 0 3px rgba(137, 248, 0, 0.22);
  flex: 0 0 auto;
}
.qg-id-phone[hidden] { display: none !important; }

/* 旧 class 兼容（避免残留引用崩样式） */
.qg-id-main { flex: 1; min-width: 0; }
.qg-badge { display: none; }

/* —— 3×3 数据卡（对齐老版） —— */
.qg-grid-card {
  background: #fff;
  border-radius: 16px;
  padding: 8px 4px 12px;
  box-shadow: 0 8px 24px rgba(26, 34, 16, 0.05);
}
.qg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 0;
}
.qg-grid-item {
  border: 0;
  background: transparent;
  padding: 12px 4px;
  text-align: center;
  font: inherit;
  color: inherit;
  cursor: default;
}
.qg-grid-item.clickable { cursor: pointer; }
.qg-grid-item.clickable:active { opacity: 0.75; }
.qg-grid-item span {
  display: block;
  font-size: 12px;
  color: rgba(26, 34, 16, 0.55);
  margin-bottom: 6px;
}
.qg-grid-item b {
  display: block;
  font-family: var(--qg-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--qg-ink);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.qg-grid-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.qg-grid-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f0731f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* 矮屏 / 浏览器底栏占用后：进一步压缩到一屏 */
#qgPhone.is-dense .qg-head {
  padding: 4px 12px 6px;
  padding-top: max(4px, env(safe-area-inset-top, 0px));
}
#qgPhone.is-dense .qg-head h1 { font-size: 16px; line-height: 24px; }
#qgPhone.is-dense .qg-scroll {
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
}
#qgPhone.is-dense .qg-identity { padding-bottom: 3px; }
#qgPhone.is-dense .qg-id-card { padding: 8px; gap: 8px; border-radius: 14px; }
#qgPhone.is-dense .qg-avatar-wrap { width: 42px; height: 42px; }
#qgPhone.is-dense .qg-id-name { font-size: 14px; }
#qgPhone.is-dense .qg-id-body { gap: 3px; }
#qgPhone.is-dense .qg-hero-card { padding: 8px 10px; border-radius: 14px; }
#qgPhone.is-dense .qg-hero-value { font-size: 24px; margin-top: 4px; }
#qgPhone.is-dense .qg-hero-cta { height: 32px; margin-top: 6px; font-size: 12px; width: min(100%, 180px); }
#qgPhone.is-dense .qg-block { margin-top: 3px; }
#qgPhone.is-dense .qg-block-head { margin-bottom: 4px; }
#qgPhone.is-dense .qg-metric-list,
#qgPhone.is-dense .qg-team { gap: 3px; }
#qgPhone.is-dense .qg-metric,
#qgPhone.is-dense .qg-team-row,
#qgPhone.is-dense .qg-team-cell {
  min-height: 34px;
  padding: 6px 10px 6px 8px;
  border-radius: 12px;
}
#qgPhone.is-dense .qg-metric-left strong,
#qgPhone.is-dense .qg-team-row > span:first-child,
#qgPhone.is-dense .qg-team-cell > span:first-child { font-size: 14px; }
#qgPhone.is-dense .qg-metric-right b,
#qgPhone.is-dense .qg-team-row > b,
#qgPhone.is-dense .qg-team-cell > b { font-size: 16px; }
#qgPhone.is-ultra .qg-metric-left strong,
#qgPhone.is-ultra .qg-team-row > span:first-child,
#qgPhone.is-ultra .qg-team-cell > span:first-child { font-size: 14px; }
#qgPhone.is-ultra .qg-metric-right b,
#qgPhone.is-ultra .qg-team-row > b,
#qgPhone.is-ultra .qg-team-cell > b { font-size: 16px; }

#qgPhone.is-ultra .qg-hero-value { font-size: 22px; }
#qgPhone.is-ultra .qg-hero-sub { display: none; }
#qgPhone.is-ultra .qg-hero-cta { height: 30px; margin-top: 5px; }
#qgPhone.is-ultra .qg-metric,
#qgPhone.is-ultra .qg-team-row,
#qgPhone.is-ultra .qg-team-cell {
  min-height: 30px;
  padding: 5px 8px;
}
#qgPhone.is-ultra .qg-block-head h2 { font-size: 13px; }
#qgPhone.is-ultra .qg-block-head span { display: none; }
#qgPhone.is-ultra .qg-metric-right .chev { display: none; }
