/* CAMPO · Portafolio individual · pestaña Correlación. Tokens de _dev_proto-campo.css; sin brillos, degradados de texto ni sobretítulos.
   Escala divergente: frío (ρ<0) ← superficie neutra → cálido (ρ>0), con color-mix en oklab sobre tokens: se repinta sola con html[data-theme].
   El ocre solo marca selección y la línea de la cartera. */
@property --mp { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --mn { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.pfc { --pfc-warm: oklch(0.64 0.16 40); --pfc-cool: oklch(0.62 0.12 245); display: grid; gap: 16px; min-width: 0; interpolate-size: allow-keywords; }
:root[data-theme="light"] .pfc { --pfc-warm: oklch(0.58 0.16 38); --pfc-cool: oklch(0.55 0.13 245); }
.pfc > *, .pfc-cols > * { min-width: 0; }
.pfc .num { font-variant-numeric: tabular-nums; }
.pfc-empty { padding: 20px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--text-2); }
.pfc-empty strong { color: var(--text); font-size: 16px; font-weight: 600; }
.pfc-empty p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; max-width: 60ch; }
.pfc-chip { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); font-size: 11px; font-weight: 600; flex: none; }
.pfc .cmk { flex: none; }
.pfc-s { padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.pfc-s .panel-head { margin: 0; }
.pfc-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.pfc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pfc-barl { font-size: 14px; font-weight: 500; color: var(--text-2); }
.pfc-barn { font-size: 13px; color: var(--text-3); }
.pfc-sp, .pfc-so { min-width: 0; }

/* ---------- divulgación ---------- */
.pfc-q { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; border-radius: var(--r-sm); align-self: flex-start; justify-self: start; }
.pfc-q:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.pfc-qi { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease-out); }
.pfc-q[aria-expanded="true"] .pfc-qi { transform: rotate(180deg); }
.pfc-dx { height: 0; overflow: clip; visibility: hidden; transition: height 300ms var(--ease-expo), visibility 0s linear 300ms; }
.pfc-dx[data-open] { height: auto; visibility: visible; transition-delay: 0s; }
.pfc-dxi { padding: 4px 0 14px; border-top: 1px solid var(--line); }
.pfc-fls { list-style: none; margin: 0; padding: 8px 0 0; display: grid; gap: 6px; }
.pfc-fl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; font-size: 13px; line-height: 1.4; color: var(--text-2); opacity: 0; transform: translateY(4px); transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); }
.pfc-fl .num { color: var(--text); text-align: right; white-space: nowrap; }
.pfc-dx[data-open] .pfc-fl { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 40ms); }
.pfc-fx { grid-column: 1 / -1; }
.pfc-fx sub, .pfc-fx sup, .pfc-fl sub, .pfc-fl sup { font-size: 0.8em; line-height: 0; }
.pfc-fl.res { border-top: 1px solid var(--line); padding-top: 6px; color: var(--text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .pfc-q:hover { color: var(--text); } }

/* ---------- tarjetas de diversificación ---------- */
.pfc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pfc-card { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: var(--r-md); background: var(--s2); min-width: 0; transition: background-color 180ms var(--ease-out); }
.pfc-card.go { cursor: pointer; }
.pfc-card.go:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.pfc-cl { font-size: 13px; color: var(--text-3); line-height: 1.3; }
.pfc-cv { font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--text); display: flex; align-items: center; gap: 8px; min-width: 0; }
.pfc-cs { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.pfc-cs b { color: var(--text); font-weight: 600; }
.pfc-pm { display: inline-flex; flex: none; }
.pfc-pm .cmk + .cmk, .pfc-pm .pfc-chip + .pfc-chip { margin-left: -6px; box-shadow: 0 0 0 2px var(--s2); border-radius: 50%; }
.pfc-pn { font-size: 18px; letter-spacing: -0.01em; overflow-wrap: anywhere; line-height: 1.2; }
@media (hover: hover) and (pointer: fine) { .pfc-card.go:hover { background: var(--s3); } }

/* ---------- matriz ---------- */
.pfc-mtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pfc-hint { font-size: 13px; color: var(--text-3); }
.pfc-mxb { display: grid; gap: 16px; min-width: 0; }
.pfc-mxb > * { min-width: 0; }
.pfc-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 4px; }
.pfc-grid { --lw: 112px; display: grid; grid-template-columns: var(--lw) repeat(var(--n), minmax(var(--cmin), var(--cmax))); gap: 2px; width: 100%; }
.pfc-corner { grid-area: 1 / 1; position: sticky; left: 0; z-index: 3; background: var(--s1); }
.pfc-ch, .pfc-rh { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 500; color: var(--text-2); transition: color 160ms var(--ease-out); }
.pfc-ch { flex-direction: column; justify-content: flex-end; padding-bottom: 4px; text-align: center; gap: 3px; min-height: 52px; }
.pfc-ch span, .pfc-rh span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pfc-rh { position: sticky; left: 0; z-index: 2; background: var(--s1); padding-right: 6px; }
.pfc-ch.hot, .pfc-rh.hot { color: var(--text); }
.pfc-c { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border-radius: 6px; cursor: pointer; font-size: 12px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums;
  background: color-mix(in oklab, var(--pfc-cool) var(--mn), color-mix(in oklab, var(--pfc-warm) var(--mp), var(--s2)));
  transition: --mp 360ms var(--ease-expo), --mn 360ms var(--ease-expo), opacity 160ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.pfc-c.diag { background: var(--s3); color: var(--text-3); cursor: default; }
.pfc-c.nul { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); }
.pfc-c.sel { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.pfc-c:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; z-index: 1; }
.pfc-grid.nov .pfc-v { display: none; }
.pfc-grid.nov .pfc-c { cursor: pointer; }
.pfc-grid[style*="--n:11"] .pfc-c, .pfc-grid[style*="--n:12"] .pfc-c, .pfc-grid[style*="--n:13"] .pfc-c, .pfc-grid[style*="--n:14"] .pfc-c, .pfc-grid[style*="--n:15"] .pfc-c { font-size: 11px; }
@media (hover: hover) and (pointer: fine) {
  .pfc-grid.hv .pfc-c:not(.x) { opacity: 0.55; }
  .pfc-c.hc { box-shadow: inset 0 0 0 1.5px var(--text-2); }
  .pfc-c.hc.sel { box-shadow: inset 0 0 0 2px var(--accent-ink); }
}
.pfc-scale { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.pfc-sw { flex: 1; max-width: 260px; min-width: 0; }
.pfc-sbar { display: block; height: 8px; margin-top: 4px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in oklab, var(--pfc-cool) 55%, var(--s2)), var(--s2) 50%, color-mix(in oklab, var(--pfc-warm) 55%, var(--s2))); }
.pfc-ticks { display: flex; justify-content: space-between; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }

