/* Shared player terminal skin. Data renderers and their event selectors stay intact. */
#profile-v2-root {
  --ponder-panel: #071923;
  --ponder-border: rgba(66, 191, 231, .32);
  --mode-rail-width: clamp(96px, 11vw, 150px);
  --profile-v2-header-height: clamp(38px, 7vh, 58px);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#profile-v2-root .profile-v2-shell {
  width: min(98vw, 1440px);
  height: min(96dvh, 850px);
  grid-template-columns: var(--mode-rail-width) minmax(0, 1fr);
  grid-template-rows: var(--profile-v2-header-height) minmax(0, 1fr);
  border-radius: 2px;
  border-color: var(--ponder-border);
  background: linear-gradient(120deg, #071723, #020910 72%);
}
#profile-v2-root .ponder-mode-rail {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--ponder-border);
  background: linear-gradient(160deg, #071726, #030912 80%);
}
#profile-v2-root .ponder-data-brand {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 0 12px;
  color: #d5f5ff;
  letter-spacing: .2em;
}
#profile-v2-root .ponder-data-brand > span { font-size: clamp(26px, 4vh, 42px); color: var(--profile-v2-purple); line-height: 1; }
#profile-v2-root .ponder-data-brand > strong { font-size: clamp(11px, 1.1vw, 15px); }
#profile-v2-root .ponder-data-brand > small { font-size: 8px; letter-spacing: .4em; }
#profile-v2-root .profile-v2-tabs {
  flex-direction: column;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  gap: 7px;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab,
#profile-v2-root .ponder-mode-rail .profile-v2-title {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  height: auto;
  max-height: 132px;
  padding: 10px 3px;
  border: 1px solid #243c51;
  border-radius: 0;
  color: #8da6b8;
  background: linear-gradient(135deg, #102331, #07111e);
  font-size: clamp(10px, 1.05vw, 14px);
  letter-spacing: .04em;
  gap: 9px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
#profile-v2-root .ponder-mode-rail .profile-v2-icon { width: 26px; height: 26px; }
#profile-v2-root .ponder-mode-rail .profile-v2-tab:hover { color: #d8fdff; border-color: var(--profile-v2-cyan); }
#profile-v2-root .ponder-mode-rail .profile-v2-tab.is-active,
#profile-v2-root .ponder-mode-rail .profile-v2-title {
  color: #75e7ff;
  border-color: var(--profile-v2-cyan);
  background: linear-gradient(115deg, #103244, #09222e 75%);
  box-shadow: inset 4px 0 var(--profile-v2-cyan), inset 0 -2px #8251bf, inset 0 0 22px #25c1e511;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab:focus-visible { outline: 2px solid white; outline-offset: -5px; }
/* The existing self-only VS extension still owns its own availability. */
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"] { flex: .5; font-size: 10px; }
#profile-v2-root .ponder-rail-spacer { flex: .35 1 12px; min-height: 0; display: flex; align-items: end; overflow: hidden; }
#profile-v2-root .ponder-rail-spacer span { padding: 8px; font-size: 8px; line-height: 1.8; letter-spacing: .18em; color: #687f9b; border-left: 2px solid #7852ac; }
#profile-v2-root .ponder-mode-rail .profile-v2-close {
  flex: 0 0 42px;
  width: 100%;
  min-width: 0;
  height: 42px;
  max-height: none;
  margin-top: auto;
  padding: 0 3px;
  border-radius: 0;
  border-color: #61889e;
  color: #d8eaf0;
  background: #0b1f2b;
  font-size: 11px;
  letter-spacing: .08em;
}
#profile-v2-root .profile-v2-close > span { margin-right: 5px; color: var(--profile-v2-cyan); }
#profile-v2-root .profile-v2-close:hover { border-color: var(--profile-v2-cyan); background: #102d40; }
#profile-v2-root .profile-v2-header { grid-column: 2; grid-row: 1; border-bottom-color: var(--ponder-border); padding: 0 clamp(10px, 1.5vw, 22px); }
#profile-v2-root .ponder-page-heading { min-width: 0; }
#profile-v2-root .ponder-page-heading > div { display: none; align-items: center; gap: 12px; color: var(--profile-v2-cyan); }
#profile-v2-root .ponder-page-heading strong { font-size: clamp(15px, 2vw, 24px); letter-spacing: .12em; white-space: nowrap; }
#profile-v2-root .ponder-page-heading .profile-v2-icon { width: 24px; height: 24px; }
#profile-v2-root .ponder-page-heading small { max-width: 210px; padding-left: 16px; border-left: 1px solid #384c64; color: #88a6b7; font-size: 9px; line-height: 1.7; letter-spacing: .18em; }
/* Header follows the existing view's hidden state; no second JS navigation state. */
#profile-v2-root .profile-v2-shell:has(> [data-profile-v2-view="profile"]:not([hidden])) [data-ponder-heading="profile"],
#profile-v2-root .profile-v2-shell:has(> [data-profile-v2-view="analysis"]:not([hidden])) [data-ponder-heading="analysis"],
#profile-v2-root .profile-v2-shell:has(> [data-profile-v2-view="hand-read"]:not([hidden])) [data-ponder-heading="hand-read"],
#profile-v2-root .profile-v2-shell:has(> [data-profile-v2-view="vs-record"]:not([hidden])) [data-ponder-heading="vs-record"] { display: flex; }
#profile-v2-root .profile-v2-shell > [data-profile-v2-view] { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #286883 #06111b; scrollbar-width: thin; }
#profile-v2-root .profile-v2-shell > [data-profile-v2-view][hidden] { display: none; }
#profile-v2-root .profile-v2-shell .profile-v2-panel {
  border-radius: 2px;
  border: 1px solid var(--ponder-border);
  background: linear-gradient(125deg, #0b2330cc, #06131dcc);
  box-shadow: inset 0 1px #5ac9e910;
}
#profile-v2-root .profile-v2-panel::before { background: none; }
#profile-v2-root .profile-v2-panel::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  right: 0;
  top: 0;
  background: linear-gradient(45deg, transparent 46%, #39b1d9 48%, #39b1d9 52%, #06121e 54%);
  pointer-events: none;
}
#profile-v2-root .profile-v2-section-title { color: #69d9f5; letter-spacing: .07em; font-size: clamp(11px, 1.15vw, 16px); }
#profile-v2-root .profile-v2-player > .profile-v2-panel-label,
#profile-v2-root .profile-v2-history-header,
#profile-v2-root .profile-v2-summary-title,
#profile-v2-root .hd-section-head { border-bottom: 1px solid #24557366; padding-bottom: 8px; }
#profile-v2-root .profile-v2-profile-view { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); grid-template-rows: minmax(190px, 1.5fr) minmax(160px, 1fr); padding: clamp(8px, 1.3vw, 18px); gap: clamp(8px, 1vw, 14px); }
#profile-v2-root .profile-v2-player { padding: clamp(10px, 1.4vw, 18px); }
#profile-v2-root .profile-v2-player-content { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 10px; }
#profile-v2-root .profile-v2-player-badge { width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; filter: none; }
#profile-v2-root .profile-v2-player-name { font-size: clamp(14px, 1.6vw, 22px); }
#profile-v2-root .profile-v2-rating { font-size: clamp(28px, 3.8vw, 48px); }
#profile-v2-root .profile-v2-rank { color: #be98ff; font-size: clamp(10px, 1.2vw, 15px); }
#profile-v2-root .profile-v2-peak { font-size: 10px; flex-wrap: wrap; }
#profile-v2-root .profile-v2-summary.is-self { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr); }
#profile-v2-root .profile-v2-summary-card { padding: clamp(9px, 1.2vw, 16px); }
#profile-v2-root .profile-v2-summary-metric > span { font-size: clamp(9px, .95vw, 12px); letter-spacing: .02em; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
#profile-v2-root .profile-v2-summary-metric > strong { font-size: clamp(17px, 2.2vw, 28px); }
#profile-v2-root .profile-v2-summary-metric + .profile-v2-summary-metric { border-left: 1px solid #2d5d7d55; }
#profile-v2-root .profile-v2-match-card { border-radius: 2px; border-color: #254e69; background: #081c28; }
#profile-v2-root .profile-v2-match-card.is-selected { border-color: var(--profile-v2-cyan); }
#profile-v2-root .profile-v2-analysis-subtab { border-radius: 0; border: 1px solid #2e4b66; background: #0b1c29; min-height: 34px; padding: 7px 12px; font-size: 11px; }
#profile-v2-root .profile-v2-analysis-subtab.is-active { box-shadow: inset 0 -3px var(--profile-v2-cyan); }
#profile-v2-root .profile-v2-analysis-filter-button,
#profile-v2-root .profile-v2-analysis-contexts button,
#profile-v2-root .profile-v2-guest-login,
#profile-v2-root .hd-history-detail-button { border-radius: 2px; }
#profile-v2-root .profile-v2-analysis-stat-row { border-radius: 0; border-bottom: 1px solid #21486355; }
#profile-v2-root .profile-v2-analysis-panel,
#profile-v2-root .profile-v2-analysis-position,
#profile-v2-root .profile-v2-hand-read-row,
#profile-v2-root .profile-v2-hand-read-detail { border-radius: 2px; }
#profile-v2-root .hd-section-title h2 { color: #69d9f5; letter-spacing: .06em; }
#profile-v2-root .hd-history-detail-button { min-height: 30px; }
#profile-v2-root .profile-v2-analysis-card-title { padding-bottom: 8px; border-bottom: 1px solid #24557366; }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-filter-button { height: 32px; border-radius: 2px; }
#profile-v2-root .profile-v2-analysis-view [data-profile-v2-analysis-contexts] { border-radius: 2px; }
#profile-v2-root .profile-v2-analysis-drilldown-button { width: 28px; height: 28px; border-radius: 2px; }
#profile-v2-root .profile-v2-hand-read-content { min-height: 580px; }
#profile-v2-root .profile-v2-hand-read-layout { grid-template-rows: minmax(190px, 1.4fr) minmax(125px, 1fr) minmax(200px, 1.6fr); }
#profile-v2-root .hd-section-title { flex-wrap: wrap; }
#profile-v2-root .hd-score-stats > div,
#profile-v2-root .hd-about,
#profile-v2-root .profile-v2-hand-read-best-link,
#profile-v2-root .hd-info-popover { border-radius: 2px; }
#profile-v2-root .hd-info-trigger,
#profile-v2-root .profile-v2-ev-info { min-width: 26px; min-height: 26px; border-radius: 2px; }
@media (max-height: 500px) {
  #profile-v2-root { --profile-v2-header-height: 38px; }
  #profile-v2-root .ponder-mode-rail { padding: 6px; gap: 5px; }
  #profile-v2-root .ponder-data-brand { grid-template-columns: auto auto; justify-content: center; padding: 2px 0 5px; gap: 5px; }
  #profile-v2-root .ponder-data-brand > span { font-size: 22px; }
  #profile-v2-root .ponder-data-brand > small { display: none; }
  #profile-v2-root .ponder-mode-rail .profile-v2-tab { gap: 5px; padding: 5px 2px; }
  #profile-v2-root .ponder-mode-rail .profile-v2-icon { width: 22px; height: 22px; }
  #profile-v2-root .ponder-rail-spacer { flex: .1 1 0; }
  #profile-v2-root .ponder-rail-spacer span { display: none; }
  #profile-v2-root .profile-v2-profile-view { grid-template-rows: minmax(175px, 1fr) 150px; }
  #profile-v2-root .profile-v2-player-content { gap: 6px; }
  #profile-v2-root .profile-v2-summary-metric > strong { font-size: 18px; }
  #profile-v2-root .profile-v2-summary-metric > span { font-size: 9px; }
  #profile-v2-root .profile-v2-analysis-body { min-height: 440px; }
}
@media (max-width: 760px) {
  #profile-v2-root { --mode-rail-width: 96px; }
  #profile-v2-root .ponder-page-heading small { display: none; }
  #profile-v2-root .profile-v2-summary.is-self { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  #profile-v2-root .profile-v2-ev-score { grid-column: 1 / -1; min-height: 140px; }
  #profile-v2-root .profile-v2-profile-view { grid-template-rows: 190px auto; }
  #profile-v2-root .profile-v2-summary { grid-auto-rows: minmax(140px, auto); }
  #profile-v2-root .profile-v2-analysis-subtab { padding: 7px 8px; font-size: 10px; }
}
@media (max-width: 560px) {
  #profile-v2-root { --mode-rail-width: 88px; }
  #profile-v2-root .profile-v2-profile-view { display: flex; flex-direction: column; }
  #profile-v2-root .profile-v2-player { flex: 0 0 200px; }
  #profile-v2-root .profile-v2-history { flex: 0 0 240px; }
  #profile-v2-root .profile-v2-summary.is-self { display: flex; flex-direction: column; flex: 0 0 auto; }
  #profile-v2-root .profile-v2-summary-card { min-height: 150px; }
}

/* Pass 02: mechanical HUD layers; every decorative layer ignores pointer input.
   Frames are nine-sliced SVG, not a clip on the content/popover container. */
#profile-v2-root {
  --hud-frame: url("/assets/ui/data-hud-frame.svg?v=20260927-profile-hud-home-fit-01");
  --hud-module: url("/assets/ui/data-hud-module.svg?v=20260927-profile-hud-home-fit-01");
  --hud-cut: 16px;
  --hud-type: var(--font-display, "Rajdhani", "Noto Sans JP", sans-serif);
  font-family: var(--font-body, "Noto Sans JP", sans-serif);
}
#profile-v2-root .profile-v2-shell {
  isolation: isolate;
  width: min(98vw, 1536px);
  height: min(97dvh, 900px);
  border: 0;
  padding: 10px 10px 10px 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, #62ccef05 50%, transparent 50.2%) 0 0 / 42px 42px,
    linear-gradient(transparent 49.8%, #62ccef05 50%, transparent 50.2%) 0 0 / 42px 42px,
    radial-gradient(ellipse at 18% 30%, #0d2d4442, transparent 55%), #020b14;
}
#profile-v2-root .profile-v2-shell::before {
  content: ""; position: absolute; inset: 2px 2px 2px calc(var(--mode-rail-width) + 3px);
  border: 24px solid transparent; border-image: var(--hud-frame) 24 / 24px stretch;
  pointer-events: none; z-index: -1; opacity: .75;
}
#profile-v2-root .profile-v2-shell::after {
  content: ""; position: absolute; bottom: 9px; left: calc(var(--mode-rail-width) + 28px);
  width: 45px; height: 3px; background: #b666ff;
  box-shadow: 0 0 7px #9f41ee80; transform: rotate(45deg); transform-origin: left;
  pointer-events: none;
}
#profile-v2-root .ponder-mode-rail {
  position: relative; isolation: isolate; border: 0; padding: 5px 10px 0;
  gap: 10px;
  background:
    linear-gradient(90deg, #6236b94d, transparent 4%, transparent 95%, #249fc155),
    linear-gradient(155deg, #071321, #020813 70%);
}
#profile-v2-root .ponder-mode-rail::before {
  content: ""; position: absolute; inset: 0 2px;
  border: 24px solid transparent; border-image: var(--hud-module) 24 / 24px stretch;
  opacity: .65; z-index: -1; pointer-events: none;
}
#profile-v2-root .ponder-mode-rail::after {
  content: ""; position: absolute; width: 3px; height: 19%; left: 1px; top: 44%;
  background: linear-gradient(#ab5aff, #7149d344, #5ce0ff);
  box-shadow: 0 0 6px #a15aff66; pointer-events: none;
}
#profile-v2-root .ponder-data-brand {
  position: relative; min-height: 115px; padding: 6px 0 14px;
  background: radial-gradient(ellipse at 50% 30%, #844ad62b, transparent 70%);
  border-bottom: 1px solid #396e8b66;
}
#profile-v2-root .ponder-data-brand > span {
  display: block; width: 70px; height: 66px; font-size: 0;
  background: url("/assets/profile-badges/ponder-badge-placeholder.jpg?v=20260811-analysis-v2-ranked01") center / cover no-repeat;
  border-radius: 50%; box-shadow: 0 0 10px #975aea33;
}
#profile-v2-root .ponder-data-brand > strong { font: 600 17px/1 var(--hud-type); letter-spacing: .24em; color: #dfc8ff; }
#profile-v2-root .ponder-data-brand > small { font: 500 10px/1 var(--hud-type); letter-spacing: .4em; color: #a4bfd0; }
#profile-v2-root .profile-v2-tabs { gap: 10px; flex: 1; }
#profile-v2-root .ponder-rail-spacer { flex: 0 1 52px; }
#profile-v2-root .ponder-mode-rail .profile-v2-tab,
#profile-v2-root .ponder-mode-rail .profile-v2-title {
  isolation: isolate; border: 0; clip-path: none; border-radius: 0;
  max-height: 160px; min-height: 48px; background: none; box-shadow: none;
  font: 600 clamp(14px, 1.5vw, 20px)/1 var(--hud-type); letter-spacing: .06em;
  color: #8397ac; gap: 10px;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab::before,
