/* Piko CRM · styles of crm-dashboard.js and crm-charts.js (1.2 「可视化」). Every rule is scoped under .crm-root and
   uses the tokens of crm.css / piko.css. Contract: Documentation/CRM_DASHBOARD_SPEC_1_2.md on top of
   CRM_UI_STANDARD_2026-11-20.md §4. Widths are read from the page column (`@container col`): ≥ 960 twelve columns / 24,
   700–959 eight / 20, under 700 one column (the phone's four, gutter 12). Charts paint with variables only, so a theme
   change repaints them without a redraw. */

/* ---- tokens: --good (new, §2.3), the categorical palette (§3.1), the tile number (§4) ------------------------------
   The palette was adjusted from the spec's first draft so every pair stays ΔE2000 ≥ 12 under deuteranopia and
   protanopia simulation (Machado 2009) in both themes; checked by scratchpad crm-dash/checks.py. */
.crm-root { --good: #1a7f37; --cat-1: #111111; --cat-2: #4272b3; --cat-3: #b67e20; --cat-4: #297a71; --cat-5: #673b68; --cat-6: #919196; --t-kpi: 22px;
  --chart-text: max(11px, var(--t-cap)); --chart-light: color-mix(in srgb, var(--ink) 38%, transparent);
  --chart-hatch: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 70%, transparent) 0 1.5px, transparent 1.5px 5px); --flip: cubic-bezier(.16, 1, .3, 1); }