/* ---------- pares más relacionados ---------- */
.pfc-pt { display: grid; gap: 6px; align-content: start; }
.pfc-ptt { font-size: 14px; font-weight: 600; color: var(--text); }
.pfc-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pfc-pr { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border-radius: var(--r-sm); cursor: pointer; transition: background-color 150ms var(--ease-out); }
.pfc-pr:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.pfc-dot { width: 10px; height: 10px; border-radius: 3px; background: color-mix(in oklab, var(--pfc-cool) var(--mn), color-mix(in oklab, var(--pfc-warm) var(--mp), var(--s2))); box-shadow: inset 0 0 0 1px var(--line); }
.pfc-prn { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfc-prv { display: grid; justify-items: end; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.2; }
.pfc-prv small { font-size: 12px; font-weight: 400; color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .pfc-pr:hover { background: var(--s2); } }

/* ---------- par seleccionado ---------- */
.pfc-pair { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--s2); min-width: 0; }
.pfc-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pfc-pid { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pfc-pid > div { display: grid; min-width: 0; }
.pfc-pid strong { font-size: 15px; font-weight: 600; }
.pfc-pid .muted { font-size: 13px; line-height: 1.35; }
.pfc-px { all: unset; box-sizing: border-box; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--text-2); cursor: pointer; }
.pfc-px svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pfc-px:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .pfc-px:hover { background: var(--s3); color: var(--text); } }
.pfc-pcv { position: relative; padding-left: 38px; }
.pfc-pcv svg { display: block; width: 100%; height: 170px; overflow: visible; }
.pfc-yl { position: absolute; left: 0; width: 34px; text-align: right; font-size: 11.5px; line-height: 1; color: var(--text-3); }
.pfc-yh { top: 0; } .pfc-yv { bottom: 0; }
.pfc-zl { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.pfc-lna, .pfc-lnb { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.pfc-lna { stroke: var(--accent-ink); stroke-width: 2.2; }
.pfc-lnb { stroke: var(--text-2); stroke-width: 1.8; stroke-dasharray: 5 4; }
.pfc-px2 { display: flex; justify-content: space-between; padding-left: 38px; font-size: 12px; color: var(--text-3); }
.pfc-pg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-2); }
.pfc-pg > span { display: inline-flex; align-items: center; gap: 6px; }
.pfc-pg b { color: var(--text); font-weight: 600; }
.pfc-ga, .pfc-gb { width: 18px; height: 0; border-top: 2.2px solid var(--accent-ink); }
.pfc-gb { border-top: 2px dashed var(--text-2); }