#profile-v2-root .ponder-mode-rail .profile-v2-title::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  background: linear-gradient(135deg, #0a1c2b, #06101c 75%);
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab::after,
#profile-v2-root .ponder-mode-rail .profile-v2-title::after {
  content: ""; display: block; position: absolute; inset: 0; z-index: -1;
  width: auto; height: auto; border: 24px solid transparent;
  border-image: var(--hud-module) 24 / 24px stretch;
  opacity: .45; pointer-events: none; background: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab.is-active,
#profile-v2-root .ponder-mode-rail .profile-v2-title { color: #58dfff; text-shadow: 0 0 7px #14b8ed60; }
#profile-v2-root .ponder-mode-rail .profile-v2-tab.is-active::before,
#profile-v2-root .ponder-mode-rail .profile-v2-title::before {
  background:
    linear-gradient(90deg, #76edff 0 3px, transparent 3px),
    linear-gradient(0deg, #aa5cfb 0 3px, transparent 3px),
    radial-gradient(ellipse at 0 40%, #13637e8c, transparent 90%), #061724;
  box-shadow: inset 0 0 12px #50d7f322;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab.is-active::after,
#profile-v2-root .ponder-mode-rail .profile-v2-title::after { opacity: 1; }
#profile-v2-root .ponder-mode-rail .profile-v2-icon { width: 29px; height: 29px; }
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"] {
  flex: 0 0 32px; min-height: 32px; max-height: 32px; font-size: 12px; color: #637891;
}
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"]::after { opacity: .23; }
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"].is-active { color: #56c7e4; }
#profile-v2-root .ponder-mode-rail .profile-v2-close {
  isolation: isolate; min-height: 56px; flex-basis: 56px;
  border: 0; background: none; font: 600 18px/1 var(--hud-type); letter-spacing: .1em;
}
#profile-v2-root .ponder-mode-rail .profile-v2-close::before {
  inset: 0; z-index: -1; background: linear-gradient(120deg, #102d3b, #061521);
  clip-path: polygon(16px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  box-shadow: inset 0 0 12px #48e7ff15; pointer-events: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-close::after {
  content: ""; position: absolute; inset: 0; border: 22px solid transparent;
  border-image: var(--hud-frame) 22 / 22px stretch; pointer-events: none;
}
#profile-v2-root .profile-v2-close > span { font-size: 26px; vertical-align: -2px; margin-right: 9px; }
#profile-v2-root .profile-v2-header {
  isolation: isolate; position: relative; margin: 0 13px; padding: 0 18px;
  border: 0; background: linear-gradient(90deg, #092631aa, transparent);
}
#profile-v2-root .profile-v2-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 18px solid transparent; border-image: var(--hud-module) 24 / 18px stretch;
  opacity: .7; pointer-events: none;
}
#profile-v2-root .profile-v2-header::after {
  content: "P O N D E R   P O K E R"; margin-left: auto; padding-right: 10px;
  color: #8ab0bf; font: 500 10px/1 var(--hud-type); letter-spacing: .28em;
}
#profile-v2-root .profile-v2-header-actions { order: 1; }
#profile-v2-root .ponder-page-heading strong { font: 600 clamp(21px, 2.2vw, 32px)/1 var(--hud-type); letter-spacing: .11em; text-shadow: 0 0 6px #13bee933; }
#profile-v2-root .ponder-page-heading small { font: 500 10px/1.5 var(--hud-type); letter-spacing: .28em; }
#profile-v2-root .profile-v2-profile-view { position: relative; padding: 56px 16px 20px; grid-template-rows: minmax(240px, 1.65fr) minmax(180px, 1fr); gap: 15px; }
#profile-v2-root .profile-v2-profile-view::before {
  content: ""; position: absolute; top: 9px; left: 17px; right: 17px; height: 34px;
  box-sizing: border-box;
  border: 16px solid transparent; border-image: var(--hud-module) 24 / 16px stretch;
  background: linear-gradient(100deg, #0b293540, #10243915); opacity: .65; pointer-events: none;
}
#profile-v2-root .profile-v2-profile-view::after {
  content: "////   TRACK  ›  IMPROVE  ›  HIGHER GAMES"; position: absolute; top: 21px; right: 40px;
  color: #6f92ac; font: 500 10px/1 var(--hud-type); letter-spacing: .2em; pointer-events: none;
}
#profile-v2-root .profile-v2-shell .profile-v2-panel {
  position: relative; isolation: isolate; border: 0; border-radius: 0;
  background: none; box-shadow: none;
}
#profile-v2-root .profile-v2-shell .profile-v2-panel::before {
  content: ""; position: absolute; inset: 1px; z-index: -2; pointer-events: none;
  border-radius: 0;
  clip-path: polygon(15px 0, calc(100% - 17px) 0, 100% 17px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 17px 100%, 0 calc(100% - 17px), 0 15px);
  background:
    linear-gradient(90deg, #2d637905 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(#2d637905 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(ellipse at 25% 0, #12324980, transparent 80%), #03121d;
  box-shadow: inset 0 0 12px #43d2ff0d;
}
#profile-v2-root .profile-v2-shell .profile-v2-panel::after {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; z-index: -1;
  border: 24px solid transparent; border-image: var(--hud-frame) 24 / 24px stretch;
  background: none; pointer-events: none;
}
#profile-v2-root :is(.profile-v2-player,.profile-v2-history,.profile-v2-summary-card) { padding: 15px 17px; }
#profile-v2-root :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head) {
  position: relative; isolation: isolate; min-height: 34px;
  padding: 3px 3px 10px; border-bottom: 1px solid #37b7dd55;
  background: linear-gradient(100deg, #12557722, transparent 90%);
}
#profile-v2-root :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head)::before {
  content: ""; position: absolute; left: -8px; bottom: -1px; width: 65px; height: 2px;
  background: #56dfff; box-shadow: 0 0 5px #55dfff66; pointer-events: none;
}
#profile-v2-root :is(.profile-v2-section-title,.profile-v2-analysis-card-title,.hd-section-title h2) {
  font-family: var(--hud-type); font-size: clamp(15px, 1.45vw, 21px);
  font-weight: 600; letter-spacing: .08em; color: #5ed6f4;
}
#profile-v2-root .profile-v2-history-header .profile-v2-section-title::after { content: "RATING PROGRESSION OVER TIME"; margin-left: 12px; font: 500 9px/1 var(--hud-type); letter-spacing: .17em; color: #6d8eac; }
#profile-v2-root .profile-v2-player .profile-v2-panel-label::after { content: "SAME GAME. A SHARPER YOU."; margin-left: auto; font: 500 8px/1 var(--hud-type); letter-spacing: .14em; color: #748ba5; }
#profile-v2-root .profile-v2-player { overflow: visible; padding-bottom: 42px; }
#profile-v2-root .profile-v2-player-content { position: static; align-self: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 15px; }
#profile-v2-root .profile-v2-player-content::after {
  content: "BETTER PLAYERS — A BRIGHTER TOMORROW"; position: absolute; bottom: 24px; left: 10%; right: 10%;
  padding-inline: 28px; text-align: center;
  background: linear-gradient(#3989aa88, #3989aa88) left center / 24px 1px no-repeat,
    linear-gradient(#3989aa88, #3989aa88) right center / 24px 1px no-repeat;
  font: 500 9px/1.4 var(--hud-type); letter-spacing: .21em; color: #758ba7; pointer-events: none;
}
#profile-v2-root .profile-v2-player-badge { max-width: 220px; border: 1px solid #8d58d355; border-radius: 50%; background: radial-gradient(#8c40ee33, transparent 72%); box-shadow: 0 0 12px #7445ba30, 0 0 0 4px #2a1c4f66; }
#profile-v2-root .profile-v2-player-name { font: 600 clamp(19px, 2vw, 27px)/1.15 var(--hud-type); letter-spacing: .01em; color: #f1f3f9; }
#profile-v2-root .profile-v2-rank { font: 600 clamp(15px, 1.6vw, 22px)/1.1 var(--hud-type); letter-spacing: .05em; color: #bc87ff; }
#profile-v2-root .profile-v2-rating { font: 600 clamp(34px, 4.1vw, 59px)/1 var(--hud-type); letter-spacing: .01em; text-shadow: 0 0 9px #28cce830; }
#profile-v2-root .profile-v2-peak { font: 500 12px/1.2 var(--hud-type); letter-spacing: .09em; }
#profile-v2-root .profile-v2-chart { margin: 12px 1px 8px; background: linear-gradient(90deg, #2b84aa0b 1px, transparent 1px) 0 0 / 32px 100%; }
#profile-v2-root .profile-v2-history { grid-template-rows: 36px minmax(0, 1fr) 60px; }
#profile-v2-root .profile-v2-chart-grid text { font: 500 11px var(--hud-type); fill: #92b0bd; }
#profile-v2-root .profile-v2-chart-grid line { stroke: #5b9cc835; }
#profile-v2-root #profileV2RatingArea stop:first-child { stop-color: #1bc9ef; stop-opacity: .23; }
#profile-v2-root #profileV2RatingArea stop:last-child { stop-color: #1bc9ef; stop-opacity: .015; }
#profile-v2-root .profile-v2-chart-latest-halo { stroke: #6be2ff; stroke-width: 1.8; fill: #58e1ff18; }
#profile-v2-root .profile-v2-chart-point.is-latest .profile-v2-chart-dot { fill: #d9ffff; stroke: #55deff; }
#profile-v2-root .profile-v2-match-strip { gap: 8px; padding: 2px 1px 1px; }
#profile-v2-root .profile-v2-match-card { min-height: 56px; border: 1px solid #215a76; border-left: 2px solid #25add9; border-radius: 0; background: linear-gradient(125deg, #122d4166, #06121e); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
#profile-v2-root .profile-v2-match-card :is(strong,span) { font-family: var(--hud-type); font-weight: 600; }
#profile-v2-root .profile-v2-match-place { font-size: 21px; }
#profile-v2-root .profile-v2-match-delta { font-size: 15px; }
#profile-v2-root .profile-v2-summary.is-self { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr); gap: 14px; }
#profile-v2-root .profile-v2-summary-title { align-self: start; padding-bottom: 18px; }
#profile-v2-root .profile-v2-summary-title::after { position: absolute; left: 25px; bottom: 4px; font: 500 8px/1 var(--hud-type); letter-spacing: .16em; color: #7591ac; }
#profile-v2-root .profile-v2-public-stats .profile-v2-summary-title::after { content: "KEY TRENDS FROM YOUR PLAY"; }
#profile-v2-root .profile-v2-ranked-record .profile-v2-summary-title::after { content: "YOUR RESULTS MATTER"; }
#profile-v2-root .profile-v2-ev-score .profile-v2-summary-title::after { content: "REALITY BEYOND VARIANCE"; }
#profile-v2-root .profile-v2-summary-metric { gap: 9px; }
#profile-v2-root .profile-v2-summary-metric > span { font: 500 clamp(11px, 1.05vw, 14px)/1.15 var(--hud-type); letter-spacing: .09em; color: #b3c6d5; }
#profile-v2-root .profile-v2-summary-metric > strong { font-size: clamp(24px, 2.5vw, 35px); font-family: var(--hud-type); }
#profile-v2-root .profile-v2-summary-metric + .profile-v2-summary-metric { border: 0; }
#profile-v2-root .profile-v2-summary-metric + .profile-v2-summary-metric::before { background: linear-gradient(transparent, #376282, transparent); top: 10%; bottom: 10%; }
#profile-v2-root .profile-v2-metric-icon { width: 25px; height: 25px; color: #70a0bd; }
#profile-v2-root .profile-v2-ev-rate-svg { width: min(180px, 100%); max-height: 190px; }
#profile-v2-root .profile-v2-ev-rate-value { font-family: var(--hud-type); }
#profile-v2-root .profile-v2-ev-stat span { font: 500 10px/1.2 var(--hud-type); letter-spacing: .07em; color: #98adbf; }
#profile-v2-root .profile-v2-ev-stat strong { font: 600 clamp(17px, 1.65vw, 24px)/1 var(--hud-type); }
#profile-v2-root .profile-v2-analysis-subtabs { margin: 6px 12px 0; }
#profile-v2-root .profile-v2-analysis-subtab { font: 600 15px/1.2 var(--hud-type); letter-spacing: .06em; }
#profile-v2-root .profile-v2-analysis-body { padding: 12px; }
#profile-v2-root .profile-v2-analysis-card { padding: 14px 18px; }
#profile-v2-root .profile-v2-analysis-card-title > em { margin-left: auto; font: 500 11px/1.2 var(--hud-type); letter-spacing: .14em; color: #7895ac; }
#profile-v2-root .profile-v2-analysis-stat-info-button { font-size: clamp(12px, 1.1vw, 17px); }
#profile-v2-root .profile-v2-analysis-stat-value > strong { font-size: clamp(16px, 1.5vw, 21px); }
#profile-v2-root .profile-v2-position-matrix-row { font: 600 clamp(13px, 1.15vw, 17px)/1.2 var(--hud-type); }
#profile-v2-root .profile-v2-hand-read-view { padding: 12px; }
#profile-v2-root .profile-v2-hand-read-layout .profile-v2-panel { padding: 14px 16px; }
#profile-v2-root .profile-v2-hand-read-layout .profile-v2-hand-read-history { padding: 9px 12px; }
@media (max-width: 1150px) {
  #profile-v2-root .profile-v2-history-header .profile-v2-section-title::after,
  #profile-v2-root .profile-v2-player .profile-v2-panel-label::after { display: none; }
  #profile-v2-root .profile-v2-header::after { font-size: 8px; letter-spacing: .1em; }
}
@media (max-height: 500px) {
  #profile-v2-root .profile-v2-shell { padding: 4px 4px 4px 0; height: 97dvh; }
  #profile-v2-root .ponder-mode-rail { padding: 2px 5px 0; gap: 6px; }
  #profile-v2-root .ponder-data-brand { min-height: 30px; height: 30px; padding: 0; gap: 4px; }
  #profile-v2-root .ponder-data-brand > span { width: 26px; height: 26px; }
  #profile-v2-root .ponder-data-brand > strong { font-size: 12px; letter-spacing: .12em; }
  #profile-v2-root .profile-v2-tabs { gap: 6px; }
  #profile-v2-root .ponder-rail-spacer { flex: 0 1 3px; }
  #profile-v2-root .ponder-mode-rail .profile-v2-tab { font-size: 13px; min-height: 44px; gap: 4px; }
  #profile-v2-root .ponder-mode-rail .profile-v2-icon { width: 22px; height: 22px; }
  #profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"] { min-height: 24px; flex-basis: 24px; font-size: 10px; }
  #profile-v2-root .ponder-mode-rail .profile-v2-close { min-height: 42px; height: 42px; flex-basis: 42px; font-size: 14px; }
  #profile-v2-root .profile-v2-close > span { font-size: 21px; margin-right: 5px; }
  #profile-v2-root .profile-v2-header { margin: 0 8px; padding: 0 10px; }
  #profile-v2-root .profile-v2-header::after { display: none; }
  #profile-v2-root .ponder-page-heading strong { font-size: 22px; }
  #profile-v2-root .profile-v2-profile-view { padding: 30px 8px 12px; grid-template-rows: 186px 168px; gap: 9px; }
  #profile-v2-root .profile-v2-profile-view::before { top: 5px; left: 9px; right: 9px; height: 18px; border-width: 8px; border-image-width: 8px; }
  #profile-v2-root .profile-v2-profile-view::after { top: 10px; right: 25px; font-size: 8px; }
  #profile-v2-root :is(.profile-v2-player,.profile-v2-history,.profile-v2-summary-card) { padding: 10px 12px; }
  #profile-v2-root :is(.profile-v2-section-title,.profile-v2-analysis-card-title,.hd-section-title h2) { font-size: 14px; }
  #profile-v2-root :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title) { min-height: 26px; padding-bottom: 6px; }
  #profile-v2-root .profile-v2-player-content { gap: 8px; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  #profile-v2-root .profile-v2-player-content::after { display: none; }
  #profile-v2-root .profile-v2-player-name { font-size: 18px; }
  #profile-v2-root .profile-v2-rank { font-size: 13px; }
  #profile-v2-root .profile-v2-rating { font-size: 34px; }
  #profile-v2-root .profile-v2-peak { font-size: 10px; }
  #profile-v2-root .profile-v2-chart { margin: 3px 0; }
  #profile-v2-root .profile-v2-history { grid-template-rows: 27px minmax(0, 1fr) 38px; }
  #profile-v2-root .profile-v2-match-card { min-height: 35px; }
  #profile-v2-root .profile-v2-match-place { font-size: 15px; }
  #profile-v2-root .profile-v2-match-delta { font-size: 12px; }
  #profile-v2-root .profile-v2-summary.is-self { gap: 8px; }
  #profile-v2-root .profile-v2-summary-title::after { display: none; }
  #profile-v2-root .profile-v2-summary-metric > span { font-size: 10px; }
  #profile-v2-root .profile-v2-summary-metric > strong { font-size: 24px; }
  #profile-v2-root .profile-v2-metric-icon { width: 19px; height: 19px; }
  #profile-v2-root .profile-v2-ev-stat strong { font-size: 16px; }
  #profile-v2-root .profile-v2-ev-stat span { font-size: 9px; }
}
@media (min-width: 561px) and (max-width: 760px) {
  #profile-v2-root .profile-v2-profile-view { grid-template-rows: 190px auto; }
  #profile-v2-root .profile-v2-summary.is-self { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

/* Pass 03: the active rail identifies the page; space belongs to the data. */
#profile-v2-root .ponder-data-brand,
#profile-v2-root .ponder-page-heading { display: none; }
#profile-v2-root .profile-v2-shell { grid-template-rows: minmax(0, 1fr); }
#profile-v2-root .ponder-mode-rail,
#profile-v2-root .profile-v2-shell > [data-profile-v2-view] { grid-row: 1; }
#profile-v2-root .profile-v2-header { display: none; }
/* Keep the existing help button, without a page-heading row or a new handler. */
#profile-v2-root .profile-v2-shell:has(> [data-profile-v2-view="analysis"]:not([hidden])) .profile-v2-header {
  display: flex; position: absolute; top: 13px; right: 23px; width: 32px; height: 32px;
  margin: 0; padding: 0; z-index: 5; background: none;
}
#profile-v2-root .profile-v2-header::before,
#profile-v2-root .profile-v2-header::after,
#profile-v2-root .profile-v2-profile-view::before,
#profile-v2-root .profile-v2-profile-view::after,
#profile-v2-root .profile-v2-player .profile-v2-panel-label::after,
#profile-v2-root .profile-v2-history-header .profile-v2-section-title::after,
#profile-v2-root .profile-v2-player-content::after,
#profile-v2-root .profile-v2-summary-title::after { content: none; display: none; }
#profile-v2-root .profile-v2-analysis-info { width: 30px; height: 30px; min-width: 30px; }
#profile-v2-root .profile-v2-analysis-subtabs { margin: 3px 12px 0; padding-right: 40px; }
#profile-v2-root .profile-v2-profile-view {
  padding: 8px 12px 10px; gap: 12px;
  grid-template-rows: minmax(200px, 1.55fr) minmax(160px, 1fr);
}
#profile-v2-root .profile-v2-player { padding-bottom: 15px; }
#profile-v2-root .profile-v2-summary-title { padding-bottom: 8px; }
#profile-v2-root .ponder-mode-rail { padding-top: 3px; }
#profile-v2-root .ponder-rail-spacer { flex: 0 1 12px; }
#profile-v2-root .ponder-rail-spacer span { display: none; }
#profile-v2-root .ponder-mode-rail .profile-v2-tab { max-height: 200px; letter-spacing: .035em; }
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"] {
  flex: 0 0 38px; max-height: 38px; min-height: 38px;
  padding-left: 24px; font-size: 12px; flex-direction: row;
}
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"]::after {
  border-width: 16px; border-image-width: 16px; opacity: .6;
  background: url("/assets/ui/data-hud-versus.svg?v=20260927-profile-hud-home-fit-01") 9px center / 18px 18px no-repeat;
  background-origin: border-box; background-clip: border-box;
}
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"].is-active::after { opacity: 1; }
#profile-v2-root .ponder-mode-rail .profile-v2-close { min-height: 48px; height: 48px; flex-basis: 48px; }
#profile-v2-root :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head) {
  border-bottom: 0;
  background: linear-gradient(90deg, #47bfe583, #286a894d 35%, #17364b19 85%, transparent) left bottom / 100% 1px no-repeat,
    linear-gradient(105deg, #0d456120, #082b3810 55%, transparent);
}
#profile-v2-root :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head)::before {
  width: 48px; height: 1px; background: linear-gradient(90deg, #79e8ff, #24a8ca77, transparent);
  box-shadow: 0 0 4px #44ccee40;
}
@media (max-height: 500px) {
  #profile-v2-root .profile-v2-shell { height: 97dvh; padding: 4px 4px 4px 0; }
  #profile-v2-root .ponder-mode-rail { padding: 2px 5px 0; gap: 5px; }
  #profile-v2-root .profile-v2-tabs { gap: 5px; }
  #profile-v2-root .ponder-mode-rail .profile-v2-tab { min-height: 42px; padding-block: 4px; gap: 4px; font-size: 13px; }
  #profile-v2-root .ponder-mode-rail .profile-v2-icon { width: 22px; height: 22px; }
  #profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"] { flex-basis: 32px; min-height: 32px; max-height: 32px; font-size: 11px; padding-left: 19px; }
  #profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"]::after { background-size: 15px 15px; background-position: 6px center; }
  #profile-v2-root .ponder-rail-spacer { flex: 0 0 0; }
  #profile-v2-root .ponder-mode-rail .profile-v2-close { min-height: 38px; height: 38px; flex-basis: 38px; }
  #profile-v2-root .profile-v2-profile-view { padding: 5px 7px 6px; gap: 8px; grid-template-rows: minmax(166px, 1.25fr) minmax(132px, 1fr); }
  #profile-v2-root :is(.profile-v2-player,.profile-v2-history,.profile-v2-summary-card) { padding: 8px 11px; gap: 5px; }
  #profile-v2-root :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title) { min-height: 24px; padding: 2px 1px 5px; }
  #profile-v2-root .profile-v2-player-content { align-self: center; }
  #profile-v2-root .profile-v2-player-copy { gap: 5px; }
  #profile-v2-root .profile-v2-history { grid-template-rows: 24px minmax(0, 1fr) 35px; }
  #profile-v2-root .profile-v2-match-strip { gap: 5px; padding: 1px 0; }
  #profile-v2-root .profile-v2-match-card { min-height: 33px; padding: 3px 4px; }
  #profile-v2-root .profile-v2-match-place { font-size: 15px; }
  #profile-v2-root .profile-v2-match-delta { font-size: 12px; }
  #profile-v2-root .profile-v2-summary.is-self { gap: 7px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr); }
  #profile-v2-root .profile-v2-summary-metric { gap: 5px; padding-inline: 2px; }
  #profile-v2-root .profile-v2-summary-metric > span { font-size: 10px; letter-spacing: .035em; }
  #profile-v2-root .profile-v2-summary-metric > strong { font-size: 24px; }
  #profile-v2-root .profile-v2-metric-icon { width: 18px; height: 18px; }
  #profile-v2-root .profile-v2-ev-rate-svg { width: min(96px, 100%); max-height: 102px; }
  #profile-v2-root .profile-v2-ev-rate-value { font-size: 24px; }
  #profile-v2-root .profile-v2-ev-content { gap: 8px; }
  #profile-v2-root .profile-v2-ev-summary { gap: 5px; }
  #profile-v2-root .profile-v2-ev-stat strong { font-size: 16px; }
  #profile-v2-root .profile-v2-ev-stat span { font-size: 10px; letter-spacing: .025em; }
  #profile-v2-root .profile-v2-shell:has(> [data-profile-v2-view="analysis"]:not([hidden])) .profile-v2-header { top: 7px; right: 16px; }
  #profile-v2-root .profile-v2-analysis-subtabs { margin: 2px 8px 0; }
  #profile-v2-root .profile-v2-analysis-body { min-height: 0; padding: 6px 8px; }
  #profile-v2-root .profile-v2-analysis-card { padding: 9px 12px; }
  #profile-v2-root .profile-v2-analysis-card-title { min-height: 25px; padding-bottom: 6px; }
  #profile-v2-root .profile-v2-analysis-stat-list { display: flex; flex-direction: column; }
  #profile-v2-root .profile-v2-analysis-preflop-detail { grid-template-rows: minmax(169px, 1.15fr) minmax(134px, 1fr); }
  #profile-v2-root .profile-v2-analysis-preflop-detail .profile-v2-analysis-stat-list { padding-block: 7px; }
  #profile-v2-root .profile-v2-analysis-stat-list-grid { flex: 1; min-height: 0; height: auto; }
  #profile-v2-root .profile-v2-analysis-preflop-detail .profile-v2-analysis-drilldown-button { width: 26px; height: 24px; }
  #profile-v2-root .profile-v2-analysis-preflop-detail .profile-v2-analysis-drilldown-button::after { inset: 0; }
  #profile-v2-root .profile-v2-position-matrix { grid-template-rows: 25px repeat(5, minmax(0, 1fr)); }
  #profile-v2-root .profile-v2-hand-read-view { padding: 5px 8px; }
  #profile-v2-root .profile-v2-hand-read-content { min-height: 354px; }
  #profile-v2-root .profile-v2-hand-read-layout { grid-template-rows: minmax(140px, 1.3fr) minmax(90px, .85fr) minmax(112px, 1fr); gap: 5px; }
  #profile-v2-root .profile-v2-hand-read-layout .profile-v2-panel { padding: 7px 10px; }
  #profile-v2-root .profile-v2-hand-read-layout .hd-section-head { min-height: 24px; padding: 1px 1px 4px; }
  #profile-v2-root .profile-v2-hand-read-layout .hd-section-title h2 { font-size: 13px; letter-spacing: .035em; }
}
@media (min-width: 640px) and (max-width: 760px) and (max-height: 500px) {
  #profile-v2-root .profile-v2-ev-score { grid-column: auto; min-height: 0; }
  #profile-v2-root .profile-v2-summary-metric > strong { font-size: 21px; }
  #profile-v2-root .profile-v2-section-title { font-size: 13px; letter-spacing: .025em; }
}
@media (max-height: 370px) {
  /* Preserve readable row/tap sizes on shorter devices; the view may scroll. */
  #profile-v2-root .profile-v2-analysis-body { min-height: 326px; }
}

/* Pass 04: four equal modules; only edge light distinguishes the active state. */
#profile-v2-root {
  --rail-tab-icon: 29px;
  --rail-tab-label: clamp(14px, 1.5vw, 20px);
  --rail-tab-icon-gap: 9px;
  --rail-tab-gap: 10px;
}
#profile-v2-root .profile-v2-tabs {
  gap: var(--rail-tab-gap);
  /* A definite shared basis avoids giving the text-only VS extension another size. */
  flex: 1 1 0;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 calc((100% - 3 * var(--rail-tab-gap)) / 4);
  width: 100%; min-height: 0; max-height: none;
  padding: calc(var(--rail-tab-icon) + var(--rail-tab-icon-gap)) 3px 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 0; font-size: var(--rail-tab-label); line-height: 1;
  color: #8397ac; background: none; box-shadow: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab::before {
  box-sizing: border-box;
  border: 24px solid transparent;
  border-image: var(--hud-module) 24 / 24px stretch;
  background: linear-gradient(180deg, #07131e, #030b13);
  background-origin: border-box;
  opacity: .65; box-shadow: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab::after { content: none; }
#profile-v2-root .ponder-mode-rail .profile-v2-tab > .profile-v2-icon {
  position: absolute; left: 50%;
  top: calc(50% - (var(--rail-tab-icon) + var(--rail-tab-icon-gap) + var(--rail-tab-label)) / 2);
  width: var(--rail-tab-icon); height: var(--rail-tab-icon);
  transform: translateX(-50%); margin: 0;
}
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"] { color: #6c819c; }
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"]::after {
  /* Decorative only: the existing VS button remains a text-only event target. */
  content: ""; inset: auto; left: 50%;
  top: calc(50% - (var(--rail-tab-icon) + var(--rail-tab-icon-gap) + var(--rail-tab-label)) / 2);
  width: var(--rail-tab-icon); height: var(--rail-tab-icon);
  transform: translateX(-50%); z-index: 0; border: 0;
  background: currentColor; opacity: 1;
  -webkit-mask: url("/assets/ui/data-hud-versus.svg?v=20260927-profile-hud-home-fit-01") center / contain no-repeat;
  mask: url("/assets/ui/data-hud-versus.svg?v=20260927-profile-hud-home-fit-01") center / contain no-repeat;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab:hover { color: #c5f8fc; }
#profile-v2-root .ponder-mode-rail .profile-v2-tab.is-active { color: #65e1fc; background: none; box-shadow: none; }
#profile-v2-root .ponder-mode-rail .profile-v2-tab.is-active::before {
  opacity: 1;
  background:
    linear-gradient(90deg, #5cd8f328, #247b9c0b 6px, transparent 13px),
    linear-gradient(180deg, #081925, #040e18);
  background-origin: border-box;
  box-shadow: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-close {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 3px; line-height: 1;
  clip-path: none; background: none; box-shadow: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-close::before {
  box-sizing: border-box;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  border: 12px solid transparent;
  border-image: url("/assets/ui/data-hud-close.svg?v=20260929-profile-data-hud-06") 12 / 12px stretch;
  background: linear-gradient(180deg, #081925, #040e18);
  background-origin: border-box; box-shadow: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-close::after { content: none; }
#profile-v2-root .profile-v2-close > span {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 22px; width: 22px; height: 26px; margin: 0;
  line-height: 1; vertical-align: baseline;
}
#profile-v2-root .profile-v2-shell::after {
  background: linear-gradient(90deg, transparent, #4ea7d58c 18%, #8192daab 48%, #ac72ea99 72%, transparent);
  box-shadow: none;
}
#profile-v2-root .ponder-mode-rail::after {
  background: linear-gradient(transparent, #4fb3d9aa 15%, #858bd8aa 40%, #a271d6aa 60%, #4db4dc88 83%, transparent);
  box-shadow: none;
}
/* Quiet surfaces keep the cyan / purple accents on the frame, not across the face. */
#profile-v2-root .profile-v2-shell .profile-v2-panel::before {
  background:
    linear-gradient(90deg, #42658005 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(#42658005 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(180deg, #071622, #030c15);
  box-shadow: none;
}
#profile-v2-root :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head) {
  background: linear-gradient(90deg, #47bfe573, #286a8936 35%, #17364b0c 85%, transparent) left bottom / 100% 1px no-repeat;
}
@media (max-height: 500px) {
  #profile-v2-root { --rail-tab-icon: 22px; --rail-tab-label: 13px; --rail-tab-icon-gap: 4px; --rail-tab-gap: 5px; }
  #profile-v2-root .profile-v2-close > span { flex-basis: 18px; width: 18px; height: 21px; }
}

/* Pass 05: independent switches over a quiet circuit surface. */
/* Expose the existing home backdrop, not overlapping home widgets. Closing restores them. */
/* Opacity on the foreground composite also hides descendants that explicitly
   restore visibility (ranked JOIN/status/copy). The home backdrop is ::before. */
body:has(> #profile-v2-root:not([hidden])) #appHomeScreen > :not(.home-owl-backdrop),
body:has(> #profile-v2-root:not([hidden])) #audioControl {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#profile-v2-root { --mode-rail-width: clamp(116px, 15vw, 174px); --rail-switch-height: clamp(46px, 13vh, 64px); background: transparent; }
#profile-v2-root .profile-v2-shell { background: rgba(2, 8, 14, .75); box-shadow: none; }
#profile-v2-root .ponder-mode-rail {
  padding: 7px 7px 0; gap: 10px;
  background: url('/assets/ui/data-hud-circuit.svg?v=20260927-profile-hud-home-fit-01') center / 100% 100% no-repeat, transparent;
}
/* Match the existing 16:9 home stage rather than the entire device viewport. */
#profile-v2-root { padding: 0; }
#profile-v2-root .profile-v2-shell {
  width: min(100vw, calc(100vh * 16 / 9));
  width: min(100vw, calc(100dvh * 16 / 9));
  max-width: 100%;
  height: min(97vh, 56.25vw, 900px);
  height: min(97dvh, 56.25vw, 900px);
  min-height: 0;
}
#profile-v2-root .ponder-mode-rail::before,
#profile-v2-root .ponder-mode-rail::after { content: none; }
#profile-v2-root .profile-v2-tabs { flex: 0 0 auto; height: auto; gap: 10px; }
#profile-v2-root .ponder-rail-spacer { flex: 1 1 0; }
#profile-v2-root .ponder-mode-rail .profile-v2-tab {
  flex: 0 0 var(--rail-switch-height); height: var(--rail-switch-height);
  padding: 0 8px 0 36px; font-size: clamp(12px, 1.3vw, 17px);
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab::before {
  border: 0; opacity: 1;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  background:
    linear-gradient(90deg, #5988aa70, #324a6020 65%, transparent) left top / 100% .65px no-repeat,
    linear-gradient(90deg, transparent, #8769b426 70%, transparent) left bottom / 100% .65px no-repeat,
    linear-gradient(180deg, rgba(13, 29, 43, .60), rgba(4, 12, 21, .60));
  box-shadow: inset 0 2px 3px #bddfff05, inset 0 -2px 3px #00000055;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab.is-active::before {
  background:
    linear-gradient(90deg, #77e8ffcc, #2787bd66 50%, transparent) left top / 100% .9px no-repeat,
    linear-gradient(180deg, #59d8fa99, #2979a840, transparent) left top / 1.5px 100% no-repeat,
    linear-gradient(110deg, rgba(8, 48, 73, .60), rgba(5, 23, 37, .60));
  box-shadow: inset 0 1px 5px #4cd0ff16, inset 0 -2px 3px #00000044;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab > .profile-v2-icon,
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"]::after {
  left: 10px; top: calc(50% - 10px); width: 20px; height: 20px; transform: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-close { height: 40px; min-height: 40px; flex-basis: 40px; font-size: 14px; }
#profile-v2-root .profile-v2-close > span { display: none; }
#profile-v2-root .ponder-mode-rail .profile-v2-close:focus-visible { outline: none; color: #efffff; }
#profile-v2-root .ponder-mode-rail .profile-v2-close:focus-visible::after {
  content: ""; inset: 0; border: 12px solid transparent;
  border-image: url('/assets/ui/data-hud-close.svg?v=20260929-profile-data-hud-06') 12 / 12px stretch;
  pointer-events: none;
}
#profile-v2-root .ponder-mode-rail .profile-v2-close::before {
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  background: linear-gradient(180deg, #0b2533df, #06131fe8);
}
/* .75 shell + .60 surface = .90 combined opacity: 10% transparency; gaps retain 25%. */
#profile-v2-root .profile-v2-shell .profile-v2-panel::before { background: rgba(3, 14, 22, .60); }
#profile-v2-root :is(.profile-v2-summary-title button,.hd-info-trigger,.profile-v2-ev-info,.profile-v2-analysis-info) {
  width: 26px; height: 26px; min-width: 26px; min-height: 26px;
  padding: 0; border-radius: 50%; border: .65px solid #5caac26b;
  background: rgba(3, 16, 25, .70); color: #a2dae9; box-shadow: none;
}
#profile-v2-root :is(.profile-v2-summary-title button,.hd-info-trigger,.profile-v2-ev-info,.profile-v2-analysis-info):hover { border-color: #79dff5; box-shadow: 0 0 4px #37b2da25; }
#profile-v2-root .profile-v2-analysis-subtab { border-width: .65px; background: rgba(5, 19, 29, .60); }
#profile-v2-root .profile-v2-analysis-subtab.is-active { box-shadow: inset 0 -1.5px #38bfe2; }
@media (max-height: 500px) {
  #profile-v2-root .ponder-mode-rail { padding: 5px 5px 0; gap: 8px; }
  #profile-v2-root .profile-v2-tabs { gap: 8px; }
  #profile-v2-root .ponder-mode-rail .profile-v2-close { height: 36px; min-height: 36px; flex-basis: 36px; }
}
/* Size numeric content against the home-sized shell, not the wider viewport. */
@container profile-v2-shell (max-width: 760px) {
  #profile-v2-root .profile-v2-player-content { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 6px; }
  #profile-v2-root .profile-v2-rating { font-size: 28px; }
  #profile-v2-root .profile-v2-summary-metric > strong { font-size: 18px; }
  #profile-v2-root .profile-v2-summary-metric > span { font-size: 9px; letter-spacing: .015em; }
}

/* Pass 06: quiet edge light, common header geometry, and denser identity content.
   All selectors stay inside the existing profile root; no navigation/DOM changes. */
#profile-v2-root {
  --hud-frame: url('/assets/ui/data-hud-frame-pass06.svg?v=20260929-profile-data-hud-06');
  --hud-head-height: 34px;
  --hud-panel-pad-y: 14px;
  --hud-panel-pad-x: 16px;
}
#profile-v2-root .profile-v2-shell::before { opacity: .42; }
#profile-v2-root .profile-v2-shell::after { height: 1px; opacity: .45; }
#profile-v2-root .profile-v2-shell .profile-v2-panel { padding: var(--hud-panel-pad-y) var(--hud-panel-pad-x); }
#profile-v2-root .profile-v2-shell .profile-v2-panel::before {
  background: linear-gradient(180deg, rgba(8, 18, 29, .69), rgba(2, 8, 15, .68));
  box-shadow: inset 0 1px 0 #53bcdd0f, inset 0 -8px 24px #0000002e;
}
#profile-v2-root .profile-v2-shell .profile-v2-panel::after { opacity: .83; }
#profile-v2-root .profile-v2-shell :is(.profile-v2-player,.profile-v2-history)::after { opacity: 1; }
#profile-v2-root .profile-v2-shell :is(.profile-v2-public-stats,.profile-v2-ranked-record)::after { opacity: .7; }
/* One module defines the title baseline and separator relative to every panel. */
#profile-v2-root .profile-v2-shell :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head) {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 var(--hud-head-height);
  height: var(--hud-head-height);
  min-height: var(--hud-head-height);
  margin: 0;
  padding: 0 1px 6px;
  border: 0;
  background: none;
  line-height: 1.1;
}
#profile-v2-root .profile-v2-shell :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head)::before {
  content: '';
  position: absolute;
  left: 1px; right: 1px; bottom: 0;
  width: auto; height: 1px;
  background: linear-gradient(90deg, #50b7d666, #2b6a8633 45%, #2142590b 85%, transparent);
  box-shadow: none;
  pointer-events: none;
}
#profile-v2-root :is(.profile-v2-section-title,.profile-v2-analysis-card-title,.hd-section-title h2) { font-size: clamp(13px, 1.32vw, 19px); line-height: 1.1; letter-spacing: .045em; }
#profile-v2-root .profile-v2-summary-title { font-size: clamp(12px, 1.28vw, 18px); }
#profile-v2-root .hd-section-title { flex-wrap: nowrap; }
#profile-v2-root :is(.profile-v2-summary-title button,.hd-info-trigger,.profile-v2-ev-info,.profile-v2-analysis-info) {
  position: relative;
  flex: 0 0 22px;
  width: 22px; height: 22px; min-width: 22px; min-height: 22px;
  font-size: 10px; line-height: 1;
  border: .65px solid #5b97b14d;
  background: #03101912; color: #92aebc;
  box-shadow: none;
}
/* Preserve a generous hit area while reducing only the visible disc. */
#profile-v2-root :is(.profile-v2-summary-title button,.hd-info-trigger,.profile-v2-ev-info,.profile-v2-analysis-info)::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
}
#profile-v2-root :is(.profile-v2-summary-title button,.hd-info-trigger,.profile-v2-ev-info,.profile-v2-analysis-info):is(:hover,:focus-visible) { color: #c2f7fa; border-color: #7ed9ef99; box-shadow: 0 0 3px #37b2da20; }
#profile-v2-root .profile-v2-player { grid-template-rows: var(--hud-head-height) minmax(0,1fr); gap: 5px; }
#profile-v2-root .profile-v2-player-content { grid-template-columns: minmax(0,.84fr) minmax(0,1fr); gap: 5px; align-self: center; }
#profile-v2-root .profile-v2-player-badge { width: 108%; max-width: 220px; box-shadow: 0 0 0 2px #62468933; }
#profile-v2-root .profile-v2-player-copy { gap: 4px; padding-left: 3px; }
#profile-v2-root .profile-v2-player-name { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.15; }
#profile-v2-root .profile-v2-rank { margin-top: 2px; }
#profile-v2-root .profile-v2-rating { margin-top: 3px; text-shadow: none; }
#profile-v2-root .profile-v2-peak { margin-top: 3px; color: #8095a7; }
#profile-v2-root .profile-v2-history { grid-template-rows: var(--hud-head-height) minmax(0,1fr) 52px; gap: 5px; }
#profile-v2-root .profile-v2-chart { margin: 0 0 5px; }
#profile-v2-root .profile-v2-chart-line { stroke-width: 1.35; filter: none; }
#profile-v2-root .profile-v2-chart-latest-halo { r: 8; stroke-width: .9; fill: #58e1ff0f; filter: none; }
#profile-v2-root .profile-v2-chart-point.is-latest .profile-v2-chart-dot { filter: drop-shadow(0 0 1px #40c6e333); }
#profile-v2-root .profile-v2-match-strip { gap: 5px; grid-auto-columns: max(36px, calc((100% - 35px) / 8)); padding: 1px 0; }
#profile-v2-root .profile-v2-match-card { min-height: 0; padding: 3px 2px; gap: 2px; border: .65px solid #315c7566; background: #040c15cc; box-shadow: inset 1px 0 #34a8d644; }
#profile-v2-root .profile-v2-match-card.is-selected { border-color: #5fc4df99; background: #071923; }
#profile-v2-root .profile-v2-match-place { font-size: 19px; text-overflow: clip; overflow: visible; }
#profile-v2-root .profile-v2-match-delta { font-size: 12px; letter-spacing: 0; }
#profile-v2-root .profile-v2-summary-metric + .profile-v2-summary-metric::before { background: linear-gradient(transparent,#37628240,transparent); }
#profile-v2-root .profile-v2-summary-metric > span { color: #839cab; }
#profile-v2-root .profile-v2-metric-icon { color: #637e97; opacity: .65; }
#profile-v2-root :is(.profile-v2-ev-rate-frame,.profile-v2-ev-rate-base,.profile-v2-ev-rate-over) { filter: none; }
#profile-v2-root .profile-v2-ev-rate-frame { stroke-width: .8; stroke-opacity: .65; }
#profile-v2-root :is(.profile-v2-ev-rate-track,.profile-v2-ev-rate-base,.profile-v2-ev-rate-over) { stroke-width: 2.6; }
#profile-v2-root .profile-v2-ev-content { gap: clamp(6px,1vw,12px); }
#profile-v2-root .profile-v2-ev-summary { display: grid; grid-template-rows: repeat(3,1fr); gap: 7px; }
#profile-v2-root .profile-v2-ev-stat { gap: 3px; }
#profile-v2-root .profile-v2-ev-stat span { color: #8196a8; }
#profile-v2-root .ponder-mode-rail :is(.profile-v2-tab,.profile-v2-close)::before {
  border: 0;
  background:
    linear-gradient(90deg,#75afc780,#36587a25 60%,#766ba333) left top / 100% .7px no-repeat,
    linear-gradient(180deg,#4e88ab40,transparent 80%) left top / .65px 100% no-repeat,
    linear-gradient(180deg,rgba(12,23,35,.76),rgba(2,8,16,.82));
  box-shadow: inset 0 1px 0 #bedcff0c, inset 0 -3px 6px #00000070;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab.is-active::before {
  background:
    linear-gradient(90deg,#83dff3c9,#3c82af40 65%,#8072b24d) left top / 100% .8px no-repeat,
    linear-gradient(180deg,#79d1ec99,#335a7933 65%,transparent) left top / .8px 100% no-repeat,
    linear-gradient(180deg,rgba(10,29,40,.82),rgba(3,14,23,.86));
  box-shadow: inset 0 1px 7px #57c2ea14, inset 0 -3px 6px #00000066;
}
#profile-v2-root .ponder-mode-rail .profile-v2-close { color: #a6bdca; letter-spacing: .14em; }
#profile-v2-root .ponder-mode-rail .profile-v2-close::before { border: 12px solid transparent; border-image: url('/assets/ui/data-hud-close.svg?v=20260929-profile-data-hud-06') 12 / 12px stretch; background-origin: border-box; }
#profile-v2-root .profile-v2-analysis-subtab { border: .65px solid #334a6666; background: #030c1480; }
#profile-v2-root .profile-v2-analysis-subtab.is-active { background: #06131a80; box-shadow: inset 0 -1px #45b8d6b3; }
#profile-v2-root .profile-v2-analysis-filter-button { border-width: .65px; border-color: #425f7466; background: #05111b; }
@media (max-height: 500px) {
  #profile-v2-root { --hud-head-height: 26px; --hud-panel-pad-y: 8px; --hud-panel-pad-x: 11px; }
  #profile-v2-root .profile-v2-shell :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head) { padding-bottom: 4px; }
  #profile-v2-root :is(.profile-v2-section-title,.profile-v2-analysis-card-title,.hd-section-title h2) { font-size: 13px; }
  #profile-v2-root .profile-v2-summary-title { font-size: 12.5px; letter-spacing: .03em; }
  #profile-v2-root .profile-v2-history { grid-template-rows: var(--hud-head-height) minmax(0,1fr) 34px; gap: 3px; }
  #profile-v2-root .profile-v2-match-place { font-size: 14px; }
  #profile-v2-root .profile-v2-chart-latest-halo { r: 6; }
  #profile-v2-root .profile-v2-match-delta { font-size: 10px; }
  #profile-v2-root .profile-v2-player-name { font-size: 16px; }
  #profile-v2-root .profile-v2-player-copy { gap: 3px; }
  #profile-v2-root .profile-v2-ev-summary { gap: 5px; }
  #profile-v2-root .profile-v2-hand-read-layout .profile-v2-panel { padding: var(--hud-panel-pad-y) var(--hud-panel-pad-x); }
}
@container hd-detail (max-width: 600px) {
  /* Counts remain visible in the result rows; keep compact titles on one line. */
  #profile-v2-root .hd-section-title > small { display: none; }
}

/* Responsive typography: use the available panel width, including the rail,
   rather than keeping desktop-sized labels inside a narrow phone panel. */
#profile-v2-root .profile-v2-shell .profile-v2-panel { container-type: inline-size; }
#profile-v2-root .profile-v2-shell :is(.profile-v2-panel-label,.profile-v2-history-header,.profile-v2-summary-title,.profile-v2-analysis-card-title,.hd-section-head) {
  min-width: 0;
  flex-wrap: nowrap;
  gap: clamp(3px, .45vw, 7px);
}

#profile-v2-root .profile-v2-shell :is(.profile-v2-section-title,.profile-v2-analysis-card-title,.hd-section-title h2) {
  font-size: clamp(10px, 1.55vw, 19px);
  white-space: nowrap;
  letter-spacing: .025em;
}
#profile-v2-root .profile-v2-shell .profile-v2-summary-title.profile-v2-section-title {
  font-size: clamp(9px, min(1.55vw, 7cqw), 18px);
}
#profile-v2-root .profile-v2-summary-title > span { white-space: nowrap; }
#profile-v2-root .profile-v2-section-title > .profile-v2-icon {
  flex: 0 0 1em; width: 1em; height: 1em;
}
#profile-v2-root .profile-v2-shell :is(.profile-v2-summary-title button,.hd-info-trigger,.profile-v2-ev-info,.profile-v2-analysis-info) {
  --hud-info-size: clamp(12px, 1.85vw, 20px);
  flex: 0 0 var(--hud-info-size);
  width: var(--hud-info-size); height: var(--hud-info-size);
  min-width: var(--hud-info-size); min-height: var(--hud-info-size);
  padding: 0; font-size: clamp(8px, 1.1vw, 10px);
}
#profile-v2-root .profile-v2-shell .profile-v2-summary-metric { padding-inline: clamp(1px, .2vw, 4px); }
#profile-v2-root .profile-v2-shell .profile-v2-summary-metric > span {
  font-size: clamp(7px, 4.7cqw, 12px); white-space: nowrap; letter-spacing: 0;
}
#profile-v2-root .profile-v2-shell .profile-v2-summary-metric > strong { font-size: clamp(12px, 11cqw, 28px); }
#profile-v2-root .profile-v2-shell .profile-v2-ranked-record .profile-v2-summary-metric > strong { font-size: clamp(11px, 9cqw, 28px); }
#profile-v2-root .profile-v2-shell .profile-v2-ranked-record .profile-v2-summary-metric > span { font-size: clamp(6.5px, 4.1cqw, 12px); }
#profile-v2-root .profile-v2-shell .profile-v2-player-copy .profile-v2-player-name { font-size: clamp(12px, 17cqw, 22px); }
#profile-v2-root .profile-v2-shell .profile-v2-rating { font-size: clamp(20px, 30cqw, 48px); }
#profile-v2-root .profile-v2-shell .profile-v2-rank { font-size: clamp(9px, 12cqw, 15px); }
#profile-v2-root .profile-v2-shell .profile-v2-peak { font-size: clamp(7px, 9cqw, 10px); }
#profile-v2-root .profile-v2-shell .profile-v2-match-place { font-size: clamp(11px, 1.7vw, 19px); }
#profile-v2-root .profile-v2-shell .profile-v2-match-delta { font-size: clamp(8px, 1.15vw, 12px); }
#profile-v2-root .profile-v2-shell .profile-v2-ev-stat strong { font-size: clamp(11px, 9cqw, 20px); }
#profile-v2-root .profile-v2-shell .profile-v2-ev-stat span { font-size: clamp(7px, 4.5cqw, 11px); }
#profile-v2-root .profile-v2-shell .profile-v2-ev-content { gap: clamp(3px, .6vw, 12px); }
@media (max-height: 500px) {
  #profile-v2-root { --hud-panel-pad-x: clamp(6px, 1.3vw, 11px); }
}