.crm-root:not([data-form="desk"]) { --t-kpi: 24px; }
@media (prefers-color-scheme: dark) { .crm-root:not([data-theme="light"]) { --good: #30d158; --cat-1: #f4f4f4; --cat-2: #89addc; --cat-3: #d7a446; --cat-4: #74c8be; --cat-5: #ac65af; --cat-6: #8c8c91; } }
.crm-root[data-theme="dark"] { --good: #30d158; --cat-1: #f4f4f4; --cat-2: #89addc; --cat-3: #d7a446; --cat-4: #74c8be; --cat-5: #ac65af; --cat-6: #8c8c91; }
.crm-root .crm-dash [hidden], .crm-root .crm-chart-tip[hidden], .crm-root .crm-cross-tip[hidden] { display: none !important; }

/* ---- page ------------------------------------------------------------------------------------------ */
.crm-root .crm-dash { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.crm-root .crm-dash-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px 12px; min-height: var(--ctl-s); }
.crm-root .crm-dash-tools-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.crm-root .crm-dash-member { max-width: 200px; width: auto; }
.crm-root .crm-dash-refresh, .crm-root .crm-dash-pagemenu { color: var(--secondary); }
.crm-root[data-form="desk"] .crm-dash-refresh, .crm-root[data-form="desk"] .crm-dash-pagemenu { width: 32px; height: 32px; border-radius: 8px; }
.crm-root .crm-dash-spin .crm-icon { animation: crm-dash-spin .9s linear infinite; }
@keyframes crm-dash-spin { to { transform: rotate(360deg); } }
.crm-root .crm-dash-stale { display: inline-flex; align-items: center; gap: 4px; min-height: var(--ctl-s); padding: 0 8px; border-radius: 8px; color: var(--danger); font-size: var(--t-sub); white-space: nowrap; }
.crm-root .crm-dash-stale .crm-icon { width: 14px; height: 14px; }
.crm-root .crm-dash-live, .crm-root .crm-chart-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crm-root .crm-dash-content { display: flex; flex-direction: column; gap: var(--gap-zone); min-width: 0; transition: opacity var(--hover); }
.crm-root .crm-dash[data-busy] .crm-dash-content { opacity: .55; transition: opacity .2s ease-out .35s; }
@container col (max-width: 699px) {
  .crm-root .crm-dash-tools { grid-template-columns: minmax(0, 1fr); }
  .crm-root .crm-dash-tools-start { display: none; }
  .crm-root .crm-dash-period { display: flex; }
  .crm-root[data-form] .crm-dash .crm-dash-period button { flex: 1; padding: 0 4px; }
  .crm-root .crm-dash-tools-end { justify-content: flex-start; }
  .crm-root .crm-dash-tools-end:not(:has(> :not([hidden]))) { display: none; }
}

/* ---- grid of blocks (§4) ----------------------------------------------------------------------------- */
.crm-root .crm-dash-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.crm-root .crm-dash-grid > [data-span="full"] { grid-column: span 12; }
.crm-root .crm-dash-grid > [data-span="half"] { grid-column: span 6; }
@container col (max-width: 959px) {
  .crm-root .crm-dash-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px; }
  .crm-root .crm-dash-grid > [data-span="full"] { grid-column: span 8; }
  .crm-root .crm-dash-grid > [data-span="half"] { grid-column: span 4; }
}
@container col (max-width: 699px) {
  .crm-root .crm-dash-grid { grid-template-columns: minmax(0, 1fr); gap: 20px 12px; }
  .crm-root .crm-dash-grid > [data-span] { grid-column: auto; }
}
.crm-root .crm-dash-block { position: relative; min-width: 0; border-radius: 20px; container: block / inline-size; }
.crm-root .crm-dash-card { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 18px 20px; }
.crm-root[data-form="phone"] .crm-dash-card { padding: 16px; }
.crm-root .crm-dash-card-list { padding: 6px; }
.crm-root .crm-dash-plain { min-width: 0; }

/* block head: ⋮⋮ · title · note · own controls · 查看全部 · ⋯ — the row a press-and-hold picks up (§5.4) */
.crm-root .crm-dash-head { position: relative; min-height: 28px; gap: 8px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.crm-root .crm-dash-head .crm-section-title { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-dash-note { flex: 1 1 auto; min-width: 0; font-size: var(--chart-text); color: var(--secondary); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-dash-note[hidden] { display: block !important; visibility: hidden; }
.crm-root .crm-dash-end { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.crm-root .crm-dash-handle { display: grid; place-items: center; flex: none; width: 20px; height: 28px; border-radius: 6px; color: var(--secondary); cursor: grab; touch-action: none; }
.crm-root .crm-dash-handle .crm-icon { width: 18px; height: 18px; stroke-width: 2.4; }
.crm-root[data-form="desk"] .crm-dash-handle { position: absolute; left: -22px; top: 0; opacity: 0; transition: opacity var(--hover); }
.crm-root:not([data-form="desk"]) .crm-dash-handle { width: 24px; height: 44px; margin: -10px -4px -10px -6px; opacity: .4; }
.crm-root .crm-dash-more { flex: none; color: var(--secondary); }
.crm-root[data-form="desk"] .crm-dash-more { width: 28px; height: 28px; border-radius: 8px; opacity: 0; transition: opacity var(--hover), background-color var(--hover); }
.crm-root:not([data-form="desk"]) .crm-dash-more { width: 44px; height: 44px; margin: -10px -12px -10px -6px; opacity: .6; }
.crm-root .crm-dash-more .crm-icon { width: 17px; height: 17px; }
@media (hover: hover) {
  .crm-root .crm-dash-block:hover > .crm-dash-head .crm-dash-handle, .crm-root .crm-dash-block:hover > .crm-dash-head .crm-dash-more { opacity: 1; }
  .crm-root .crm-dash-more:hover { background: var(--elevated); color: var(--ink); }
}
.crm-root .crm-dash-head:focus-within .crm-dash-handle, .crm-root .crm-dash-head:focus-within .crm-dash-more, .crm-root .crm-dash-held .crm-dash-handle { opacity: 1; }
.crm-root .crm-dash-handle:focus-visible, .crm-root .crm-dash-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.crm-root .crm-dash-all { display: inline-flex; align-items: center; gap: 1px; min-height: 28px; padding: 0 4px 0 8px; border-radius: 8px; color: var(--secondary); font-size: var(--t-foot); white-space: nowrap; transition: color var(--hover), background-color var(--hover); }
.crm-root:not([data-form="desk"]) .crm-dash-all { min-height: 44px; margin: -8px 0; }
.crm-root .crm-dash-all .crm-icon { width: 14px; height: 14px; }
@media (hover: hover) { .crm-root .crm-dash-all:hover { color: var(--ink); background: var(--elevated); } }
@container block (max-width: 419px) { .crm-root .crm-dash-all-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .crm-root .crm-dash-all { padding: 0 6px; } }
.crm-root .crm-dash-trend-mode button { min-height: 24px; padding: 0 12px; font-size: var(--t-foot); }
.crm-root:not([data-form="desk"]) .crm-dash-trend-mode button { min-height: 32px; }

/* moving: pressing (progress), lifted, landing, placeholder, keyboard-held */
.crm-root .crm-dash-pressing { transform: scale(.985); transition: transform var(--press-time, .3s) linear; }
.crm-root .crm-dash-block.crm-dash-lifted { position: absolute; z-index: 20; margin: 0; pointer-events: none; transform: scale(1.02); opacity: .96; background: var(--canvas); box-shadow: var(--shadow-float);
  transition: transform .18s var(--flip), box-shadow .18s; }
.crm-root .crm-dash-block.crm-dash-landing { transform: scale(1); box-shadow: 0 0 0 transparent; transition: left .2s var(--flip), top .2s var(--flip), transform .2s var(--flip), box-shadow .2s; }
.crm-root .crm-dash-gap { min-height: 60px; border-radius: 16px; border: 1px dashed var(--line); background: color-mix(in srgb, var(--elevated) 40%, transparent); }
.crm-root .crm-dash-block.crm-dash-held { outline: 2px solid var(--ink); outline-offset: 6px; z-index: 2; }
.crm-root.crm-dash-carrying, .crm-root.crm-dash-carrying * { touch-action: none !important; user-select: none !important; -webkit-user-select: none !important; cursor: grabbing !important; }

/* ---- metric tiles (§1, §2, §4) -------------------------------------------------------------------------- */
.crm-root .crm-dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@container col (min-width: 960px) { .crm-root .crm-dash-tiles[data-group="acq"] { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@container col (min-width: 700px) and (max-width: 959px) {
  .crm-root .crm-dash-tiles[data-group="acq"] > [data-key="customers"], .crm-root .crm-dash-tiles[data-group="acq"] > [data-key="inquiries"], .crm-root .crm-dash-tiles[data-group="acq"] > [data-key="wonValue"] { grid-column: span 2; }
}
@container col (max-width: 699px) {
  .crm-root .crm-dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .crm-root .crm-dash-tiles[data-group="acq"] > [data-key="wonValue"] { grid-column: 1 / -1; }
}
@container col (max-width: 299px) { .crm-root .crm-dash-tiles[data-long="true"] { grid-template-columns: minmax(0, 1fr); } }
.crm-root .crm-dash-tile { position: relative; justify-content: space-between; gap: 6px; min-height: 112px; padding: 14px 16px; border-radius: 16px; transition: background-color var(--hover), transform .28s var(--m-release); }
.crm-root[data-form="pad"] .crm-dash-tile { min-height: 120px; }
.crm-root[data-form="phone"] .crm-dash-tile { min-height: 104px; padding: 12px 14px; }
.crm-root .crm-dash-tile-go { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
.crm-root .crm-dash-tile-go::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.crm-root .crm-dash-tile-go:focus-visible { outline: none; }
.crm-root .crm-dash-tile:has(.crm-dash-tile-go:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.crm-root .crm-dash-label { padding-right: 18px; font-size: var(--chart-text); }
.crm-root .crm-dash-tile-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; }
.crm-root .crm-dash-value { flex: none; max-width: 100%; font-size: var(--t-kpi); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.crm-root .crm-dash-tile[data-tone="danger"] .crm-dash-value { color: var(--danger); }
.crm-root .crm-dash-tile-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; min-width: 0; min-height: 18px; font-size: var(--chart-text); }
.crm-root .crm-dash-versus { color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crm-root .crm-dash-block[data-narrow="true"] .crm-dash-versus { display: none; }
.crm-root .crm-dash-sub { order: -1; flex: 1 1 100%; min-width: 0; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-dash-chevron { position: absolute; top: 12px; right: 10px; display: grid; place-items: center; width: 16px; height: 16px; color: var(--secondary); opacity: 0; transition: opacity var(--hover); pointer-events: none; }
.crm-root .crm-dash-chevron .crm-icon { width: 16px; height: 16px; }
@media (hover: hover) {
  .crm-root .crm-dash-tile:hover { background: var(--elevated); }
  .crm-root .crm-dash-tile:hover .crm-dash-chevron { opacity: 1; }
}
.crm-root .crm-dash-tile:has(.crm-dash-tile-go:active) { transform: scale(var(--press)); transition: transform .1s var(--m-smooth); }

/* the change: ▲ / ▼ at 0.7× · text; the colour says good or bad (§2.3) */
.crm-root .crm-delta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 2px; min-width: 0; padding: 0; font: inherit; font-size: var(--chart-text); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--secondary); white-space: nowrap; }
.crm-root button.crm-delta { cursor: pointer; border-radius: 6px; }
.crm-root:not([data-form="desk"]) button.crm-delta { min-height: 44px; margin: -13px 0; }
.crm-root .crm-delta[data-tone="good"] { color: var(--good); }
.crm-root .crm-delta[data-tone="bad"] { color: var(--danger); }
.crm-root .crm-delta-arrow { font-size: .7em; line-height: 1; }
.crm-root .crm-delta[data-state="all"], .crm-root .crm-delta[data-state="none"] { font-weight: 400; }
.crm-root button.crm-delta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.crm-root .crm-spark { display: block; flex: 0 1 76px; min-width: 0; max-width: 76px; height: 28px; margin-bottom: 2px; }
.crm-root .crm-spark-svg { display: block; overflow: visible; stroke: none; }
.crm-root .crm-spark-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.crm-root .crm-spark-flat { stroke: var(--tertiary); }
.crm-root .crm-spark-end { fill: var(--ink); }
@container block (max-width: 559px) { .crm-root .crm-dash-tiles[data-group="acq"] .crm-spark { display: none; } }
@container block (max-width: 339px) { .crm-root .crm-dash-tiles .crm-spark { display: none; } }

/* ---- tables ------------------------------------------------------------------------------------------ */
.crm-root .crm-dash-table-wrap { min-width: 0; overflow-x: auto; margin-inline: -8px; padding-inline: 8px; }
.crm-root .crm-dash-table { width: 100%; border-collapse: collapse; font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.crm-root .crm-dash-table th, .crm-root .crm-dash-table td { height: 44px; padding: 0 0 0 14px; text-align: right; white-space: nowrap; font-weight: 400; vertical-align: middle; }
.crm-root:not([data-form="desk"]) .crm-dash-table td, .crm-root:not([data-form="desk"]) .crm-dash-table tbody th { height: 56px; }
.crm-root .crm-dash-team td, .crm-root .crm-dash-team tbody th { height: 52px; }
.crm-root .crm-dash-table tbody tr > * { box-shadow: inset 0 var(--hair) 0 var(--line); }
.crm-root .crm-dash-table thead th { height: 28px; padding-bottom: 6px; color: var(--secondary); font-size: var(--chart-text); }
.crm-root .crm-dash-table .crm-dash-name { width: 100%; max-width: 0; min-width: 64px; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-dash-table tr > :first-child { padding-left: 0; }
.crm-root .crm-dash-table tbody th { font-weight: 500; }
.crm-root .crm-dash-table tbody th > *, .crm-root .crm-dash-rowgo > * { display: inline-block; vertical-align: middle; }
.crm-root .crm-dash-table .crm-icon { width: 16px; height: 16px; margin-right: 8px; color: var(--secondary); }
.crm-root .crm-dash-table .crm-badge { display: inline-grid; margin-right: 8px; }
.crm-root .crm-dash-rowgo, .crm-root .crm-dash-cellgo { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; padding: 0; font: inherit; color: inherit; text-align: left; overflow: hidden; border-radius: 6px; }
.crm-root .crm-dash-rowgo .crm-dash-cell-name { overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-dash-cellgo { justify-content: flex-end; min-height: 32px; padding: 0 6px; margin-right: -6px; }
@media (hover: hover) { .crm-root .crm-dash-cellgo:hover { background: var(--canvas); text-decoration: underline; text-underline-offset: 3px; } }
.crm-root .crm-dash-rowgo:focus-visible, .crm-root .crm-dash-cellgo:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.crm-root .crm-dash-table .crm-dash-go { width: 16px; padding-left: 6px; }
.crm-root .crm-dash-table td.crm-dash-go .crm-icon { margin: 0; opacity: 0; transition: opacity var(--hover); }
.crm-root .crm-dash-pick { cursor: pointer; }
.crm-root .crm-dash-pick > * { transition: background-color var(--hover); }
@media (hover: hover) {
  .crm-root .crm-dash-pick:hover > * { background: var(--elevated); }
  .crm-root .crm-dash-pick:hover > :first-child { border-radius: 10px 0 0 10px; box-shadow: -8px 0 0 var(--elevated), inset 0 var(--hair) 0 var(--line); }
  .crm-root .crm-dash-pick:hover > :last-child { border-radius: 0 10px 10px 0; }
  .crm-root .crm-dash-pick:hover td.crm-dash-go .crm-icon { opacity: 1; }
}
.crm-root .crm-dash-sort { display: inline-flex; align-items: center; gap: 1px; min-height: 24px; color: inherit; font: inherit; white-space: nowrap; border-radius: 6px; }
.crm-root:not([data-form="desk"]) .crm-dash-sort { min-height: 44px; margin: -10px 0; }
.crm-root .crm-dash-sort .crm-icon { width: 11px; height: 11px; margin: 0 -2px 0 0; color: inherit; }
.crm-root .crm-dash-table th[aria-sort="ascending"], .crm-root .crm-dash-table th[aria-sort="descending"] { color: var(--ink); }
@media (hover: hover) { .crm-root .crm-dash-sort:hover { color: var(--ink); } }
.crm-root .crm-dash-metered .crm-meter { width: 56px; height: 4px; margin: 4px 0 0 auto; }
.crm-root .crm-meter { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.crm-root .crm-meter-fill { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width var(--layout); }
.crm-root .crm-meter[data-muted="true"] .crm-meter-fill { background: var(--tertiary); }
.crm-root .crm-dash-muted, .crm-root tr.crm-dash-muted > * { color: var(--secondary); }
.crm-root .crm-dash-rank { color: var(--secondary); width: 1%; }
.crm-root .crm-dash-late { color: var(--danger); font-weight: 500; }
@container block (max-width: 599px) {
  .crm-root .crm-dash-table th, .crm-root .crm-dash-table td { padding-left: 10px; }
  .crm-root .crm-dash-table .crm-dash-wide { display: none; }
  .crm-root .crm-dash-team .crm-meter, .crm-root .crm-dash-team .crm-badge { display: none; }
}
@container block (max-width: 359px) {
  .crm-root .crm-dash-table { font-size: 13px; }
  .crm-root .crm-dash-table th, .crm-root .crm-dash-table td { padding-left: 6px; }
  .crm-root .crm-dash-metered .crm-meter { width: 40px; }
  .crm-root .crm-dash-table .crm-dash-name { min-width: 48px; }
}
.crm-root .crm-dash-list { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crm-root .crm-dash-row-value { font-size: var(--t-body); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- empty workspace · skeleton -------------------------------------------------------------------------- */
.crm-root .crm-dash-empty { display: flex; align-items: center; gap: 28px; padding: 24px 28px; }
.crm-root .crm-dash-art { flex: none; width: 200px; height: 96px; }
.crm-root .crm-dash-art-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.crm-root .crm-dash-art-dash { fill: none; stroke: var(--cat-2); stroke-width: 1.5; stroke-dasharray: 4 3; stroke-linecap: round; }
.crm-root .crm-dash-art-dot { fill: var(--ink); }
.crm-root .crm-dash-art-bar { fill: var(--ink); opacity: .38; }
.crm-root .crm-dash-art-bar[data-step="1"] { opacity: .95; }
.crm-root .crm-dash-art-ring { fill: none; stroke: var(--ink); stroke-width: 6; stroke-dasharray: 38 18.5; opacity: .6; }
.crm-root .crm-dash-art-base { stroke: var(--line); stroke-width: 1; }
.crm-root .crm-dash-empty-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--secondary); }
.crm-root .crm-dash-empty-text .crm-empty-text { max-width: none; }
.crm-root .crm-dash-points { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: var(--t-sub); }
.crm-root .crm-dash-point { display: inline-flex; align-items: center; gap: 6px; }
.crm-root .crm-dash-point .crm-icon { width: 16px; height: 16px; }
@container col (max-width: 699px) { .crm-root .crm-dash-empty { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; } .crm-root .crm-dash-points { flex-direction: column; } }
.crm-root .crm-dash[data-empty="true"] .crm-dash-handle, .crm-root .crm-dash[data-empty="true"] .crm-dash-more { display: none; }
.crm-root .crm-dash-skeleton { gap: var(--gap-zone); }
.crm-root .crm-dash-bone { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.crm-root .crm-dash-bone > .crm-bone { margin-left: 4px; }
.crm-root .crm-dash-bone-card { display: block; height: 252px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 var(--hair) var(--line); }
.crm-root .crm-dash-bone[data-tall="2"] .crm-dash-bone-card { height: 380px; }

/* ---- charts: shared ------------------------------------------------------------------------------------ */
.crm-root .crm-chart { position: relative; margin: 0; min-width: 0; }
.crm-root .crm-chart-svg { display: block; overflow: visible; touch-action: pan-y; stroke: none; }
.crm-root .crm-chart-svg text { font-family: inherit; font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; pointer-events: none; }
.crm-root .crm-chart-grid { stroke: var(--line); stroke-width: var(--hair); shape-rendering: crispEdges; }
.crm-root .crm-chart-tick { fill: var(--secondary); font-size: 11px; }
.crm-root:not([data-form="desk"]) .crm-chart-tick, .crm-root:not([data-form="desk"]) .crm-chart-value { font-size: 12px; }
.crm-root .crm-chart-value { fill: var(--ink); font-size: 11px; font-weight: 500; }
.crm-root .crm-chart-hit { fill: transparent; outline: none; }
.crm-root .crm-chart-hit[data-pick="true"] { cursor: pointer; }
.crm-root .crm-chart-hit:focus-visible { fill: color-mix(in srgb, var(--ink) 7%, transparent); outline: none; }
.crm-root .crm-chart-mark { transition: fill-opacity var(--hover); }
.crm-root .crm-chart-fill-light { fill: var(--ink); fill-opacity: .38; background: var(--chart-light); }
.crm-root .crm-chart-fill-ink { fill: var(--ink); background: var(--ink); }
.crm-root .crm-chart-fill-hatch { background: var(--chart-hatch); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 70%, transparent); }
.crm-root .crm-chart-hatch { stroke: var(--ink); stroke-opacity: .7; }
@media (hover: hover) { .crm-root .crm-chart-slot:hover .crm-chart-fill-light { fill-opacity: .55; } }
.crm-root .crm-chart-slot:focus-within .crm-chart-fill-light { fill-opacity: .55; }
.crm-root .crm-chart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 210px; color: var(--secondary); font-size: var(--t-sub); text-align: center; }
.crm-root .crm-chart-empty-icon .crm-icon { width: 32px; height: 32px; stroke-width: 1.3; }
.crm-root .crm-chart-trend .crm-chart-empty { min-height: 300px; }
.crm-root[data-form="pad"] .crm-chart-trend .crm-chart-empty { min-height: 280px; }
.crm-root[data-form="phone"] .crm-chart-trend .crm-chart-empty { min-height: 240px; }
.crm-root .crm-chart-rows .crm-chart-empty, .crm-root .crm-chart-heat .crm-chart-empty { min-height: 200px; }
.crm-root .crm-chart-columns .crm-chart-empty { min-height: 260px; }
.crm-root .crm-chart-donut .crm-chart-empty { min-height: 240px; }
.crm-root .crm-chart-data { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crm-root .crm-chart-enter .crm-chart-plot { animation: crm-chart-wipe .38s var(--m-smooth) both; }
.crm-root .crm-chart-columns.crm-chart-enter .crm-chart-plot { animation-name: crm-chart-rise; }
.crm-root .crm-chart-donut.crm-chart-enter .crm-chart-plot, .crm-root .crm-chart-heat.crm-chart-enter .crm-chart-plot { animation-name: crm-chart-fade; }
@keyframes crm-chart-wipe { from { clip-path: inset(-12px 100% -12px -12px); } to { clip-path: inset(-12px); } }
@keyframes crm-chart-rise { from { clip-path: inset(100% -12px -12px -12px); } to { clip-path: inset(-12px); } }
@keyframes crm-chart-fade { from { opacity: 0; } }

/* the palette on marks: data-cat="1…6" */
.crm-root [data-cat="1"] { --c: var(--cat-1); } .crm-root [data-cat="2"] { --c: var(--cat-2); } .crm-root [data-cat="3"] { --c: var(--cat-3); }
.crm-root [data-cat="4"] { --c: var(--cat-4); } .crm-root [data-cat="5"] { --c: var(--cat-5); } .crm-root [data-cat="6"] { --c: var(--cat-6); }

/* trend: lines, area, the crosshair (§3.3) */
.crm-root .crm-cross-stage { position: relative; }
.crm-root .crm-chart-path { fill: none; stroke: var(--c, var(--ink)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.crm-root .crm-chart-path-dashed { stroke-dasharray: 4 3; stroke-linecap: butt; }
.crm-root .crm-chart-area { fill: var(--c, var(--ink)); fill-opacity: .08; }
.crm-root .crm-chart-dot { fill: var(--c, var(--ink)); }
.crm-root .crm-chart-guide { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; stroke-dasharray: 3 3; shape-rendering: crispEdges; }
.crm-root .crm-cross-dot { fill: var(--c, var(--ink)); stroke: var(--surface); stroke-width: 2; }
.crm-root .crm-cross-band { fill: var(--ink); fill-opacity: .06; }
.crm-root .crm-chart-dash { stroke-dasharray: 3 3; shape-rendering: auto; stroke-width: 1px; stroke: color-mix(in srgb, var(--line) 85%, transparent); }
.crm-root .crm-chart-base { stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1px; }
.crm-root .crm-chart-weekend { fill: var(--ink); fill-opacity: .028; }
.crm-root .crm-chart-sep { stroke: var(--line); stroke-width: 1px; shape-rendering: crispEdges; }
.crm-root .crm-chart-zero { fill: var(--ink); fill-opacity: .18; }
.crm-root .crm-chart-vlabel { fill: var(--secondary); font-size: 10px; font-weight: 500; }
.crm-root:not([data-form="desk"]) .crm-chart-vlabel { font-size: 11px; }
.crm-root .crm-chart-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.crm-root .crm-chart-line-previous { stroke: var(--cat-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.crm-root .crm-chart-line-average { stroke: var(--secondary); stroke-width: 1.25; }
.crm-root .crm-cross-dot-previous { fill: var(--surface); stroke: var(--cat-2); stroke-width: 1.5; }
.crm-root .crm-cross-dot-average { fill: var(--surface); stroke: var(--secondary); stroke-width: 1.5; }
.crm-root .crm-chart-swatch.crm-chart-swatch-previous { width: 18px; height: 2px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--cat-2) 0 4px, transparent 4px 7px); }
.crm-root .crm-chart-swatch.crm-chart-swatch-average { width: 16px; height: 0; border-radius: 0; border-top: 1.5px solid var(--secondary); }
/* the trend card: a summary line and the controls above the plot */
.crm-root .crm-trend-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: -2px 0 6px; }
.crm-root .crm-chart-trend + .crm-chart-legend { margin-top: 8px; }
.crm-root .crm-trend-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; font-size: var(--t-sub); font-variant-numeric: tabular-nums; color: var(--secondary); }
.crm-root .crm-trend-summary b { color: var(--ink); font-weight: 500; }
.crm-root .crm-trend-dot { color: var(--tertiary); margin: 0 6px; }
.crm-root .crm-trend-summary > .crm-trend-dot { margin: 0; }
.crm-root .crm-trend-change { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.crm-root .crm-trend-change .crm-trend-dot { margin: 0 4px; }
.crm-root .crm-trend-summary .crm-delta { font-size: var(--t-sub); }
.crm-root .crm-trend-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.crm-root .crm-trend-controls .crm-segment button { min-height: 26px; padding: 0 12px; font-size: var(--t-foot); }
.crm-root:not([data-form="desk"]) .crm-trend-controls .crm-segment button { min-height: 36px; }
.crm-root .crm-trend-controls .crm-segment button:disabled { opacity: .35; cursor: default; }
@container block (max-width: 559px) { .crm-root .crm-trend-controls { order: -1; width: 100%; min-width: 0; margin-left: 0; } .crm-root .crm-trend-controls .crm-segment { flex: 1 1 0; min-width: 0; display: flex; } .crm-root .crm-trend-controls .crm-segment button { flex: 1 1 0; min-width: 0; padding: 0 4px; } }
.crm-root .crm-cross-hit { position: absolute; touch-action: pan-y; border-radius: 4px; outline: none; -webkit-tap-highlight-color: transparent; cursor: default; }
.crm-root .crm-chart-trend:not([data-empty="true"]) .crm-cross-hit { cursor: pointer; }
.crm-root .crm-cross-hit:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.crm-root .crm-cross-tip { position: absolute; left: 0; top: 0; z-index: 45; pointer-events: none; min-width: 168px; max-width: 260px; padding: 12px; border-radius: 10px; background: var(--elevated);
  box-shadow: 0 0 0 var(--hair) var(--line), 0 6px 20px rgba(0, 0, 0, .14); font-size: var(--t-sub); line-height: 1.35; opacity: 0; transition: opacity .12s ease-out; }
.crm-root .crm-cross-tip.crm-cross-on { opacity: 1; }

/* legend · tooltip */
.crm-root .crm-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.crm-root .crm-chart-key { display: inline-flex; align-items: center; gap: 6px; font-size: var(--chart-text); color: var(--secondary); line-height: 1.3; white-space: nowrap; }
.crm-root .crm-chart-swatch { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.crm-root .crm-chart-swatch-solid, .crm-root .crm-chart-swatch-dashed { width: 16px; height: 0; border-radius: 0; border-top: 2px solid var(--c, var(--ink)); }
.crm-root .crm-chart-swatch-dashed { border-top-style: dashed; }
.crm-root .crm-chart-swatch-light { background: var(--chart-light); }
.crm-root .crm-chart-swatch-ink { background: var(--ink); }
.crm-root .crm-chart-swatch-hatch { background: var(--chart-hatch); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 70%, transparent); }
.crm-root .crm-chart-swatch-step { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--surface); background: var(--c, var(--ink)); }
.crm-root .crm-chart-tip { position: absolute; z-index: 45; pointer-events: none; min-width: 140px; max-width: min(280px, calc(100% - 12px)); padding: 12px; border-radius: 10px; background: var(--elevated);
  box-shadow: 0 0 0 var(--hair) var(--line), 0 6px 20px rgba(0, 0, 0, .14); font-size: var(--t-sub); line-height: 1.35; }
.crm-root .crm-chart-tip-title { margin-bottom: 6px; font-weight: 500; overflow-wrap: anywhere; }
.crm-root .crm-chart-tip-row { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.crm-root .crm-chart-tip-label { color: var(--secondary); white-space: nowrap; }
.crm-root .crm-chart-tip-value { margin-left: auto; padding-left: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-root .crm-chart-tip-muted .crm-chart-tip-value { color: var(--secondary); font-weight: 400; }
.crm-root .crm-chart-tip-note { margin-top: 6px; padding-top: 6px; box-shadow: inset 0 var(--hair) 0 var(--line); color: var(--secondary); font-size: var(--chart-text); font-variant-numeric: tabular-nums; }
.crm-root .crm-chart-tip-note + .crm-chart-tip-note { margin-top: 2px; padding-top: 0; box-shadow: none; }

/* rows of horizontal bars: label · track · tail · › */
.crm-root .crm-chart-rows .crm-chart-plot { display: grid; grid-template-columns: minmax(48px, 30%) minmax(0, 1fr) max-content; column-gap: 12px; row-gap: 2px; }
.crm-root .crm-chart-rows .crm-chart-plot[data-pick="true"] { grid-template-columns: minmax(48px, 30%) minmax(0, 1fr) max-content 14px; column-gap: 10px; }
.crm-root .crm-hbar { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; min-height: 32px; margin: 0 -8px; padding: 0 8px; border-radius: 8px; outline-offset: -2px; transition: background-color var(--hover); }
.crm-root:not([data-form="desk"]) .crm-hbar { min-height: 40px; }
.crm-root .crm-hbar[data-gap="true"] { margin-top: 6px; }
.crm-root .crm-hbar[data-pick="true"] { cursor: pointer; }
.crm-root .crm-hbar[data-muted="true"], .crm-root .crm-hbar[data-other="true"] .crm-hbar-name { color: var(--secondary); }
@media (hover: hover) { .crm-root .crm-hbar:hover { background: var(--elevated); } .crm-root .crm-hbar[data-pick="true"]:hover .crm-hbar-go { opacity: 1; } }
.crm-root .crm-hbar:focus-visible { outline: 2px solid var(--ink); }
.crm-root .crm-hbar-label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--t-sub); }
.crm-root .crm-hbar-label .crm-icon { width: 16px; height: 16px; color: var(--secondary); }
.crm-root .crm-hbar-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-hbar-track { display: grid; align-items: center; min-width: 0; }
.crm-root .crm-hbar-track > .crm-hbar-fill { grid-area: 1 / 1; }
.crm-root .crm-hbar-fill { display: block; height: 12px; min-width: 0; border-radius: 2px; transition: width var(--layout); }
.crm-root .crm-hbar-over { height: 6px; margin-left: 0; border-radius: 1px; }
.crm-root .crm-hbar-value { font-size: var(--t-sub); font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; white-space: nowrap; }
.crm-root .crm-hbar-go { display: grid; place-items: center; color: var(--secondary); opacity: 0; transition: opacity var(--hover); }
.crm-root .crm-hbar-go .crm-icon { width: 14px; height: 14px; }
.crm-root .crm-hbar:focus-visible .crm-hbar-go { opacity: 1; }
.crm-root .crm-chart-rows[data-size="s"] .crm-chart-plot, .crm-root .crm-chart-rows[data-size="m"] .crm-chart-plot { grid-template-columns: minmax(0, 1fr) max-content; }
.crm-root .crm-chart-rows[data-size="s"] .crm-chart-plot[data-pick="true"], .crm-root .crm-chart-rows[data-size="m"] .crm-chart-plot[data-pick="true"] { grid-template-columns: minmax(0, 1fr) max-content 14px; }
.crm-root .crm-chart-rows[data-size="s"] .crm-hbar, .crm-root .crm-chart-rows[data-size="m"] .crm-hbar { row-gap: 5px; padding-block: 7px; }
.crm-root .crm-chart-rows[data-size="s"] .crm-hbar-track, .crm-root .crm-chart-rows[data-size="m"] .crm-hbar-track { grid-column: 1 / -1; grid-row: 2; }
.crm-root .crm-chart-rows[data-size="s"] .crm-hbar-fill, .crm-root .crm-chart-rows[data-size="m"] .crm-hbar-fill { height: 8px; }
.crm-root .crm-chart-rows[data-size="s"] .crm-hbar-over, .crm-root .crm-chart-rows[data-size="m"] .crm-hbar-over { height: 4px; }

/* donut: the palette, index numbers in the slices */
.crm-root .crm-chart-donut .crm-chart-plot { display: flex; align-items: center; gap: 24px; min-height: 180px; }
.crm-root .crm-chart-donut[data-size="s"] .crm-chart-plot, .crm-root .crm-chart-donut[data-size="m"] .crm-chart-plot { flex-direction: column; align-items: stretch; gap: 16px; }
.crm-root .crm-chart-donut[data-size="s"] .crm-donut-figure, .crm-root .crm-chart-donut[data-size="m"] .crm-donut-figure { align-self: center; }
.crm-root .crm-donut-figure { position: relative; flex: none; }
.crm-root .crm-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; line-height: 1.15; }
.crm-root .crm-donut-total { font-size: var(--t-title3); font-weight: 500; font-variant-numeric: tabular-nums; }
.crm-root .crm-donut-caption { font-size: var(--chart-text); color: var(--secondary); }
.crm-root .crm-donut-slice { fill: var(--c, var(--ink)); outline: none; transition: opacity var(--hover); }
.crm-root .crm-donut-slice[data-pick="true"] { cursor: pointer; }
.crm-root .crm-donut-dim .crm-donut-slice:not(.crm-donut-on) { opacity: .32; }
.crm-root .crm-donut-slice:focus-visible { stroke: var(--ink); stroke-width: 2; paint-order: stroke; }
.crm-root .crm-donut-index { fill: var(--surface); font-size: 10px; font-weight: 600; pointer-events: none; }
.crm-root .crm-donut-list { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crm-root .crm-donut-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) max-content 3.2em; align-items: center; column-gap: 8px; min-height: 30px; margin: 0 -6px; padding: 0 6px; border-radius: 8px; font-size: var(--t-sub); transition: background-color var(--hover); }
.crm-root:not([data-form="desk"]) .crm-donut-item { min-height: 40px; }
.crm-root .crm-donut-item[data-pick="true"] { cursor: pointer; }
.crm-root .crm-donut-item.crm-donut-on { background: var(--elevated); }
.crm-root .crm-donut-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-donut-item[data-other="true"] .crm-donut-name { color: var(--secondary); }
.crm-root .crm-donut-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.crm-root .crm-donut-share { text-align: right; color: var(--secondary); font-variant-numeric: tabular-nums; }

/* heat strip */
.crm-root .crm-heat-cell { fill: var(--ink); fill-opacity: .07; outline: none; }
.crm-root .crm-heat-cell[data-level="1"] { fill-opacity: .24; } .crm-root .crm-heat-cell[data-level="2"] { fill-opacity: .46; }
.crm-root .crm-heat-cell[data-level="3"] { fill-opacity: .7; } .crm-root .crm-heat-cell[data-level="4"] { fill-opacity: .95; }
.crm-root .crm-heat-cell:focus-visible, .crm-root .crm-heat-cell:hover { stroke: var(--ink); stroke-width: 1.5; }
.crm-root .crm-heat-peak { fill: var(--surface); font-size: 11px; font-weight: 600; }
.crm-root .crm-heat-scale { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; font-size: var(--chart-text); color: var(--secondary); }
.crm-root .crm-heat-step { width: 10px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.crm-root .crm-heat-step[data-level="1"] { background: color-mix(in srgb, var(--ink) 24%, transparent); } .crm-root .crm-heat-step[data-level="2"] { background: color-mix(in srgb, var(--ink) 46%, transparent); }
.crm-root .crm-heat-step[data-level="3"] { background: color-mix(in srgb, var(--ink) 70%, transparent); } .crm-root .crm-heat-step[data-level="4"] { background: color-mix(in srgb, var(--ink) 95%, transparent); }

/* ---- 外观与语言 (sidebar foot, settings) · toast with an action ------------------------------------------------- */
.crm-root .crm-side-foot { margin-top: auto; padding-top: 12px; }
.crm-root .crm-look { position: relative; width: 100%; min-height: 36px; padding: 0 8px 0 9px; gap: 9px; border-radius: 12px; color: var(--ink); font-size: var(--t-sub); }
.crm-root:not([data-form="desk"]) .crm-look { min-height: 46px; padding: 0 12px; gap: 11px; }
.crm-root .crm-look .crm-icon { width: 22px; height: 22px; color: var(--secondary); }
.crm-root .crm-look-text { flex: 1; min-width: 0; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.crm-root .crm-look-lang { flex: none; min-width: 28px; padding: 2px 7px; border-radius: 999px; background: var(--elevated); font-size: var(--t-cap); font-weight: 600; text-align: center; }
@media (hover: hover) { .crm-root .crm-look:hover { background: var(--wash); } .crm-root .crm-look:hover .crm-look-text { color: var(--ink); } }
.crm-root .crm-look-group .crm-segment { flex-wrap: nowrap; }
@container col (max-width: 479px) { .crm-root .crm-look-group .crm-line { flex-wrap: wrap; } .crm-root .crm-look-group .crm-line-end { width: 100%; } .crm-root .crm-look-group .crm-segment { width: 100%; } .crm-root .crm-look-group .crm-segment button { flex: 1; padding: 0 6px; } }
.crm-root .crm-toast-action { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; text-align: left; pointer-events: auto; }
.crm-root .crm-toast-text { min-width: 0; }
.crm-root .crm-toast-button { flex: none; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: var(--t-sub); font-weight: 600; }
.crm-root:not([data-form="desk"]) .crm-toast-button { min-height: 40px; padding: 0 16px; }

@media (prefers-reduced-motion: reduce) {
  .crm-root .crm-chart-enter .crm-chart-plot, .crm-root .crm-dash-spin .crm-icon { animation: none !important; }
  .crm-root .crm-hbar-fill, .crm-root .crm-meter-fill, .crm-root .crm-dash-tile, .crm-root .crm-dash-block { transition: none !important; }
  .crm-root .crm-dash-pressing, .crm-root .crm-dash-tile:has(.crm-dash-tile-go:active), .crm-root .crm-dash-block.crm-dash-lifted, .crm-root .crm-dash-block.crm-dash-landing { transform: none !important; }
}

/* ---- 渠道分布: treemap (1.3) ---------------------------------------------------------------------------------
   Blocks are greys ranked by size (largest darkest), so the order reads without colour; the text swaps from
   On-Ink to Ink where the grey turns light, keeping ≥ 4.5 contrast in light and dark (the roles flip with the theme). */
.crm-root .crm-chart-treemap .crm-chart-plot { position: relative; width: 100%; }
.crm-root .crm-tm-block { position: absolute; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; min-width: 0; padding: 8px 10px; overflow: hidden; border-radius: 8px;
  background: color-mix(in srgb, var(--ink) var(--tm-ink), var(--surface)); color: var(--tm-text); --tm-ink: 10%; --tm-text: var(--ink);
  transition: box-shadow var(--hover), filter var(--hover); cursor: default; }
.crm-root .crm-tm-block[data-fit="name"] { padding: 4px 6px; justify-content: center; }
.crm-root .crm-tm-block[data-rank="0"] { --tm-ink: 88%; --tm-text: var(--on-ink); }
.crm-root .crm-tm-block[data-rank="1"] { --tm-ink: 72%; --tm-text: var(--on-ink); }
.crm-root .crm-tm-block[data-rank="2"] { --tm-ink: 60%; --tm-text: var(--on-ink); }
.crm-root .crm-tm-block[data-rank="3"] { --tm-ink: 34%; }
.crm-root .crm-tm-block[data-rank="4"] { --tm-ink: 24%; }
.crm-root .crm-tm-block[data-rank="5"] { --tm-ink: 16%; }
.crm-root .crm-tm-block[data-other="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); --tm-text: var(--ink); }
.crm-root .crm-tm-block[data-pick="true"] { cursor: pointer; }
@media (hover: hover) { .crm-root .crm-tm-block[data-pick="true"]:hover { filter: contrast(1.08); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tm-text) 55%, transparent); } }
.crm-root .crm-tm-block:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 1; }
.crm-root .crm-tm-name { font-size: var(--t-foot); font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-tm-value { font-size: var(--t-sub); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-root .crm-tm-share { font-size: var(--t-cap); font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-root .crm-tm-block[data-rank="0"] .crm-tm-value { font-size: var(--t-title3); }
.crm-root .crm-chart-tip-value .crm-delta { font-size: inherit; }
.crm-root .crm-dash-map-measure button { padding: 0 10px; }
.crm-root .crm-dash-map-top { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.crm-root[data-form="phone"] .crm-dash-map-top { justify-content: stretch; }
.crm-root[data-form="phone"] .crm-dash-map-top .crm-segment { flex: 1; }
.crm-root[data-form="phone"] .crm-dash-map-top .crm-segment button { flex: 1; }
/* live refresh: the ▲ / ▼ sits right after the number it belongs to */
.crm-root .crm-dash-tile-row > .crm-live-mark { flex: none; align-self: flex-start; margin: 6px auto 0 4px; font-size: 12px; vertical-align: baseline; }