/* ---------- tooltip ---------- */
.pfc-tip { position: absolute; left: 0; top: 0; z-index: 6; width: max-content; max-width: 240px; display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--s3); border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 12.5px; line-height: 1.35; color: var(--text-2); pointer-events: none; }
.pfc-tip[hidden] { display: none; }
.pfc-tip strong { color: var(--text); font-weight: 600; font-size: 13px; }
.pfc-tip b { font-weight: 600; color: var(--text); }
.pfc-tp { color: var(--text-3); }

/* ---------- columnas de listas ---------- */
.pfc-cols { display: grid; gap: 16px; min-width: 0; }
.pfc-lg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-3); }
.pfc-lg > span { display: inline-flex; align-items: center; gap: 6px; }
.pfc-lg i { display: inline-block; width: 14px; height: 6px; border-radius: 2px; }
.pfc-lf { background: var(--text-3); } .pfc-lm { width: 2px !important; height: 12px !important; border-radius: 0 !important; background: var(--text); }
.pfc-lw { background: var(--pfc-warm); } .pfc-lc { background: var(--pfc-cool); }
.pfc-lp { background: var(--accent-ink); } .pfc-lb { background: var(--text-3); }
.pfc-kp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pfc-kpi { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: var(--r-md); background: var(--s2); min-width: 0; }
.pfc-kpi strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pfc-kpi.good strong { color: var(--gain); }
.pfc-kl { font-size: 12.5px; color: var(--text-3); line-height: 1.25; }
.pfc-ks { font-size: 12px; color: var(--text-3); line-height: 1.25; }
.pfc-rl, .pfc-bl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pfc-rr, .pfc-br { display: grid; grid-template-columns: minmax(84px, 112px) minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 2px 4px; border-radius: var(--r-sm); }
.pfc-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pfc-idt { display: grid; min-width: 0; line-height: 1.2; }
.pfc-idt b { font-size: 14px; font-weight: 600; color: var(--text); }
.pfc-idt small { font-size: 12px; color: var(--text-3); }
.pfc-tkl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pfc-bd { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 5px; border-radius: 4px; color: var(--text); background: color-mix(in oklab, var(--pfc-warm) 35%, var(--s2)); }
.pfc-bd[hidden] { display: none; }
.pfc-trk { position: relative; container-type: inline-size; height: 10px; border-radius: 5px; background: var(--s2); }
.pfc-fill { position: absolute; inset: 0; border-radius: 5px; background: var(--text-3); transform-origin: left center; transform: scaleX(var(--w, 0)); transition: transform 360ms var(--ease-expo), background-color 200ms var(--ease-out); }
.pfc-rr.alert .pfc-fill { background: var(--pfc-warm); }
.pfc-rr.hedge .pfc-fill { background: var(--pfc-cool); }
.pfc-mk { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; left: 0; translate: calc(var(--w, 0) * 100cqw) 0; background: var(--text); border-radius: 1px; transition: translate 360ms var(--ease-expo); }
.pfc-nums { display: grid; justify-items: end; line-height: 1.2; min-width: 64px; }
.pfc-nums b { font-size: 14px; font-weight: 600; color: var(--text); }
.pfc-nums small { font-size: 12px; color: var(--text-3); }
.pfc-dv { position: relative; height: 22px; }
.pfc-ax { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.pfc-b1, .pfc-b2 { position: absolute; left: 50%; width: 50%; height: 8px; border-radius: 0 4px 4px 0; transform-origin: left center; transform: scaleX(var(--v, 0)); transition: transform 360ms var(--ease-expo); }
.pfc-b1 { top: 2px; background: var(--accent-ink); }
.pfc-b2 { top: 12px; background: var(--text-3); }
.pfc-n1 { color: var(--accent-ink) !important; }
@media (hover: hover) and (pointer: fine) { .pfc-rr:hover, .pfc-br:hover { background: var(--s2); } }

/* ---------- grupos (clustering) ----------
   Monocromo a propósito: el ocre es solo selección y la línea de la cartera, y la escala cálido/frío ya significa correlación. Un grupo
   se reconoce por su letra (A, B, C…) y por su forma (bloque con borde en la matriz, rama marcada en el dendrograma), no por un color. */
.pfc-gl { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--s3); color: var(--text); font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; }
.pfc-gl[hidden] { display: none; }
.pfc-gl.o { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.pfc-ch { position: relative; }
.pfc-ch .pfc-gl { position: absolute; bottom: 36px; left: calc(50% + 3px); width: 15px; height: 15px; font-size: 9.5px; box-shadow: 0 0 0 2px var(--s1); }
.pfc-rh .pfc-gl { width: 16px; height: 16px; font-size: 10px; }
.pfc-c::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 0 solid var(--text-2); }
.pfc-c.gt::after { border-top-width: 1.5px; } .pfc-c.gb::after { border-bottom-width: 1.5px; } .pfc-c.gl::after { border-left-width: 1.5px; } .pfc-c.gr::after { border-right-width: 1.5px; }
.pfc-gh { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 72ch; }
.pfc-gh b { color: var(--text); font-weight: 600; }
.pfc-gcols { display: grid; gap: 20px; min-width: 0; }
.pfc-gcols > * { min-width: 0; }
.pfc-gd, .pfc-gm { display: grid; gap: 10px; align-content: start; }
.pfc-dg { display: grid; grid-template-columns: minmax(92px, 124px) minmax(0, 1fr); column-gap: 10px; align-items: start; }
.pfc-dl { list-style: none; margin: 0; padding: 0; }
.pfc-dl li { height: 34px; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 500; color: var(--text); }
.pfc-dt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfc-dp { min-width: 0; }
.pfc-dp svg { display: block; width: 100%; overflow: visible; }
.pfc-dgl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pfc-bn { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.55; transition: stroke 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.pfc-bn.in { stroke: var(--text); opacity: 1; }
.pfc-cut { stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.pfc-dax { position: relative; height: 18px; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.pfc-dax span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.pfc-dcap { font-size: 12.5px; color: var(--text-3); }
.pfc-th { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 12px; }
.pfc-th label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.pfc-th output { font-size: 14px; font-weight: 600; color: var(--text); }
.pfc-th input { grid-column: 1 / -1; width: 100%; min-height: 36px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.pfc-th input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
@media (pointer: coarse) { .pfc-th input { min-height: 44px; } }
.pfc-gls { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pfc-gr { display: grid; grid-template-columns: minmax(118px, 168px) minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 6px 4px 8px; border-radius: var(--r-sm); transition: background-color 150ms var(--ease-out); }
.pfc-gr .pfc-id { gap: 8px; }
.pfc-gr .pfc-pm { display: inline-flex; margin-top: 3px; }
.pfc-gr .pfc-pm .cmk + .cmk, .pfc-gr .pfc-pm .pfc-chip + .pfc-chip { margin-left: -5px; box-shadow: 0 0 0 2px var(--s1); border-radius: 50%; }
.pfc-more { align-self: center; margin-left: 4px; font-size: 11.5px; color: var(--text-3); }
.pfc-gs { grid-column: 1 / -1; margin: 0; padding-left: 26px; display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.pfc-gs b { color: var(--text-2); font-weight: 600; }
.pfc-gt { min-width: 0; color: var(--text-2); overflow-wrap: anywhere; }
.pfc-gr.alert .pfc-fill { background: var(--pfc-warm); }
@media (hover: hover) and (pointer: fine) { .pfc-gr:hover { background: var(--s2); } }

/* ---------- anchos ---------- */
@media (min-width: 600px) {
  .pfc-s { padding: 20px; }
  .pfc-grid { --lw: 124px; }
}
@media (min-width: 900px) {
  .pfc-mxb { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); align-items: start; }
  /* Las celdas eran cuadradas con tope fijo (--cmax: 72 px con 6–9 posiciones): la cuadrícula no pasaba de ~790 px aunque su columna
     midiera ~1250, y quedaba un hueco entre la matriz y "Pares más relacionados". Ahora el ancho se reparte entre las columnas (1fr)
     y el alto de la celda crece con él (≈ 0.62 de su ancho, tope 1.45 × --cmax) para llenar la columna sin volver la matriz más alta
     que la pantalla. Con columnas angostas (≤ --cmax) siguen siendo cuadradas, como antes. --cw = ancho de una columna de datos. */
  .pfc-scroll { container-type: inline-size; }
  .pfc-grid { --cw: calc((100cqw - var(--lw) - var(--n) * 2px) / var(--n)); grid-template-columns: var(--lw) repeat(var(--n), minmax(var(--cmin), 1fr)); }
  .pfc-c { aspect-ratio: auto; height: clamp(min(var(--cw), var(--cmax)), calc(var(--cw) * 0.62), calc(var(--cmax) * 1.45)); font-size: clamp(12px, calc(var(--cw) * 0.13), 16px); }
}
@media (min-width: 1100px) {
  .pfc-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .pfc-gcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 28px; }
}
@media (max-width: 599px) {
  .pfc-grid { --lw: 84px; grid-template-columns: var(--lw) repeat(var(--n), 44px); width: max-content; min-width: 100%; }
  .pfc-kp { grid-template-columns: 1fr; }
  .pfc-rr, .pfc-br { grid-template-columns: minmax(76px, 96px) minmax(0, 1fr) auto; gap: 8px; }
  .pfc-gr { grid-template-columns: minmax(100px, 124px) minmax(0, 1fr) auto; gap: 2px 8px; }
  .pfc-gs { padding-left: 0; }
}
@media (pointer: coarse) { .pfc-c { min-width: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .pfc-c, .pfc-fill, .pfc-mk, .pfc-b1, .pfc-b2, .pfc-dx, .pfc-qi, .pfc-card, .pfc-bn, .pfc-gr { transition: none; }
  .pfc-fl { opacity: 1; transform: none; transition: none; }
}