/* Keep the compact terminal in one viewport; reserve less width for EV. */
#profile-v2-root .profile-v2-summary.is-self { grid-template-columns: minmax(0,1.12fr) minmax(0,1.38fr) minmax(0,.82fr); }
#profile-v2-root .profile-v2-ev-score { grid-column: auto; min-height: 0; }
#profile-v2-root .profile-v2-results { position: relative; display: grid; grid-template-rows: minmax(0,1fr); min-width: 0; min-height: 0; }
#profile-v2-root .profile-v2-results-direction { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; justify-content: space-between; color: #8095a7; font-size: clamp(7px,.8vw,10px); letter-spacing: .1em; line-height: 1; padding-inline: 2px; pointer-events: none; }
#profile-v2-root .profile-v2-chart-point.is-selected .profile-v2-chart-dot { fill: #06131b; stroke: #7ae3fc; stroke-width: 2; filter: none; }
@media (orientation: landscape) and (max-height: 500px) {
  #profile-v2-root .profile-v2-shell .profile-v2-profile-view { grid-template-rows: minmax(0,1.3fr) minmax(0,1fr); min-height: 0; }
  #profile-v2-root .profile-v2-summary { min-height: 0; grid-auto-rows: minmax(0,1fr); }
  #profile-v2-root .profile-v2-history { grid-template-rows: var(--hud-head-height) minmax(0,1fr) 34px; }
  #profile-v2-root .profile-v2-ev-content { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (orientation: landscape) and (max-width: 639px) {
  #profile-v2-root { --hud-head-height: 22px; --hud-panel-pad-y: 5px; --hud-panel-pad-x: 5px; }
  #profile-v2-root .profile-v2-summary.is-self { gap: 4px; }
  #profile-v2-root .profile-v2-shell .profile-v2-summary-title.profile-v2-section-title { font-size: clamp(8px,1.5vw,9px); gap: 2px; }
  #profile-v2-root .profile-v2-summary-title > .profile-v2-icon { display: none; }
  #profile-v2-root .profile-v2-shell .profile-v2-ev-stat strong { font-size: 10px; }
  #profile-v2-root .profile-v2-ev-summary { gap: 3px; }
  #profile-v2-root .profile-v2-shell .profile-v2-player-copy { gap: 2px; }
}

/* Scale the sliced frame with its own panel; 24px is the desktop maximum.
   The surface cut uses the same geometry so it cannot protrude past the frame. */
#profile-v2-root .profile-v2-shell .profile-v2-panel::after {
  border-width: clamp(8px, 6cqw, 24px);
  border-image-width: clamp(8px, 6cqw, 24px);
}
#profile-v2-root .profile-v2-shell .profile-v2-panel::before {
  --panel-cut: clamp(5px, 3.75cqw, 15px);
  clip-path: polygon(var(--panel-cut) 0, calc(100% - var(--panel-cut)) 0, 100% var(--panel-cut), 100% calc(100% - var(--panel-cut)), calc(100% - var(--panel-cut)) 100%, var(--panel-cut) 100%, 0 calc(100% - var(--panel-cut)), 0 var(--panel-cut));
}
#profile-v2-root .profile-v2-shell::before {
  border-width: clamp(10px, 1.875vw, 24px);
  border-image-width: clamp(10px, 1.875vw, 24px);
}
/* Keep panel/header geometry (and its absolute separator) unchanged.
   Only inset the header's contents away from the frame. */
#profile-v2-root .profile-v2-shell .profile-v2-summary-title {
  padding-top: 2px;
  padding-inline: max(1px, calc(8px - var(--hud-panel-pad-x)));
}
/* Expand only the plot; header and its separator retain their original inset. */
#profile-v2-root .profile-v2-shell .profile-v2-history .profile-v2-chart {
  margin-inline: calc(4px - var(--hud-panel-pad-x));
}

/* Fluid rail: width, labels, icons and spacing share the viewport scale. */
#profile-v2-root {
  --mode-rail-width: clamp(88px, 15vw, 174px);
  --rail-switch-height: clamp(36px, min(7vw, 13vh), 64px);
  --rail-fluid-icon: clamp(13px, 2.05vw, 20px);
}
#profile-v2-root .ponder-mode-rail { padding: clamp(3px,.6vw,7px) clamp(3px,.6vw,7px) 0; gap: clamp(5px,.9vw,10px); }
#profile-v2-root .profile-v2-tabs { gap: clamp(5px,.9vw,10px); }
#profile-v2-root .ponder-mode-rail .profile-v2-tab {
  padding: 0 clamp(3px,.6vw,8px) 0 clamp(22px,3.4vw,36px);
  font-size: clamp(9px,1.3vw,17px); white-space: nowrap; letter-spacing: .02em;
}
#profile-v2-root .ponder-mode-rail .profile-v2-tab > .profile-v2-icon,
#profile-v2-root .ponder-mode-rail [data-profile-v2-tab="vs-record"]::after {
  left: clamp(6px,1vw,10px); top: calc(50% - var(--rail-fluid-icon) / 2);
  width: var(--rail-fluid-icon); height: var(--rail-fluid-icon);
}
#profile-v2-root .ponder-mode-rail .profile-v2-close {
  height: clamp(28px,4.5vw,40px); min-height: clamp(28px,4.5vw,40px);
  flex-basis: clamp(28px,4.5vw,40px); font-size: clamp(10px,1.4vw,14px);
}

/* Keep the terminal landscape-sized even on taller desktop viewports. */
#profile-v2-root .profile-v2-shell {
  width: var(--profile-hud-width);
  height: min(97dvh, 56.25vw, 430px);
}

/* ANALYSIS polish: a shared control band and contained auxiliary actions. */
#profile-v2-root .profile-v2-analysis-view {
  --analysis-control-height: clamp(26px,3.6vw,32px);
  --analysis-detail-size: clamp(18px,2.4vw,22px);
  --analysis-cut: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);
}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-subtabs {
  gap: clamp(5px,.8vw,10px); align-items: center;
  padding-block: 2px; border-bottom: 1px solid #233e5566;
}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-tabset {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(3px,.5vw,6px);
  height: var(--analysis-control-height); max-width: 560px;
}
#profile-v2-root .profile-v2-analysis-view :is(.profile-v2-analysis-subtab,.profile-v2-analysis-filter-button) {
  position: relative; isolation: isolate; box-sizing: border-box;
  height: var(--analysis-control-height); min-height: 0;
  padding: 0 clamp(3px,.7vw,8px); border: 0; border-radius: 0;
  background: transparent; color: #819dab; box-shadow: none;
  font-size: clamp(9px,1.25vw,13px); line-height: 1; letter-spacing: .025em;
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
}
#profile-v2-root .profile-v2-analysis-view :is(.profile-v2-analysis-subtab,.profile-v2-analysis-filter-button)::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  clip-path: var(--analysis-cut); background: #335067; pointer-events: none;
}
#profile-v2-root .profile-v2-analysis-view :is(.profile-v2-analysis-subtab,.profile-v2-analysis-filter-button)::after {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  clip-path: var(--analysis-cut); background: linear-gradient(180deg,#0b1a27,#030c14); pointer-events: none;
}
#profile-v2-root .profile-v2-analysis-view :is(.profile-v2-analysis-subtab,.profile-v2-analysis-filter-button):is(.is-active,:hover,:focus-visible) { color: var(--profile-v2-cyan-bright); }
#profile-v2-root .profile-v2-analysis-view :is(.profile-v2-analysis-subtab,.profile-v2-analysis-filter-button):is(.is-active,:hover,:focus-visible)::before {
  background: linear-gradient(115deg,#75e2ff,#295675 32%,#243c58 70%,#8570bf);
}
#profile-v2-root .profile-v2-analysis-view :is(.profile-v2-analysis-subtab,.profile-v2-analysis-filter-button).is-active::after {
  background: linear-gradient(90deg,#68ddff,#68ddff) left top / 22% 1px no-repeat,
    linear-gradient(90deg,#39c6ed,#23789d66) left bottom / 100% 2px no-repeat,
    linear-gradient(180deg,#0a2530,#041019);
}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-filter-button { font-size: clamp(8px,1.05vw,11px); }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-stat-line {
  grid-template-columns: minmax(0,1fr) var(--analysis-detail-size);
  gap: clamp(4px,.65vw,8px); padding-right: 2px;
}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-stat-list-grid { column-gap: clamp(10px,2vw,24px); }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-stat-line > .profile-v2-analysis-stat-info-button { gap: clamp(3px,.5vw,6px); }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button {
  position: relative; isolation: isolate; transform: none; padding: 0;
  width: var(--analysis-detail-size); height: var(--analysis-detail-size);
  min-width: 0; min-height: 0; border: 0; border-radius: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #8bbbce; background: transparent; box-shadow: none;
}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button::before,
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button::after {
  content: ''; position: absolute; pointer-events: none;
  clip-path: polygon(29.3% 0,70.7% 0,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0 70.7%,0 29.3%);
}
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button::before { inset: 0; z-index: -2; background: #436f82; }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button::after { inset: 1px; z-index: -1; background: #06121c; }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button span { font-size: 12px; line-height: 1; }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button:is(:hover,:focus-visible) { color: #a8ecfc; }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button:is(:hover,:focus-visible)::before { background: #6acae6; }
#profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-drilldown-button:active::after { background: #102d42; }
#profile-v2-root .profile-v2-shell .profile-v2-analysis-card-title { font-size: clamp(10px,1.35vw,15px); }
#profile-v2-root .profile-v2-analysis-card-title > small { font-size: clamp(8px,1vw,11px); white-space: nowrap; color: #859fac; }

/* Wide analysis/read cards also respect the device-scale frame limit. */
#profile-v2-root .profile-v2-shell :is(.profile-v2-analysis-view,.profile-v2-hand-read-view) .profile-v2-panel::after {
  border-width: clamp(8px,min(6cqw,1.875vw),24px);
  border-image-width: clamp(8px,min(6cqw,1.875vw),24px);
}
#profile-v2-root .profile-v2-shell :is(.profile-v2-analysis-view,.profile-v2-hand-read-view) .profile-v2-panel::before {
  --panel-cut: clamp(5px,min(3.75cqw,1.171875vw),15px);
}
#profile-v2-root .profile-v2-analysis-view :is(.profile-v2-analysis-subtab,.profile-v2-analysis-filter-button)::after {
  width: auto; height: auto; box-shadow: none;
}

/* Fit each ANALYSIS section to the terminal instead of forcing a phone min-height. */
#profile-v2-root .profile-v2-shell .profile-v2-analysis-body { min-height: 0; }
#profile-v2-root .profile-v2-shell .profile-v2-analysis-preflop-detail {
  grid-template-rows: minmax(0,1.15fr) minmax(0,1fr);
}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-stat-list-grid { min-height: 0; }
#profile-v2-root .profile-v2-shell .profile-v2-position-matrix { min-height: 0; grid-template-rows: minmax(12px,.8fr) repeat(5,minmax(0,1fr)); }
#profile-v2-root .profile-v2-shell .profile-v2-analysis-stat-list {
  display: flex; flex-direction: column;
}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-stat-list-grid {
  flex: 1; height: auto;
}
/* The desktop terminal is capped at 430px, so its content uses compact density too. */
@media (min-height: 501px) {
  #profile-v2-root .profile-v2-analysis-view { --hud-head-height: 26px; --hud-panel-pad-y: 8px; --hud-panel-pad-x: 11px; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-analysis-stat-value { line-height: 1.2; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-your-poker-insight {
    grid-template-columns: 22px minmax(0,1fr) auto 8px; gap: 3px 5px; padding: 5px;
  }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-your-poker-title { font-size: 10px; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-your-poker-metrics { min-width: 0; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-your-poker-metrics strong { font-size: 13px; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-context-shift-group { gap: 2px; padding-top: 0; grid-template-rows: auto minmax(0,1fr); }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-context-shift-segment { gap: 1px; padding: 2px 1px; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-context-shift-segment span { font-size: 8px; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-context-shift-segment strong { font-size: 12px; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-context-shift-segment small { font-size: 7px; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-range-cell { padding: 0; gap: 0; }
  #profile-v2-root .profile-v2-analysis-view .profile-v2-range-cell strong { font-size: 8px; line-height: 1; }
}
#profile-v2-root .profile-v2-analysis-view .profile-v2-range-top { min-height: 28px; }
#profile-v2-root .profile-v2-analysis-view .profile-v2-range-hand-name h3 { line-height: 1.2; }

/* Insight headline and value share a row; explanation uses the full card width. */
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-insight {
  grid-template-columns: clamp(14px,1.8vw,20px) minmax(0,1fr) auto 7px;
  grid-template-rows: auto auto; align-content: center; align-items: center;
  gap: 5px; padding: clamp(4px,.65vw,8px); max-height: none;
}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-icon {
  grid-column: 1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 1;
  font-size: clamp(9px,1vw,12px); box-shadow: none;
}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-title {
  grid-column: 2; grid-row: 1; font-size: clamp(8px,1vw,11px);
  white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; letter-spacing: 0;
}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-metrics {
  grid-column: 3; grid-row: 1; min-width: 0; padding-left: 5px; gap: 2px;
}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-metrics strong { font-size: clamp(10px,1.1vw,14px); }
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-insight > p {
  grid-column: 1 / -1; grid-row: 2; width: 100%;
  white-space: normal; overflow: visible; text-overflow: clip;
  font-size: clamp(7px,.85vw,10px); line-height: 1.4; letter-spacing: 0;
}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-insight > i { grid-column: 4; grid-row: 1; font-size: 14px; }
#profile-v2-root .profile-v2-shell .profile-v2-analysis-card-title > em {
  font-size: clamp(7px,.8vw,10px); line-height: 1.2; letter-spacing: 0; color: #8196a8;
}
/* Reserve the actual title height before placing UTG/HJ/etc. */
#profile-v2-root .profile-v2-shell .profile-v2-position-matrix {
  grid-template-rows: var(--hud-head-height) repeat(5,minmax(0,1fr));
}
#profile-v2-root .profile-v2-shell .profile-v2-position-matrix .profile-v2-analysis-card-title::before { bottom: 3px; }
/* Leave breathing room above and below the insight cards. */
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-insight {
  height: calc(100% - clamp(8px,1.2vw,16px));
  align-self: center;
}

/* MY RANGE: angular controls and a quiet tactical grid. No state/event changes. */
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(
  .profile-v2-range-top,.profile-v2-range-handedness,.profile-v2-range-positions,
  .profile-v2-range-filters,.profile-v2-range-matrix-card,.profile-v2-range-details,
  .profile-v2-range-status,.profile-v2-range-cell) { border-radius: 0; }
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-top,.profile-v2-range-filters,.profile-v2-range-matrix-card) {
  border: 1px solid #33536b80;
  background: linear-gradient(180deg,#081722e8,#030b13ed);
  box-shadow: inset 0 1px 0 #67cbe51a;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter) {
  position: relative; isolation: isolate; border-radius: 0; border: 0;
  background: none; color: #809aa8; box-shadow: none; text-shadow: none;
  display: inline-flex; align-items: center; justify-content: center;
  --range-control-cut: polygon(3px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,0 100%,0 3px);
}
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter)::before,
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter)::after {
  content: ''; position: absolute; width: auto; height: auto; transform: none;
  clip-path: var(--range-control-cut); pointer-events: none; box-shadow: none; opacity: 1;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter)::before {
  inset: 0; z-index: -2; background: #314b6080;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter)::after {
  inset: 1px; z-index: -1; background: #06121b;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter).is-active {
  color: #abedfc;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter).is-active::before {
  background: linear-gradient(115deg,#65d5ed,#29698a 55%,#668ac1);
}
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter).is-active::after {
  background: linear-gradient(180deg,#12313b,#061821); box-shadow: inset 0 -1px #46c2e399;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter):is(:hover,:focus-visible) { color: #d2fbfc; outline: 1px solid #73d8ef; outline-offset: 1px; }
#profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness,.profile-v2-range-positions,.profile-v2-range-filters)::before {
  color: #7897ae; letter-spacing: .06em;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-cell {
  border: 1px solid #324a5d80; background-color: #040e18f5; color: #a1bac6;
  box-shadow: none; text-shadow: none;
}
/* Preserve the existing data-driven heat overlay and its action-dependent hue. */
#profile-v2-root .profile-v2-shell .profile-v2-range-cell.is-selected {
  color: #e0fcff; border-color: #71d5ed; background-color: #0a2530;
  box-shadow: inset 0 0 0 1px #58bad533;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-cell:is(:hover,:focus-visible) { border-color: #80cadf; color: #d9f7fa; }
#profile-v2-root .profile-v2-shell .profile-v2-range-matrix-axis { color: #6e8499; }

/* Keep ACTION's existing hue on both the selected control and cell. */
#profile-v2-root .profile-v2-shell .profile-v2-range-view .profile-v2-range-filter.is-active { color: rgb(var(--range-filter-rgb)); }
#profile-v2-root .profile-v2-shell .profile-v2-range-view .profile-v2-range-filter.is-active::before { background: rgba(var(--range-filter-rgb),.85); }
#profile-v2-root .profile-v2-shell .profile-v2-range-view .profile-v2-range-filter.is-active::after {
  background: linear-gradient(rgba(var(--range-filter-rgb),.12),rgba(var(--range-filter-rgb),.04)),#06121b;
  box-shadow: inset 0 -1px rgba(var(--range-filter-rgb),.6);
}
#profile-v2-root .profile-v2-shell .profile-v2-range-cell.is-selected {
  border-color: rgba(var(--range-filter-rgb),.9);
  background-color: #07151f;
  box-shadow: inset 0 0 0 1px rgba(var(--range-filter-rgb),.3);
}
/* Mobile detail remains the same dismissible/scrollable sheet, with HUD surfaces. */
@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details:not(.is-placeholder) {
    border-radius: 0; border: 1px solid #567a8f;
    clip-path: polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px);
    background: linear-gradient(180deg,#0a1925fa,#030c14fc);
    box-shadow: inset 0 1px #83d6eb33;
  }
  #profile-v2-root .profile-v2-range-details :is(.profile-v2-range-key-stats > div,.profile-v2-range-substats > div,.profile-v2-range-combo,.profile-v2-range-action-row,.profile-v2-range-action-track,.profile-v2-range-action-track > span,.profile-v2-range-combo-play > div,.profile-v2-range-combo-play > div > span) {
    border-radius: 0;
  }
  #profile-v2-root .profile-v2-range-details :is(.profile-v2-range-key-stats > div,.profile-v2-range-substats > div,.profile-v2-range-combo) {
    background-color: #06131dda; border-color: #314c6270; box-shadow: none;
  }
  #profile-v2-root .profile-v2-range-detail-handle { border-radius: 0; background: #6ea1b9; }
  #profile-v2-root .profile-v2-range-detail-close {
    border-radius: 0; color: #b5e7ec; background: #091b28; border-color: #527488;
    clip-path: polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%);
  }
  #profile-v2-root .profile-v2-range-detail-close:is(:hover,:focus-visible) { color: #e5ffff; background: #163145; }
  #profile-v2-root .profile-v2-range-details :is(.profile-v2-range-action-section h4,.profile-v2-range-combo-section h4) { font-size: clamp(7px,1vw,9px); letter-spacing: .08em; color: #98bdca; }
}

/* The active analysis tab already identifies MY RANGE. Keep only its controls. */
#profile-v2-root .profile-v2-shell .profile-v2-range-top > div > strong,
#profile-v2-root .profile-v2-shell .profile-v2-range-top > div > span { display: none; }
/* Keep the matrix focused on hand labels; samples remain in hand details. */
#profile-v2-root .profile-v2-shell .profile-v2-range-cell > small { display: none; }

/* POSTFLOP: raw stats left, tendency and compact results right. */
#profile-v2-root .profile-v2-shell .profile-v2-analysis-postflop-detail { grid-template-columns: minmax(0,.44fr) minmax(0,.56fr); grid-template-rows: minmax(0,1.1fr) minmax(0,.9fr); gap: 6px; }
#profile-v2-root .profile-v2-analysis-postflop-detail > .profile-v2-analysis-stat-list { grid-column: 1; }
#profile-v2-root .profile-v2-analysis-postflop-detail > .profile-v2-analysis-stat-list:nth-child(2) { grid-row: 2; }
#profile-v2-root .profile-v2-analysis-postflop-detail > .profile-v2-postflop-profile { grid-column: 2; grid-row: 1 / -1; display: grid; grid-template-rows: var(--hud-head-height) minmax(0,1fr) auto; gap: 3px; }
#profile-v2-root .profile-v2-analysis-postflop-detail .profile-v2-analysis-stat-list:nth-child(2) .profile-v2-analysis-stat-list-grid { grid-template-rows: repeat(3,minmax(0,1fr)); }
#profile-v2-root .profile-v2-analysis-postflop-detail .profile-v2-analysis-stat-info-button { grid-template-columns: minmax(0,1fr) auto; }
#profile-v2-root .profile-v2-analysis-postflop-detail .profile-v2-analysis-stat-info-button > svg { display:none; }
#profile-v2-root .profile-v2-analysis-postflop-detail .profile-v2-analysis-stat-info-button > span { font-size: clamp(7px,1vw,11px); }
#profile-v2-root .profile-v2-analysis-postflop-detail .profile-v2-analysis-stat-line strong { font-size: clamp(9px,1.2vw,14px); }
#profile-v2-root .profile-v2-analysis-postflop-detail .profile-v2-analysis-stat-value { min-width: 0; }
#profile-v2-root .profile-v2-postflop-radar { position:relative; min-height:0; display:grid; grid-template-rows:minmax(0,1fr) 12px; justify-items:center; }
#profile-v2-root .profile-v2-postflop-radar svg { width:100%; height:100%; max-width:360px; overflow:visible; }
#profile-v2-root .profile-v2-postflop-radar text { fill:#97beca; font:9px sans-serif; dominant-baseline:middle; }
#profile-v2-root .profile-v2-postflop-radar .radar-grid { fill:none; stroke:#386c8566; stroke-width:.7; }
#profile-v2-root .profile-v2-postflop-radar .radar-shape { fill:#3cccee18; stroke:#67d4ec; stroke-width:1.2; }
#profile-v2-root .profile-v2-postflop-radar .radar-node { fill:#9ee9f7; }
#profile-v2-root .profile-v2-postflop-radar .radar-axis.is-missing { opacity:.5; }
#profile-v2-root .profile-v2-postflop-radar .radar-no-data { fill:#758fa5; font-size:10px; letter-spacing:1px; }
#profile-v2-root .profile-v2-postflop-radar .radar-confidence { position:absolute; top:3px; right:6px; color:#758fa5; font-size:clamp(6px,.65vw,8px); letter-spacing:.08em; line-height:1.3; }
#profile-v2-root .profile-v2-postflop-radar > small { color:#758fa5; font-size:7px; }
#profile-v2-root .profile-v2-position-result { border-top:1px solid #355c7766; padding-top:4px; min-width:0; }
#profile-v2-root .position-result-header { display:flex; justify-content:space-between; align-items:center; gap:3px; font-size:clamp(6px,.85vw,10px); color:#86acb9; }
#profile-v2-root .profile-v2-position-result .profile-v2-performance-pot-types { display:flex; gap:2px; padding:0; }
#profile-v2-root .profile-v2-position-result .profile-v2-performance-pot-types button { min-width:0; height:18px; padding:1px 3px; font-size:7px; border-radius:0; }
#profile-v2-root .position-result-sides { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; padding-top:4px; }
#profile-v2-root .profile-v2-position-result-side { display:grid; grid-template-columns:minmax(0,1fr) 18px; gap:2px; }
#profile-v2-root .position-result-info { grid-column:1; padding:0; border:0; background:none; color:#98c2cb; font-size:8px; text-align:left; cursor:pointer; }
#profile-v2-root .profile-v2-position-result-side > strong { grid-column:1; font-size:clamp(8px,1.05vw,13px); white-space:nowrap; }
#profile-v2-root .profile-v2-position-result-side > small { grid-column:1; font-size:7px; color:#7793a4; }
#profile-v2-root .profile-v2-position-result-side > button:last-child { grid-column:2; grid-row:1 / 4; align-self:center; }
#profile-v2-root .profile-v2-position-result-side { grid-template-columns:minmax(0,1fr) var(--analysis-detail-size); }
#profile-v2-root .profile-v2-postflop-profile .profile-v2-analysis-card-title > button { margin-left:auto; }
#profile-v2-root .profile-v2-postflop-radar > small:empty { visibility:hidden; }
#profile-v2-root .profile-v2-position-result-side > .profile-v2-performance-bar { grid-column:1; width:100%; height:9px; min-height:0; margin:2px 0 0; }
#profile-v2-root .profile-v2-position-result-side > .profile-v2-performance-bar > i { box-shadow:none; }
#profile-v2-root .profile-v2-position-result-side > .profile-v2-performance-bar { position:relative; inset:auto; grid-row:3; }
#profile-v2-root .profile-v2-postflop-radar .radar-stat-label { font-size:6.5px; fill:#758fa5; letter-spacing:0; }

#profile-v2-root .profile-v2-postflop-radar .radar-value { font-size: 8px; font-weight: 500; fill: #67d4ec; letter-spacing: 0; pointer-events: none; }

/* Mobile MY RANGE depth: retain action hue/rate overlays and every interaction. */
@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-view {
    --range-cell-surface: #07121c;


    background: rgba(2,9,16,.82);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-top,.profile-v2-range-filters) {
    background: linear-gradient(180deg,#0b1720f0,#030a10f5);
    border-color: #344a5e66;
    box-shadow: inset 0 1px #91b5cc12, inset 0 -3px 6px #0004;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness,.profile-v2-range-positions,.profile-v2-range-filters)::before {
    color: #a5bbc7; border-left: 2px solid #687fa5; padding-left: 4px;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position,.profile-v2-range-filter)::after {
    background: linear-gradient(180deg,#101f28,#050e16);
    box-shadow: inset 0 1px #9fc9d318, inset 0 -1px #0009;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-handedness-option,.profile-v2-range-position).is-active::after {
    background: #081c26; box-shadow: inset 0 1px #7cd7ea66, inset 0 -3px 6px #26b3dc14;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view .profile-v2-range-filter.is-active::after {
    background: linear-gradient(rgba(var(--range-filter-rgb),.07),rgba(var(--range-filter-rgb),.02)),#06121b;
    box-shadow: inset 0 1px rgba(var(--range-filter-rgb),.55),inset 0 -3px 6px rgba(var(--range-filter-rgb),.08);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view .profile-v2-range-matrix-card {
    background: linear-gradient(145deg,#08161ee6,#02090ff0);
    border-color: #496a7f77; box-shadow: inset 0 1px #80acc41a;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-cell {
    background: linear-gradient(180deg,#0a1923eb,#050e16f7); border-color: #3e546866 #26394c33 #1c2c3c33 #3e546855;
    box-shadow: inset 0 1px #a0c5d10a,inset 0 -1px #0005;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-cell.is-selected {
    background-color: #091923; color: #efffff; border-color: rgba(var(--range-filter-rgb),.9);
    box-shadow: inset 0 1px rgba(var(--range-filter-rgb),.45),0 0 3px rgba(var(--range-filter-rgb),.15);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-play-legend { color: #99adba; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details:not(.is-placeholder) {
    background: linear-gradient(180deg,#09131df5,#03090ff5);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-hand-header {
    background: linear-gradient(100deg,#271e3929,transparent 45%),#0b192180;
    border-bottom: 1px solid #486a7d55;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-key-stats > div { background: #030b1255; border-color: transparent; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-section { background: #02080e80; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-row { background: transparent; box-shadow: none; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-track { background: #02070c; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-row { --range-meter-rgb: 32,230,243; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-row.is-call { --range-meter-rgb: 141,120,255; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-row.is-fold { --range-meter-rgb: 223,91,119; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-row .profile-v2-range-action-track > span {
    background: rgba(var(--range-meter-rgb),.4); box-shadow: inset -1px 0 rgba(var(--range-meter-rgb),.9);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-substats { align-self: start; grid-template-rows: repeat(3,auto); gap: 0; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-substats > div {
    border: 0; border-bottom: 1px solid #364d6155; background: #09141c66; box-shadow: none;
    padding-block: 4px;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-combo-section { background: #0a162044; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-combo-status { color: #849aa8; font-size: clamp(7px,1.1vw,9px); }
}

/* Direction correction: one cell material, data alone supplies hue/rate. */
@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-view .profile-v2-range-matrix-card {
    box-shadow: inset 0 1px #83b2c233,inset 0 0 8px #0008;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-cell.is-selected {
    background: linear-gradient(180deg,#0b202b,#07131c);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details:not(.is-placeholder) {
    inset: 28px 12px 12px;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr) auto;
    border-color: #496a7f99;
    background: linear-gradient(145deg,#08161ed9,#02090fe0);
    box-shadow: inset 0 1px #83b2c233,inset 0 0 8px #0008;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details > .profile-v2-range-hand-header {
    display: grid; grid-template-columns: auto minmax(0,1fr) auto;
    justify-content: start; gap: 9px;
    background: #0a182166; border-bottom-color: #486a7d55;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name { display: grid; gap: 3px; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-key-stats { display:grid; min-width:110px; }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-section {
    grid-column:1; grid-row:2; align-self:start; padding:6px;
    background: #030c1355; border-top:1px solid #37516544;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-breakdown { gap:clamp(5px,2vh,9px); }
  #profile-v2-root .profile-v2-shell .profile-v2-range-action-row .profile-v2-range-action-track > span {
    background:linear-gradient(90deg,rgba(var(--range-meter-rgb),.28),rgba(var(--range-meter-rgb),.55));
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-combo-section {
    grid-column:2;grid-row:2; padding:6px;
    border-top:1px solid #37516544;border-left:1px solid #37516544;
    background:#07131b66;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-substats {
    grid-column:1 / -1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;
    gap:0;margin:6px 0 0;border-top:1px solid #486a7d55;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-substats > div {
    border-bottom:0; background:#08141c66;padding:6px 8px;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-substats > div + div {border-left:1px solid #37516544;}
}

/* Hand-detail meters: rounded tracks/fills inside the existing angular HUD. */
#profile-v2-root .profile-v2-shell .profile-v2-range-details {
  --range-meter-rgb: 32,230,243;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row.is-call { --range-meter-rgb: 141,120,255; }
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row.is-fold { --range-meter-rgb: 223,91,119; }
#profile-v2-root .profile-v2-shell .profile-v2-range-details :is(.profile-v2-range-action-track,.profile-v2-range-combo-play > div) {
  border-radius: 999px;
  overflow: hidden;
  background: #041019;
  border: 1px solid #425b7138;
  box-shadow: inset 0 1px 2px #0005;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row .profile-v2-range-action-track > span,
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-play > div > span {
  border-radius: 999px;
  background: linear-gradient(180deg,rgba(var(--range-meter-rgb),.75),rgba(var(--range-meter-rgb),.48));
  box-shadow: inset 0 1px rgba(255,255,255,.13);
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-play { --range-meter-rgb: var(--range-filter-rgb); column-gap: 6px; }
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-track { height: clamp(7px,2.1dvh,10px); }
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-play > div { height: clamp(5px,1.6dvh,7px); }

/* Six aligned meters; secondary values remain informational, not new actions. */
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-substats.is-meter-rows {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,auto);gap:5px;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row {
  display:grid;grid-template-columns:49px minmax(0,1fr) 42px 7px;align-items:center;gap:5px;
  padding:0;min-height:23px;border:0;background:none;box-shadow:none;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row > :is(strong,b) {font-size:11px;line-height:1;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row > b {text-align:right;}
#profile-v2-root .profile-v2-shell .profile-v2-range-detail-close {
  border:0;background:none;box-shadow:none;clip-path:none;border-radius:0;
  color:#a5c5ce;font-size:19px;width:32px;height:32px;padding:0;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-detail-close:is(:hover,:focus-visible) {background:none;color:#efffff;}
@media (max-width:920px) and (max-height:500px) and (orientation:landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details:not(.is-placeholder) {
    grid-template-rows:auto auto minmax(0,1fr);
    border:0;clip-path:polygon(1% 0,99% 0,100% 2%,100% 98%,99% 100%,1% 100%,0 98%,0 2%);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details::after {
    content:'';position:absolute;inset:0;pointer-events:none;z-index:2;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500' preserveAspectRatio='none'%3E%3Cpolygon points='10,1 990,1 999,10 999,490 990,499 10,499 1,490 1,10' fill='none' stroke='%235b8795' stroke-opacity='.75' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-substats.is-meter-rows {grid-column:1;grid-row:3;align-self:start;margin:3px 0 0;padding:5px 6px 0;gap:clamp(3px,.85dvh,5px);}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-section {grid-row:2 / 4;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-breakdown {gap:clamp(3px,.85dvh,5px);}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row {grid-template-columns:clamp(39px,7vw,49px) minmax(0,1fr) clamp(35px,5.8vw,42px) 7px;gap:clamp(3px,.65vw,5px);min-height:clamp(23px,6.8dvh,27px);}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row > :is(strong,b) {font-size:clamp(9px,2.75dvh,11px);}
}

/* One continuous six-row meter layout, with identical columns and spacing. */
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-substats.is-meter-rows {
  border:0;
}
@media (max-width:920px) and (max-height:500px) and (orientation:landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-section {padding:6px 6px 0;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-substats.is-meter-rows {
    margin:clamp(3px,.85dvh,5px) 0 0;padding:0 6px;gap:clamp(3px,.85dvh,5px);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row,
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row {
    box-sizing:border-box;display:grid;grid-template-columns:clamp(39px,7vw,49px) minmax(0,1fr) clamp(35px,5.8vw,42px) 7px;
    gap:clamp(3px,.65vw,5px);height:clamp(23px,6.8dvh,27px);min-height:0;
    padding:0;border:0;margin:0;align-items:center;background:none;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row > :is(strong,b) {
    font-size:clamp(9px,2.75dvh,11px);line-height:1;font-weight:700;letter-spacing:0;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row > strong {text-align:left;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row > b {text-align:right;}
}

/* Secondary meters reuse the existing yellow, blue and green palette. */
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row:nth-child(1) { --range-meter-rgb: 242,180,95; }
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row:nth-child(2) { --range-meter-rgb: 85,169,255; }
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-meter-rows > .profile-v2-range-action-row:nth-child(3) { --range-meter-rgb: 85,201,151; }

/* Informational meter rows use the same numeric face as action buttons. */
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row > b {
  font-family: Rajdhani, "Noto Sans JP", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight:700;letter-spacing:normal;text-align:right;
}

/* HAND INSPECT: identity first, quieter combinations and secondary facts. */
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name h3 {
  font-size:clamp(25px,3vw,36px);font-weight:700;line-height:1;text-shadow:none;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name {
  border-bottom:1px solid #69c0d144;padding-bottom:3px;justify-self:start;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-header {
  background:radial-gradient(ellipse at 8% 40%,#8d78ff12,transparent 35%),#08141c88;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-key-stats {border-right:1px solid #8d78ff55;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-breakdown > .profile-v2-range-action-row {
  background:#11212c33;box-shadow:inset 2px 0 rgba(var(--range-meter-rgb),.22);
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo {
  border:0;border-bottom:1px solid #3d54664a;background:none;box-shadow:none;border-radius:0;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-substats.is-inspect-cells {
  grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;gap:5px;border:0;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells > div {
  display:grid;grid-template-columns:1fr;gap:3px;padding:7px 6px;
  background:#08141ccc;border:1px solid #3a526544;box-shadow:inset 0 1px #8d78ff18;
  clip-path:polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells strong {font-family:Rajdhani,"Noto Sans JP",sans-serif;font-size:13px;color:#b9cdd8;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells span {color:#829aa7;}
#profile-v2-root .profile-v2-shell .profile-v2-range-detail-close {border:1px solid #4b6a8144;background:#08141c88;clip-path:polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);width:28px;height:28px;font-size:17px;}
@media (max-width:920px) and (max-height:500px) and (orientation:landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details:not(.is-placeholder) {
    grid-template-columns:minmax(0,44fr) minmax(0,56fr);
    background:linear-gradient(145deg,#08131ceb,#02090feb);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-substats.is-inspect-cells {grid-column:1;grid-row:3;margin:8px 0 0;align-self:start;padding:0 6px;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells > div {padding:6px 4px;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-detail-handle {background:linear-gradient(90deg,#68cbe2,#8d78ff);}
}

/* MY RANGE action semantics match TABLE: raise purple, call green, fold gray. */
#profile-v2-root .profile-v2-range-view {
  --range-raise-rgb: 180,82,255;
  --range-call-rgb: 85,201,151;
  --range-fold-rgb: 190,201,217;
}
#profile-v2-root .profile-v2-range-view.is-filter-raise { --range-filter-rgb: var(--range-raise-rgb); }
#profile-v2-root .profile-v2-range-view.is-filter-call { --range-filter-rgb: var(--range-call-rgb); }
#profile-v2-root .profile-v2-range-view.is-filter-fold { --range-filter-rgb: var(--range-fold-rgb); }
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row.is-raise { --range-meter-rgb: var(--range-raise-rgb); }
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row.is-call { --range-meter-rgb: var(--range-call-rgb); }
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row.is-fold { --range-meter-rgb: var(--range-fold-rgb); }

/* Keep the mobile action accent from crossing the labels. */
@media (max-width:920px) and (max-height:500px) and (orientation:landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-breakdown > .profile-v2-range-action-row {
    box-shadow:none;
  }
}

/* HAND INSPECT gauges: one cyan material, independent of action/filter hue. */
#profile-v2-root .profile-v2-shell .profile-v2-range-details :is(.profile-v2-range-action-track,.profile-v2-range-combo-play > div) {
  border-radius:2px;background:#030c13;border-color:#415e7530;
  box-shadow:inset 0 1px 2px #0007,inset 0 1px #8aabb510;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row .profile-v2-range-action-track > span,
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-play > div > span {
  border-radius:2px;background:linear-gradient(180deg,#53acc7,#287d9b);
  box-shadow:inset 0 1px #a6ecf62e,inset -1px 0 #95dfeb80;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-track {height:clamp(6px,1.8dvh,8px);}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-play > div {height:clamp(5px,1.4dvh,6px);}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-breakdown > .profile-v2-range-action-row {box-shadow:none;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row.is-filter-active:not(:disabled) {
  border-color:#4c9fba44;background:#172c3c33;color:#bceff0;box-shadow:none;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row.is-filter-active > :is(strong,b) {color:#ceeff1;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells strong {color:#91c4d3;}

/* Share the shell width with the fixed mobile hand inspector. */
#profile-v2-root { --profile-hud-width: min(100vw, calc(100dvh * 16 / 9), 932px); }
@media (max-width:920px) and (max-height:500px) and (orientation:landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details:not(.is-placeholder) {
    --inspect-side-gap:clamp(8px,1.2vw,12px);
    width:calc(var(--profile-hud-width) - 2 * var(--inspect-side-gap));max-width:100vw;
    left:calc((100vw - var(--profile-hud-width)) / 2 + var(--inspect-side-gap));right:auto;
    box-sizing:border-box;
  }
}
/* HAND INSPECT mechanical finish: material depth without extra glow or layout changes. */
#profile-v2-root .profile-v2-shell .profile-v2-range-details:not(.is-placeholder) {
  background:linear-gradient(180deg,#0a141ced,#03090fed);
  border-color:#304151;
  box-shadow:inset 0 0 0 1px #6c92a522,inset 0 0 0 3px #01070b88;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-header {
  background:linear-gradient(180deg,#1a273333,#040b1233);
  box-shadow:inset 0 1px #8ba5b018,inset 0 -1px #010609aa;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name {
  border-bottom:0;position:relative;padding-bottom:5px;
  background:linear-gradient(90deg,#26324226,transparent);
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name::after {
  content:"";position:absolute;left:0;bottom:0;width:36px;height:1px;
  background:linear-gradient(90deg,#67acc0 70%,#657aa9 83%,#786796);pointer-events:none;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name h3 {color:#b8edef;letter-spacing:.035em;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name > span {
  color:#8095a3;letter-spacing:.13em;text-transform:uppercase;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-key-stats {
  border:0;background:#02090d33;box-shadow:inset 0 1px #708e9a24,inset 0 -1px #0008;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-key-stats > div + div {border-left:1px solid #52677c33;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details :is(.profile-v2-range-action-section,.profile-v2-range-combo-section) {
  background:#02091044;box-shadow:inset 0 1px #75afc908,inset 0 8px 18px #0000001f;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details section > h4 {
  color:#91a7b2;letter-spacing:.12em;text-shadow:0 1px #0008;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-head {color:#6c8492;letter-spacing:.09em;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-breakdown > .profile-v2-range-action-row {
  background:#0d192322;box-shadow:inset 0 1px #718f9b10,inset 0 -1px #0005;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details :is(.profile-v2-range-action-track,.profile-v2-range-combo-play > div) {
  background:#02090e;border-color:#2f425455;box-shadow:inset 0 1px #718fa21c,inset 0 -1px #000b;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row .profile-v2-range-action-track > span,
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-play > div > span {
  box-shadow:inset 0 1px #a6ecf633,inset 0 -1px #14415966,inset -1px 0 #95dfeb80;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells > div {
  background:linear-gradient(180deg,#0b1720cc,#040d14cc);
  border-color:#4d637733 #36495c22 #01070b88;box-shadow:inset 0 1px #8aaab11c,inset 0 -2px #0003;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells span {letter-spacing:.1em;}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo {
  border:0;background:linear-gradient(90deg,#5b768b33,transparent) left bottom/100% 1px no-repeat;
  box-shadow:inset 0 1px #7c9ba609;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo:hover {background-color:#172a3526;}
#profile-v2-root .profile-v2-shell .profile-v2-range-detail-close {
  background:#050d14cc;border-color:#53697c44;box-shadow:inset 0 1px #9bc3cd14,inset 0 -1px #0008;color:#8ea5af;
}
#profile-v2-root .profile-v2-shell .profile-v2-range-detail-close:is(:hover,:focus-visible) {color:#b8edef;background:#11222b;border-color:#699eb177;}
@media (max-width:920px) and (max-height:500px) and (orientation:landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details:not(.is-placeholder) {
    background:linear-gradient(180deg,#0a141ced,#03090fed);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view.is-detail-open .profile-v2-range-details::after {
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='e' x2='1' y2='1'%3E%3Cstop stop-color='%237eaeb8' stop-opacity='.8'/%3E%3Cstop offset='.48' stop-color='%232b424e' stop-opacity='.4'/%3E%3Cstop offset='1' stop-color='%23799da9' stop-opacity='.7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='10,1 990,1 999,10 999,490 990,499 10,499 1,490 1,10' fill='none' stroke='%23273642' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpolygon points='12,3 988,3 997,12 997,488 988,497 12,497 3,488 3,12' fill='none' stroke='url(%23e)' stroke-width='.75' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M 18,6 H 982 L 994,18 M 6,482 L 18,494 H 982' fill='none' stroke='%2301070b' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M 978,3 H 988 L 995,10' fill='none' stroke='%23716794' stroke-opacity='.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-detail-handle {
    width:26px;height:2px;background:linear-gradient(90deg,#68acc0 76%,#697baf 80%,#786796);
  }
}

/* Keep the close control in the same header row as PLAY RATE. */
@media (max-width:920px) and (max-height:500px) and (orientation:landscape) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-details > .profile-v2-range-hand-header {
    grid-template-columns:auto minmax(0,1fr) auto 28px;
    align-items:center;padding-right:0;column-gap:clamp(6px,1vw,9px);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-detail-close {
    position:static;grid-column:4;grid-row:1;align-self:center;justify-self:end;
    margin:0;transform:none;
  }
}

/* Keep the page help control behind the mobile hand-detail overlay. */
@media (max-width:920px) and (max-height:500px) and (orientation:landscape) {
  #profile-v2-root .profile-v2-shell:has(.profile-v2-range-view.is-detail-open) .profile-v2-header {
    z-index:0;pointer-events:none;
  }
  #profile-v2-root .profile-v2-shell:has(.profile-v2-range-view.is-detail-open) > .profile-v2-analysis-view {
    z-index:1;
  }
}

/* Inline desktop inspector only; preserve the mobile detail overlay. */
@media (min-width:921px), (min-height:501px), (orientation:portrait) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-handedness {
    margin-left:0;padding:0;border:0;background:none;box-shadow:none;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-handedness-option {min-height:20px;padding-block:4px;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-matrix-card {
    position:relative;clip-path:polygon(0 0,100% 0,100% 100%,8px 100%,0 calc(100% - 8px));
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-matrix-card::after {
    content:"";position:absolute;left:0;bottom:0;width:8px;height:8px;
    background:linear-gradient(45deg,transparent calc(50% - .5px),#33536b80 50%,transparent calc(50% + .5px));pointer-events:none;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details {
    position:relative;clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details::after {
    content:"";position:absolute;right:0;bottom:0;width:8px;height:8px;
    background:linear-gradient(135deg,transparent calc(50% - .5px),#495b6d 50%,transparent calc(50% + .5px));pointer-events:none;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-section > h4 {display:none;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells > div {padding-block:2px;gap:1px;min-height:0;}

  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name {align-items:center;padding-bottom:0;border-bottom:0;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name::after {content:none;}
}

/* Desktop MY RANGE uses the same restrained frame material as the analysis panels. */
@media (min-width:921px), (min-height:501px), (orientation:portrait) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-matrix-card,.profile-v2-range-details) {
    position:relative;isolation:isolate;clip-path:none;border-color:transparent;background:none;box-shadow:none;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-matrix-card,.profile-v2-range-details)::before {
    --range-panel-cut:clamp(5px,1.171875vw,15px);
    content:"";position:absolute;inset:1px;z-index:-2;pointer-events:none;
    clip-path:polygon(var(--range-panel-cut) 0,calc(100% - var(--range-panel-cut)) 0,100% var(--range-panel-cut),100% calc(100% - var(--range-panel-cut)),calc(100% - var(--range-panel-cut)) 100%,var(--range-panel-cut) 100%,0 calc(100% - var(--range-panel-cut)),0 var(--range-panel-cut));
    background:linear-gradient(180deg,rgba(8,18,29,.69),rgba(2,8,15,.68));
    box-shadow:inset 0 1px #53bcdd0f,inset 0 -8px 24px #0000002e;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-view :is(.profile-v2-range-matrix-card,.profile-v2-range-details)::after {
    content:"";position:absolute;inset:0;width:auto;height:auto;z-index:-1;pointer-events:none;
    border:clamp(8px,1.875vw,24px) solid transparent;
    border-image:var(--hud-frame) 24 / clamp(8px,1.875vw,24px) stretch;
    background:none;opacity:.83;
  }
}

/* Detail rows stay compact independently of the viewport height. */
@media (min-width:921px) and (min-height:501px) {
  #profile-v2-root .profile-v2-shell .profile-v2-range-details:not(.is-placeholder) {padding:7px 9px;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details > .profile-v2-range-hand-header {
    padding-bottom:4px;margin-bottom:4px;
  }
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hole-cards > span {width:28px;height:36px;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-hand-name h3 {font-size:28px;line-height:1;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-breakdown {gap:2px;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-action-row {min-height:17px;height:17px;padding-block:0;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-substats {margin:4px 0;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .is-inspect-cells > div {height:40px;box-sizing:border-box;gap:0;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo-section > h4 {margin:0 0 3px;line-height:1.1;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-details .profile-v2-range-combo {min-height:20px;height:20px;box-sizing:border-box;padding:2px 5px;}
}

@media (min-width:921px) and (min-height:501px) {
  #profile-v2-root .profile-v2-shell .profile-v2-analysis-body:has(.profile-v2-range-view) {padding-block:4px;}
  #profile-v2-root .profile-v2-shell .profile-v2-range-view {gap:6px;}
}

/* Shared explanation controls and popover material across ANALYSIS / HAND READ. */
#profile-v2-root .profile-v2-shell :is(.hd-info-trigger,.profile-v2-ev-info) {
  border-radius:50%;display:inline-grid;place-items:center;
  font-family:Arial,sans-serif;font-weight:700;line-height:1;
  border:.65px solid #5b97b14d;background:#03101912;color:#92aebc;box-shadow:none;
}
#profile-v2-root .profile-v2-shell .hd-info-trigger[aria-expanded="true"] {
  color:#c2f7fa;border-color:#7ed9ef99;background:#0c2534;
}
#profile-v2-root .profile-v2-shell :is(.hd-info-popover,.profile-v2-analysis-stat-popover) {
  z-index:28;width:min(310px,calc(100% - 16px));
  max-height:min(180px,calc(100% - 12px));overflow-y:auto;
  padding:clamp(9px,1.2vw,13px);border:1px solid #48d6f557;border-radius:10px;
  background:linear-gradient(150deg,#0a1c28f7,#030c14fa);
  box-shadow:0 10px 28px #0005,inset 0 1px #73ddf709;
}
#profile-v2-root .profile-v2-shell :is(.hd-info-popover,.profile-v2-analysis-stat-popover) > strong {
  display:block;margin:0 0 5px;color:var(--profile-v2-cyan-bright);
  font-size:clamp(10px,1.15vw,13px);font-weight:900;line-height:1.2;letter-spacing:.08em;
}
#profile-v2-root .profile-v2-shell :is(.hd-info-popover,.profile-v2-analysis-stat-popover) > p {
  margin:0;color:#e1ebf1d1;font-size:clamp(9px,1vw,11px);
  font-weight:650;line-height:1.55;letter-spacing:.015em;
}
@media (max-height:500px) {
  #profile-v2-root .profile-v2-shell :is(.hd-info-popover,.profile-v2-analysis-stat-popover) {
    width:min(280px,calc(100% - 12px));padding:8px 9px;border-radius:8px;
  }
  #profile-v2-root .profile-v2-shell :is(.hd-info-popover,.profile-v2-analysis-stat-popover) > strong {font-size:9px;margin-bottom:4px;}
  #profile-v2-root .profile-v2-shell :is(.hd-info-popover,.profile-v2-analysis-stat-popover) > p {font-size:9px;line-height:1.45;}
}

/* Compact HAND READ headings without changing the other terminal views. */
#profile-v2-root .profile-v2-shell .profile-v2-hand-read-view {--hud-head-height:clamp(18px,2.4vw,24px);}
#profile-v2-root .profile-v2-shell .profile-v2-hand-read-layout .hd-section-head {
  height:var(--hud-head-height);min-height:var(--hud-head-height);flex-basis:var(--hud-head-height);
  padding-block:0 2px;margin:0;
}
#profile-v2-root .profile-v2-shell .profile-v2-hand-read-layout .profile-v2-panel {padding-top:clamp(4px,.65vw,8px);}
#profile-v2-root .profile-v2-shell .profile-v2-hand-read-layout :is(.profile-v2-hand-read-score-card,.profile-v2-hand-read-best) {row-gap:3px;}

/* Larger terminals preserve the established 932:430 silhouette. Phone layouts
   retain their existing dimensions; no scale transform changes hit targets. */
@media (min-width: 1024px) and (min-height: 501px) {
  #profile-v2-root {
    --profile-hud-width: min(92vw, calc(90dvh * 932 / 430), 1600px);
  }
  #profile-v2-root .profile-v2-shell {
    height: calc(var(--profile-hud-width) * 430 / 932);
  }
}

/* Device acceptance V2: reuse the overlay itself; only TABLE gets a dim backdrop. */
body.app-view-table #profile-v2-root:not([hidden]) { background:rgba(0,5,12,.48); }

/* Three clear information tiers inside the existing insight cards. */
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-your-poker-insight {
  grid-template-columns:calc(26 * var(--ah64-u)) minmax(0,1fr) calc(8 * var(--ah64-u));
  grid-template-rows:auto auto auto;align-content:center;
  row-gap:calc(9 * var(--ah64-u));height:100%;padding:calc(14 * var(--ah64-u));
}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-your-poker-icon {grid-row:1;grid-column:1;}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-your-poker-title {grid-row:1;grid-column:2;font-size:calc(20 * var(--ah64-u));line-height:1.25;white-space:nowrap;overflow-wrap:normal;text-wrap:nowrap;}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-your-poker-metrics {grid-row:2;grid-column:1/-1;border:0;padding:0;justify-self:start;display:flex;align-items:baseline;gap:calc(10 * var(--ah64-u));}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-your-poker-metrics strong {font-size:calc(25 * var(--ah64-u));}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-your-poker-metrics small {font-size:calc(16 * var(--ah64-u));}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-your-poker-insight > p {grid-row:3;grid-column:1/-1;font-size:calc(18 * var(--ah64-u));line-height:1.3;}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-your-poker-insight > i {grid-row:1;grid-column:3;}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-empty {grid-column:1/-1;position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:calc(9 * var(--ah64-u));}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-empty > span {color:#b5d6ed;font-size:calc(16 * var(--ah64-u));line-height:1.3;}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-empty > .profile-v2-your-poker-empty-heading {font-size:calc(20 * var(--ah64-u));}
#profile-v2-root .profile-v2-shell .profile-v2-your-poker-empty > strong {font-family:Arial,sans-serif!important;letter-spacing:.06em;font-size:calc(46 * var(--ah64-u));line-height:1;color:var(--profile-v2-cyan-bright,#26d2ff);}

/* Extend the lower edge only, using the terminal's reserved bottom inset. */
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-overview-lower {margin-bottom:calc(-18 * var(--ah64-u));}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-sng-snapshot .profile-v2-analysis-card-title {font-size:calc(26 * var(--ah64-u));}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-snapshot-row > strong {min-width:0;font-size:calc(15 * var(--ah64-u) * var(--profile-v2-snapshot-text-scale,1));line-height:1.3;white-space:nowrap;overflow-wrap:normal;text-wrap:nowrap;}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-snapshot-evidence small {font-size:calc(12 * var(--ah64-u));letter-spacing:0;}
#profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-snapshot-evidence b {font-size:calc(16 * var(--ah64-u));}

/* Compact evidence keeps its spacing while sentences fit their available width. */
@container profile-v2-shell (max-width:920px) {
  #profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-snapshot-rows {grid-template-rows:repeat(3,auto);grid-auto-rows:auto;align-content:stretch;}
  #profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-snapshot-row {padding-block:calc(2 * var(--ah64-u));}
  #profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-snapshot-row > strong {line-height:1.2;}
  #profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-snapshot-evidence small {line-height:1.15;}
  #profile-v2-root .profile-v2-shell .profile-v2-analysis-view[data-profile-v2-view="analysis"] .profile-v2-analysis-overview .profile-v2-snapshot-evidence b {line-height:1.1;}
}
