.vfd{--navy:#001932;--pink:#eb008c;--teal:#1cdbcb;--line:#dce4e9;color:var(--navy);font:16px/1.5 Arial,sans-serif;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;max-width:1600px;margin:20px auto}.vfd *{box-sizing:border-box}.vfd button,.vfd select,.vfd input{font:inherit;color:var(--navy)}.vfd button{cursor:pointer}.vfd button:focus-visible,.vfd select:focus-visible,.vfd input:focus-visible{outline:3px solid var(--pink);outline-offset:2px}.vfd .head{background:var(--navy);color:white;padding:22px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.vfd h1{color:inherit;font-size:27px;margin:0}.vfd h2{font-size:25px;margin:0 0 20px;line-height:1.25;color:var(--navy)}.vfd h3{color:var(--navy);margin:0 0 12px;font-size:19px}.vfd nav{display:flex;gap:20px;flex-wrap:wrap}.vfd nav button{background:none;color:white;border:0;border-bottom:3px solid transparent;padding:8px 0}.vfd nav button.active{border-color:var(--pink)}.vfd .controls{padding:20px 28px;display:flex;align-items:end;gap:18px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.vfd label{display:flex;flex-direction:column;gap:5px;font-size:13px}.vfd select,.vfd input{background:#fff;border:1px solid #c5d0d9;border-radius:10px;padding:9px 12px;min-height:42px;max-width:100%}.vfd .content{padding:28px}.vfd .banner{display:flex;gap:24px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 0 24px;margin-bottom:25px;flex-wrap:wrap}.vfd .banner h2{font-size:32px;margin:0 0 4px}.vfd .muted{color:#66758a;font-size:14px}.vfd .facts{display:flex;gap:30px;flex-wrap:wrap}.vfd .facts strong{font-size:22px;display:block}.vfd .cards{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:28px}.vfd .card{border:1px solid var(--line);border-radius:12px;min-width:0;padding:16px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.vfd .icon{width:32px;height:32px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.vfd .card .label{font-size:13px;min-height:38px;display:flex;align-items:center}.vfd .card strong{font-size:28px;line-height:1.2}.vfd small{font-size:13px;font-weight:normal;margin-left:4px}.vfd .columns{display:grid;grid-template-columns:1.8fr 1fr;gap:20px}.vfd .panel{border:1px solid var(--line);border-radius:14px;padding:22px;min-width:0}.vfd .pills{display:flex;gap:8px;margin-bottom:22px;flex-wrap:wrap}.vfd .pills button{border:0;border-radius:24px;background:#e9f0f2;padding:9px 19px}.vfd .pills button.active{background:var(--navy);color:#fff}.vfd .footrow{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.vfd .footrow>:last-child{text-align:right}.vfd .footrow strong{font-size:22px}.vfd .balance{height:7px;background:#e7ebef;display:flex;border-radius:5px;overflow:hidden;margin-top:8px}.vfd .balance span:first-child{background:var(--teal)}.vfd .balance span:last-child{background:#6b7791}.vfd .badge{background:#b8fbef;padding:2px 6px;border-radius:4px;font-size:12px}.vfd .listrow{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.vfd .listrow strong{font-size:23px;white-space:nowrap}.vfd .radar{width:100%;max-height:340px;overflow:visible;display:block}.vfd .radar text{font-size:12px;fill:var(--navy)}.vfd .empty{background:#f3f7f9;padding:22px;border-radius:10px;color:#536477}.vfd .status{padding:16px 28px;border-top:1px solid var(--line);color:#68758b;font-size:12px}.vfd .chart{width:100%;height:auto;min-height:160px;display:block}.vfd .chart text{fill:#536477;font-size:11px}.vfd .chart-note{font-size:13px;color:#66758a;margin:10px 0}.vfd .table-scroll{overflow:auto}.vfd table{width:100%;border-collapse:collapse;font-size:14px}.vfd td,.vfd th{padding:12px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}.vfd th:first-child,.vfd td:first-child{text-align:left}.vfd thead{background:#edf3f6}.vfd .compare-players{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:22px}.vfd .compare-players label{flex-direction:row;align-items:center;font-size:15px}.vfd .compare-players input{min-height:0}.vfd .metric-select{margin-bottom:18px}.vfd .summary{display:flex;gap:22px;margin:18px 0;flex-wrap:wrap}.vfd .summary strong{font-size:24px;display:block}.vfd .warn{color:#985b00;background:#fff5df;padding:12px;border-radius:8px;margin:14px 0}.vfd .history{margin-top:22px}.vfd .history button{background:none;border:0;text-decoration:underline;padding:0}.vfd .skill-wrap{max-width:540px;margin:auto}
@media(max-width:1200px){.vfd .cards{grid-template-columns:repeat(4,minmax(0,1fr))}.vfd .columns{grid-template-columns:1.4fr 1fr}}
@media(max-width:760px){.vfd .head,.vfd .controls,.vfd .content{padding:18px}.vfd nav{gap:15px}.vfd .columns{grid-template-columns:1fr}.vfd .cards{grid-template-columns:1fr;gap:7px}.vfd .card{flex-direction:row;text-align:left;padding:10px 14px;gap:14px}.vfd .card .label{min-height:0;flex:1;font-size:15px}.vfd .card strong{font-size:25px;text-align:right}.vfd .card .icon{width:28px;height:28px}.vfd .controls label{flex:1;min-width:130px}.vfd .banner h2{font-size:28px}.vfd .facts{gap:24px}.vfd .facts strong{font-size:19px}.vfd .panel{padding:18px}.vfd .footrow strong{font-size:19px}.vfd .status{padding:14px 18px}}

.vfd .syncbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 28px;background:#f3f7f9;font-size:13px}.vfd .syncbar button{border:1px solid #c5d0d9;border-radius:20px;background:#fff;padding:6px 14px}.vfd .syncbar button:disabled{opacity:.5;cursor:wait}

/* Keep the dashboard independent of narrow WordPress content columns. */
body .vfd[data-vfd]{width:min(1600px,calc(100vw - 48px));max-width:none!important;position:relative;left:50%;transform:translateX(-50%);margin:20px 0!important;text-align:left;font-family:Arial,Helvetica,sans-serif!important}
body .vfd[data-vfd] *{font-family:Arial,Helvetica,sans-serif!important;letter-spacing:normal;text-transform:none}
body .vfd[data-vfd] h1,body .vfd[data-vfd] h2,body .vfd[data-vfd] h3{font-style:normal;font-weight:700}
body .vfd[data-vfd] .head h1{color:white;font-size:27px;line-height:1.2;margin:0;padding:0}
body .vfd[data-vfd] button{box-shadow:none;text-decoration:none;min-width:0}
body .vfd[data-vfd] nav button{border-radius:0}
.vfd .connection-note{background:#f3f7f9;border-left:3px solid var(--teal);padding:12px 16px;margin:0 0 22px;font-size:14px;color:#536477}
.vfd .card strong{white-space:nowrap}
.wp-admin .vfd[data-vfd]{width:100%;max-width:1600px!important;left:auto;transform:none;margin:20px auto!important}
@media(max-width:760px){body .vfd[data-vfd]{width:calc(100vw - 24px)}.vfd .syncbar{padding:12px 18px}.vfd .card strong{font-size:23px}}

/* Compact Activity layout. Panels remain readable blocks at every width. */
.vfd .controls.activity-controls{display:grid;grid-template-columns:minmax(160px,1.2fr) minmax(130px,.8fr) minmax(150px,1fr);gap:14px;padding:14px 24px;align-items:end}
.vfd .activity-controls label{min-width:0;margin:0}
.vfd .activity-controls select{width:100%;min-width:0}
.vfd .day-activity{grid-column:1/-1}
.vfd .content{padding:20px 24px}
.vfd .banner{gap:16px;padding-bottom:16px;margin-bottom:18px}
.vfd .banner h2{font-size:28px}
.vfd .facts{gap:22px}
.vfd .facts strong{font-size:21px}
.vfd .activity-panels{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr) minmax(0,.85fr);gap:16px;align-items:start}
.vfd .activity-panels .panel{padding:18px;min-width:0}
.vfd .activity-panels h2{font-size:23px;margin-bottom:16px}
.vfd .activity-panels .cards{grid-template-columns:1fr;gap:7px;margin:0}
.vfd .activity-panels .card{flex-direction:row;text-align:left;padding:9px 11px;gap:10px;min-height:46px}
.vfd .activity-panels .card .icon{width:26px;height:26px}
.vfd .activity-panels .card .label{min-height:0;flex:1;min-width:0;font-size:14px;line-height:1.3}
.vfd .activity-panels .card strong{font-size:23px;text-align:right}
.vfd .activity-panels .card small{font-size:11px}
.vfd .performance-panel .pills{margin-bottom:12px;gap:6px}
.vfd .performance-panel .pills button{padding:8px 14px;font-size:14px;min-height:38px}
.vfd .performance-panel .footrow{grid-template-columns:minmax(70px,.85fr) minmax(0,1.15fr) minmax(0,1.15fr);gap:8px;padding:11px 0;font-size:14px}
.vfd .performance-panel .footrow strong{font-size:20px;white-space:nowrap}
.vfd .performance-panel .footrow b{font-size:13px}
.vfd .performance-panel .footrow small{font-size:11px}
.vfd .performance-panel .balance{height:5px;margin-top:5px}
.vfd .performance-panel .listrow{padding:10px 0;font-size:14px;gap:8px}
.vfd .performance-panel .listrow strong{font-size:20px}
.vfd .skills-panel .empty{padding:12px;font-size:13px;margin:10px 0 0}
.vfd .skills-panel .radar{max-height:270px}
.vfd .history{margin-top:18px}
.vfd .history-scroll{max-height:270px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:8px}
.vfd .history-table thead th{position:sticky;top:0;background:#edf3f6;z-index:1}
.vfd .history-table td,.vfd .history-table th{padding:10px 12px}
.vfd .history-table .selected-activity{background:#effbf9}
.vfd .history-scroll:focus-visible{outline:2px solid var(--pink);outline-offset:2px}
@media(max-width:1200px){.vfd .activity-panels{grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr)}.vfd .skills-panel{grid-column:1/-1}.vfd .activity-panels .panel{width:100%}.vfd .skills-panel .radar{max-height:320px}.vfd .skills-panel .empty{max-width:540px;margin:10px auto 0}.vfd .skills-panel .radar{max-width:440px;margin:auto}}
@media(max-width:900px){.vfd .activity-panels{grid-template-columns:1fr}.vfd .skills-panel{grid-column:auto}.vfd .controls.activity-controls{grid-template-columns:1fr;gap:10px}.vfd .banner{flex-direction:column;align-items:flex-start}.vfd .facts{flex-direction:column;gap:10px}.vfd .facts>div{display:flex;align-items:baseline;gap:10px}.vfd .facts strong{font-size:20px}.vfd .facts .muted{font-size:13px}}
@media(max-width:760px){.vfd .controls.activity-controls,.vfd .content{padding:16px}.vfd .activity-panels .panel{padding:15px}.vfd .activity-panels .card{min-height:46px}.vfd .history-scroll{max-height:320px}.vfd .history-table thead{display:none}.vfd .history-table,.vfd .history-table tbody{display:block;width:100%}.vfd .history-table tr{display:grid;grid-template-columns:1fr;gap:5px;padding:12px;border-bottom:1px solid var(--line)}.vfd .history-table td{display:flex;justify-content:space-between;gap:12px;padding:0;border:0;white-space:normal;text-align:right}.vfd .history-table td:before{content:attr(data-label);font-weight:600;text-align:left}.vfd .history-table td:first-child{grid-column:1/-1}}

/* 0.3.1: collapse only the empty pre-content spacer group on diary pages. */
body.vfd-diary-page .wp-site-blocks > main > .wp-block-group:first-child > .wp-block-spacer{display:none!important}
body.vfd-diary-page .wp-site-blocks > main > .wp-block-group:first-child:has(> .wp-block-spacer):not(:has(> :not(.wp-block-spacer))){display:none!important}
body.vfd-diary-page .wp-site-blocks > main{margin-block-start:12px!important;padding-block-start:0!important}
body.vfd-diary-page .wp-site-blocks > main > .entry-content{margin-block-start:0!important;padding-block-start:0!important}
body.vfd-diary-page .vfd[data-vfd]{margin-top:0!important}
.vfd .licence-note{font-size:12px;line-height:1.5;color:#66758a;margin:10px 0 0}
/* Explicit compact rows prevent theme layout rules from expanding these areas. */
.vfd .controls.activity-controls{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1fr);gap:12px;padding:12px 20px}
.vfd .activity-controls>label{width:100%;margin:0!important}
.vfd .activity-controls .day-activity{width:100%;grid-column:1/-1}
.vfd .banner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding-bottom:12px;margin-bottom:16px}
.vfd .banner>div:first-child{min-width:0;overflow-wrap:anywhere}
.vfd .banner h2{font-size:26px;line-height:1.2;margin:0 0 3px}
.vfd .banner .facts{display:flex;flex-direction:row;flex-wrap:nowrap;gap:20px}
.vfd .banner .facts>div{min-width:0}
.vfd .banner .facts strong{font-size:20px;line-height:1.3}
.vfd .banner .facts .muted{font-size:12px;line-height:1.3}
.vfd .history-scroll{max-height:260px}
@media(max-width:900px){.vfd .controls.activity-controls{grid-template-columns:minmax(0,1fr);gap:10px}.vfd .banner{grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}.vfd .banner .facts{flex-direction:column;gap:9px}.vfd .banner .facts>div{display:flex;align-items:baseline;gap:10px}.vfd .history-scroll{max-height:320px}}

/* One compact activity history selector; text remains readable on narrow screens. */
.vfd .controls.activity-controls{grid-template-columns:minmax(130px,.9fr) minmax(110px,.65fr) minmax(0,2fr)}
.vfd .controls.activity-controls select{min-width:0;max-width:100%;text-overflow:ellipsis}
.vfd .head{padding:18px 24px}
body .vfd[data-vfd] .head h1{font-size:25px}
.vfd .feel-meter{display:flex;gap:2px;align-items:center;flex-shrink:0;height:19px;max-width:100%}
.vfd .feel-block{display:block;width:9px;height:14px;background:#e7eef1;border:1px solid transparent;border-radius:2px;box-sizing:border-box;flex:0 0 9px}
.vfd .feel-block.selected{height:18px;background:var(--feel-color);border-color:#001932;outline:2px solid white;box-shadow:0 0 0 1px #d7e3e9}
.vfd .banner .facts{align-items:center}
.vfd .banner .facts>.feel-fact{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
@media(max-width:900px){.vfd .controls.activity-controls{grid-template-columns:minmax(0,1fr)}.vfd .banner .facts{align-items:flex-start}.vfd .banner .facts>.feel-fact{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}body .vfd[data-vfd] .head h1{font-size:23px}}

/* Independent, rearrangeable trend cards. */
.vfd .controls.trend-controls{display:grid;grid-template-columns:minmax(130px,1.15fr) minmax(115px,.8fr) minmax(140px,1fr) minmax(140px,1fr) minmax(145px,1fr);gap:12px;align-items:end;padding:14px 24px}
.vfd .trend-controls label{min-width:0;margin:0}
.vfd .trend-controls select,.vfd .trend-controls input{width:100%;min-width:0}
.vfd .trends-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.vfd .trends-heading h2{margin:0 0 4px}
.vfd .trends-heading p{font-size:14px;color:#66758a;margin:0}
.vfd .trends-heading button{background:white;border:1px solid #c5d0d9;border-radius:18px;padding:6px 12px;font-size:13px}
.vfd .trend-instructions{font-size:13px;color:#66758a;margin:8px 0 18px}
.vfd .trend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));align-items:start;gap:18px}
.vfd .trend-card{min-width:0;padding:17px;border:1px solid var(--line);border-radius:13px;background:white}
.vfd .trend-card-head{display:flex;align-items:start;justify-content:space-between;gap:8px;margin-bottom:10px}
.vfd .trend-card-head h3{font-size:19px;line-height:1.3;margin:0;min-width:0}
.vfd .trend-card-head h3 small{font-size:12px;white-space:nowrap}
.vfd .trend-card-tools{display:flex;gap:3px;flex-shrink:0}
.vfd .trend-card-tools button{width:28px;height:30px;min-height:0;border:1px solid #d9e3e8;background:#f5f8f9;border-radius:5px;padding:0;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center}
.vfd .trend-card-tools button:disabled{opacity:.3;cursor:default}
.vfd .trend-card-tools .drag-handle{cursor:grab;touch-action:pan-y;font-size:21px}
.vfd .trend-card.is-dragging{opacity:.45}
.vfd .trend-card.drop-target{outline:2px dashed var(--teal);outline-offset:3px}
.vfd .trend-card-summary{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:8px;flex-wrap:wrap}
.vfd .trend-card-summary strong{font-size:24px;line-height:1.2}
.vfd .trend-card-summary span{font-size:12px;color:#66758a}
.vfd .trend-scroll{width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;border-radius:6px}
.vfd .trend-chart{display:block;width:100%;height:264px;overflow:visible}
.vfd .trend-chart text{fill:#536477;font-size:12px;font-family:Arial,sans-serif}
.vfd .trend-chart .axis-value{font-size:11px}
.vfd .trend-chart .axis-date{font-size:11px}
.vfd .trend-chart .bar-value{fill:#001932;font-size:14px;font-weight:700}
.vfd .trend-chart .missing-value{font-size:11px;fill:#7b8797}
.vfd .trend-bar{fill:#29d4c3}
.vfd .trend-line{fill:none;stroke:#001932;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.vfd .trend-dot{fill:white;stroke:#001932;stroke-width:2}
.vfd .trend-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:#66758a;margin:8px 0 12px}
.vfd .trend-legend span{display:flex;align-items:center;gap:5px}
.vfd .legend-bar{display:inline-block;width:10px;height:10px;background:#29d4c3}
.vfd .legend-line{display:inline-block;width:17px;height:0;border-top:2px solid #001932}
.vfd .trend-empty{display:flex;align-items:center;justify-content:center;min-height:200px;padding:20px;background:#f6f9fa;border-radius:8px;font-size:14px;color:#66758a;text-align:center}
@media(max-width:1000px){.vfd .controls.trend-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.vfd .controls.trend-controls{grid-template-columns:minmax(0,1fr);padding:16px}.vfd .trend-grid{grid-template-columns:minmax(0,1fr)}.vfd .trend-card{padding:14px}.vfd .trend-card-head h3{font-size:18px}.vfd .trend-card-summary strong{font-size:23px}}

/* Match detail panels and source-preserving scores. */
.vfd .activity-link{display:inline-flex;align-items:center;min-height:36px;margin-top:10px;padding:7px 13px;border:1px solid #bdcbd5;border-radius:18px;color:#001932;text-decoration:none;font-size:13px;font-weight:600}
.vfd .activity-link:hover{background:#e8f7f5}
.vfd .assumed-feel{font-size:11px;line-height:1.35;color:#735324;max-width:180px}
.vfd .facts{flex-wrap:wrap;row-gap:14px}
.vfd .match-visuals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.vfd .match-panel .listrow{gap:12px;padding:12px 0}
.vfd .match-panel strong{white-space:nowrap}
.vfd .skill-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.vfd .skill-scores>div{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#f3f7f9;padding:9px;border-radius:8px;font-size:12px}
.vfd .skill-scores strong{font-size:16px}
.vfd .activity-panels.is-training{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
@media(max-width:760px){.vfd .match-visuals,.vfd .activity-panels.is-training{grid-template-columns:minmax(0,1fr)}.vfd .facts>div{min-width:0}.vfd .assumed-feel{max-width:100%}.vfd .match-panel strong{font-size:18px}}

@media(max-width:900px){.vfd .activity-panels.is-training{grid-template-columns:minmax(0,1fr)}}

.vfd .match-panel .metric-explanation{display:block;margin:4px 0 0;font-size:12px;font-weight:400;line-height:1.4;color:#66758a}

/* Grouped Trends: fixed group colours, navy connecting lines. */
.vfd .trend-group-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.vfd .trend-group-buttons button{background:#edf3f6;border:1px solid transparent;border-radius:20px;padding:9px 14px;font-size:13px;line-height:1.4;min-height:40px}
.vfd .trend-group-buttons button.active{background:#001932;color:#fff}
.vfd .trend-group{margin-top:24px}
.vfd .trend-group-title{border-left:5px solid var(--trend-color);padding-left:10px;font-size:21px}
.vfd .trend-card{border-top:3px solid var(--trend-color)}
.vfd .trend-bar,.vfd .legend-bar{fill:var(--trend-color,#31bdae);background:var(--trend-color,#31bdae)}
.vfd .trend-chart{height:284px}
.vfd .trend-chart .axis-activity{font-size:10px;fill:#66758a}
@media(max-width:760px){.vfd .trend-group-buttons{gap:6px}.vfd .trend-group-buttons button{font-size:12px;padding:8px 11px}.vfd .trend-group-title{font-size:19px}.vfd .match-trend-toggle{align-items:flex-start}}

/* Fit five periods to the available plot width. Longer histories scroll. */
.vfd .restore-chart-order{max-width:285px;text-align:right}
.vfd .restore-chart-order button{border:1px solid #c5d0d9;border-radius:18px;padding:8px 13px;background:#fff;font-size:13px;min-height:38px}
.vfd .restore-chart-order p{font-size:12px;line-height:1.4;color:#66758a;margin:6px 0 0}
.vfd .trend-scroll{min-width:0;max-width:100%;touch-action:pan-x pan-y}
.vfd .trend-chart{height:284px;max-width:none}
.vfd .trend-chart .bar-value{font-size:11px}
.vfd .trend-chart .axis-date{font-size:10px}
.vfd .trend-chart .axis-activity,.vfd .trend-chart .axis-year{font-size:9px}
.vfd .trend-chart .axis-value{font-size:10px}
.vfd .trend-chart .missing-value{font-size:9px}
@media(max-width:760px){.vfd .restore-chart-order{max-width:100%;text-align:left}.vfd .trends-heading{align-items:flex-start}}

/* Left and right values flank centred metric labels at every width. */
.vfd .foot-comparison-head,.vfd .foot-metric-values{display:grid;grid-template-columns:minmax(0,1fr) minmax(78px,1fr) minmax(0,1fr);gap:8px;align-items:center}
.vfd .foot-comparison-head{padding:4px 0 12px;border-bottom:1px solid var(--line)}
.vfd .foot-heading{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:13px}
.vfd .foot-heading.foot-left{align-items:flex-start;text-align:left}
.vfd .foot-heading.foot-right{align-items:flex-end;text-align:right}
.vfd .shoe-icon{display:block;width:64px;height:36px;flex-shrink:0}
.vfd .foot-heading .badge{font-size:11px;line-height:18px;padding:0 5px;white-space:nowrap}
.vfd .dominant-space{height:18px}
.vfd .foot-metric{padding:13px 0;border-bottom:1px solid var(--line)}
.vfd .foot-metric:last-child{border-bottom:0;padding-bottom:0}
.vfd .foot-metric-label{text-align:center;font-size:13px;line-height:1.35;overflow-wrap:normal}
.vfd .foot-value{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;min-width:0;font-size:22px;line-height:1.3}
.vfd .foot-value.foot-left{justify-content:flex-start;text-align:left}
.vfd .foot-value.foot-right{justify-content:flex-end;text-align:right}
.vfd .foot-value small{font-size:11px;margin:0;white-space:nowrap}
.vfd .foot-value.is-missing{font-size:14px}
.vfd .foot-comparison .balance{margin-top:9px;height:5px}
.vfd .turn-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:5px 0 14px}
.vfd .turn-tile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;min-width:0}
.vfd .turn-icon{display:block;width:74px;height:74px;max-width:100%}
.vfd .turn-tile strong{font-size:27px;line-height:1.2}
.vfd .turn-tile span{font-size:12px;line-height:1.35}
@media(max-width:760px){.vfd .foot-comparison-head,.vfd .foot-metric-values{gap:5px;grid-template-columns:minmax(0,1fr) minmax(74px,1fr) minmax(0,1fr)}.vfd .foot-value{font-size:19px;gap:3px}.vfd .foot-value small{font-size:10px}.vfd .shoe-icon{width:55px;height:33px}.vfd .foot-metric-label{font-size:12px}.vfd .turn-tiles{gap:6px}.vfd .turn-icon{width:64px;height:64px}.vfd .turn-tile strong{font-size:25px}.vfd .turn-tile span{font-size:11px}}

/* Separate source-percentage bars; dominance uses neutral styling. */
.vfd .foot-comparison .foot-heading .badge{background:#fff;color:#001932;border:1px solid #001932;line-height:18px}
.vfd .foot-comparison .dominant-space{height:20px}
.vfd .foot-balance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#fff;margin-top:10px;height:6px}
.vfd .foot-track{display:flex;min-width:0;height:6px;background:#f2f3f6;border-radius:3px;overflow:hidden}
.vfd .foot-left-track{justify-content:flex-end}
.vfd .foot-right-track{justify-content:flex-start}
.vfd .foot-fill{display:block;height:100%;border-radius:3px;flex-shrink:0}
.vfd .foot-left-track .foot-fill{background:#cdd1d9}
.vfd .foot-right-track .foot-fill{background:#6b7791}
@media(max-width:760px){.vfd .foot-balance{gap:10px}}

/* Current and maximum columns, independent of selected date/type. */
.vfd .maximum-scope{font-size:12px;color:#66758a;margin:0 0 14px}
.vfd .record-comparison,.vfd .activity-panels .card.record-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(58px,.55fr) minmax(66px,.58fr);gap:9px;align-items:center;text-align:left}
.vfd .record-comparison:not(.column-head){padding:11px 0;border-bottom:1px solid var(--line)}
.vfd .activity-panels .card.record-comparison{padding:9px 10px}
.vfd .record-comparison .metric-text{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;line-height:1.4}
.vfd .record-comparison .metric-text>span{min-width:0;overflow-wrap:break-word}
.vfd .record-comparison .current-value{font-size:21px;line-height:1.3;text-align:right;display:flex;justify-content:flex-end;align-items:baseline;flex-wrap:wrap;gap:3px;white-space:normal}
.vfd .max-recorded{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:3px;font-size:16px;line-height:1.4;font-weight:600;text-align:right;color:#a94b50;background:#fff1f2;border-radius:6px;padding:5px 6px;min-width:0}
.vfd .value-unit{font-size:10px;margin:0;white-space:nowrap;font-weight:400}
.vfd .column-head{font-size:11px;color:#66758a;margin-bottom:5px;text-align:right;align-items:end}
.vfd .column-head>span:last-child{color:#a94b50}
.vfd .foot-value-pair,.vfd .foot-column-heads>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;align-items:center}
.vfd .foot-column-heads{display:grid;grid-template-columns:minmax(0,1fr) minmax(78px,1fr) minmax(0,1fr);gap:8px;font-size:10px;line-height:1.3;color:#66758a;padding-top:9px}
.vfd .foot-column-heads>div>span:last-child{color:#a94b50}
.vfd .foot-value-pair .foot-value{font-size:18px;justify-content:flex-start}
.vfd .foot-maximum{font-size:14px;padding:4px;justify-content:flex-end}
.vfd .foot-metric-values,.vfd .foot-comparison-head,.vfd .foot-column-heads{grid-template-columns:minmax(0,1.15fr) minmax(64px,.8fr) minmax(0,1.15fr)}
.vfd .foot-value-pair .foot-value small{font-size:10px}
.vfd .turn-value-head,.vfd .turn-value-pair,.vfd .skill-value-head,.vfd .skill-value-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;align-items:center;width:100%}
.vfd .turn-value-head>span,.vfd .skill-value-head>span{font-size:9px;line-height:1.3;color:#66758a}
.vfd .turn-value-head>span:last-child,.vfd .skill-value-head>span:last-child{color:#a94b50}
.vfd .turn-value-pair strong{font-size:23px}
.vfd .turn-value-pair .max-recorded{font-size:16px;justify-content:center;padding:4px}
.vfd .skill-scores>div.skill-comparison{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.vfd .skill-value-pair strong{font-size:19px}
@media(max-width:760px){.vfd .record-comparison,.vfd .activity-panels .card.record-comparison{grid-template-columns:minmax(0,1fr) minmax(52px,.52fr) minmax(62px,.58fr);gap:6px}.vfd .record-comparison .current-value{font-size:18px}.vfd .max-recorded{font-size:14px}.vfd .record-comparison .metric-text{font-size:12px;gap:5px}.vfd .record-comparison .icon{width:21px;height:21px}.vfd .foot-metric-values,.vfd .foot-comparison-head,.vfd .foot-column-heads{gap:5px;grid-template-columns:minmax(0,1fr) minmax(60px,.68fr) minmax(0,1fr)}.vfd .foot-value-pair .foot-value{font-size:16px}.vfd .foot-maximum{font-size:12px;padding:3px}.vfd .foot-value-pair .value-unit,.vfd .foot-value-pair .foot-percent,.vfd .foot-value-pair .foot-unit{font-size:9px}.vfd .foot-column-heads{font-size:9px}.vfd .turn-value-pair strong{font-size:21px}.vfd .turn-value-pair .max-recorded{font-size:14px}}
.vfd .activity-panels .card.record-comparison .current-value{font-size:21px}
@media(max-width:760px){.vfd .activity-panels .card.record-comparison .current-value{font-size:18px}}

/* Explicit column placement prevents wrapping/theme rules from moving values. */
body .vfd[data-vfd] .record-comparison{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(64px,.55fr) minmax(74px,.58fr)!important;
 column-gap:9px!important;
 width:100%!important;
 box-sizing:border-box!important;
 align-items:center!important;
 float:none!important;
}
body .vfd[data-vfd] .record-comparison>*,
body .vfd[data-vfd] .foot-value-pair>*,
body .vfd[data-vfd] .turn-value-pair>*,
body .vfd[data-vfd] .skill-value-pair>*{min-width:0!important;float:none!important;margin:0!important;box-sizing:border-box!important}
body .vfd[data-vfd] .record-comparison>:nth-child(1){grid-column:1!important;grid-row:1!important}
body .vfd[data-vfd] .record-comparison>:nth-child(2){grid-column:2!important;grid-row:1!important}
body .vfd[data-vfd] .record-comparison>:nth-child(3){grid-column:3!important;grid-row:1!important}
body .vfd[data-vfd] .record-comparison>.current-value,
body .vfd[data-vfd] .record-comparison>.max-recorded{width:100%!important;justify-self:stretch!important;text-align:right!important;justify-content:flex-end!important;overflow-wrap:anywhere}
body .vfd[data-vfd] .column-head>span:nth-child(2),
body .vfd[data-vfd] .column-head>span:nth-child(3){text-align:right!important;padding-right:6px}
body .vfd[data-vfd] .record-comparison>.current-value{padding:5px 6px!important}
body .vfd[data-vfd] .highlights-panel>.column-head{padding:0 10px!important;border-left:1px solid transparent;border-right:1px solid transparent}
body .vfd[data-vfd] .foot-value-pair,
body .vfd[data-vfd] .foot-column-heads>div,
body .vfd[data-vfd] .turn-value-head,
body .vfd[data-vfd] .turn-value-pair,
body .vfd[data-vfd] .skill-value-head,
body .vfd[data-vfd] .skill-value-pair{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:5px!important;width:100%!important;box-sizing:border-box!important}
body .vfd[data-vfd] .foot-value-pair>:nth-child(1),
body .vfd[data-vfd] .foot-column-heads>div>:nth-child(1),
body .vfd[data-vfd] .turn-value-head>:nth-child(1),
body .vfd[data-vfd] .turn-value-pair>:nth-child(1),
body .vfd[data-vfd] .skill-value-head>:nth-child(1),
body .vfd[data-vfd] .skill-value-pair>:nth-child(1){grid-column:1!important;grid-row:1!important}
body .vfd[data-vfd] .foot-value-pair>:nth-child(2),
body .vfd[data-vfd] .foot-column-heads>div>:nth-child(2),
body .vfd[data-vfd] .turn-value-head>:nth-child(2),
body .vfd[data-vfd] .turn-value-pair>:nth-child(2),
body .vfd[data-vfd] .skill-value-head>:nth-child(2),
body .vfd[data-vfd] .skill-value-pair>:nth-child(2){grid-column:2!important;grid-row:1!important}
body .vfd[data-vfd] .foot-comparison-head,
body .vfd[data-vfd] .foot-column-heads,
body .vfd[data-vfd] .foot-metric-values{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(64px,.8fr) minmax(0,1.15fr)!important;column-gap:8px!important;width:100%!important}
body .vfd[data-vfd] .foot-comparison-head>:nth-child(1),
body .vfd[data-vfd] .foot-column-heads>:nth-child(1),
body .vfd[data-vfd] .foot-metric-values>:nth-child(1){grid-column:1!important;grid-row:1!important}
body .vfd[data-vfd] .foot-comparison-head>:nth-child(2),
body .vfd[data-vfd] .foot-column-heads>:nth-child(2),
body .vfd[data-vfd] .foot-metric-values>:nth-child(2){grid-column:2!important;grid-row:1!important}
body .vfd[data-vfd] .foot-comparison-head>:nth-child(3),
body .vfd[data-vfd] .foot-column-heads>:nth-child(3),
body .vfd[data-vfd] .foot-metric-values>:nth-child(3){grid-column:3!important;grid-row:1!important}
@media(max-width:760px){
 body .vfd[data-vfd] .record-comparison{grid-template-columns:minmax(0,1fr) minmax(54px,.52fr) minmax(66px,.58fr)!important;column-gap:6px!important}
 body .vfd[data-vfd] .foot-comparison-head,body .vfd[data-vfd] .foot-column-heads,body .vfd[data-vfd] .foot-metric-values{grid-template-columns:minmax(0,1fr) minmax(60px,.68fr) minmax(0,1fr)!important;column-gap:5px!important}
}
body .vfd[data-vfd] .foot-column-heads>div>span:last-child,
body .vfd[data-vfd] .skill-value-head>span:last-child{text-align:right!important}
body .vfd[data-vfd] .turn-value-head>span{text-align:center!important}

/* Small activity-source labels remain inside the maximum column. */
.vfd .max-recorded{flex-direction:column;align-items:flex-end;gap:2px}
.vfd .max-recorded .max-number{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:3px;max-width:100%;min-width:0;font-size:inherit;font-weight:inherit}
.vfd .max-recorded .max-source{display:block;width:100%;max-width:100%;margin:0;color:#66758a;font-size:9px;font-weight:400;line-height:1.3;text-align:right;white-space:normal;overflow-wrap:normal}
.vfd .max-source .max-date{display:block;font-size:.9em;white-space:nowrap}
.vfd .turn-value-pair .max-recorded{align-items:center}
.vfd .turn-value-pair .max-source{text-align:center}
@media(max-width:760px){.vfd .foot-maximum .max-source{font-size:8px}}

/* Keep maximum badges snug while retaining the reserved column. */
body .vfd[data-vfd] .record-comparison>.max-recorded,
body .vfd[data-vfd] .foot-value-pair>.max-recorded,
body .vfd[data-vfd] .turn-value-pair>.max-recorded,
body .vfd[data-vfd] .skill-value-pair>.max-recorded{
 width:fit-content!important;
 max-width:100%!important;
 justify-self:end!important;
}

/* Native disclosures: keyboard/touch accessible, with full-width row explanations. */
.vfd .metric-details{min-width:0;font-size:12px;line-height:1.5;color:#536477;margin:5px 0}
.vfd .metric-details>summary{display:flex;align-items:center;gap:5px;list-style:none;cursor:pointer;width:fit-content;min-height:28px;color:#536477;font-size:11px;font-weight:400;text-align:left}
.vfd .metric-details>summary::-webkit-details-marker{display:none}
.vfd .metric-details>summary:focus-visible{outline:2px solid var(--pink);outline-offset:2px;border-radius:3px}
.vfd .details-arrow{display:inline-block!important;width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:5px solid currentColor;flex-shrink:0}
.vfd .metric-details[open]>summary .details-arrow{transform:rotate(90deg)}
.vfd .metric-details>p{font-size:12px;line-height:1.5;text-align:left;white-space:normal;overflow-wrap:break-word;font-weight:400;margin:5px 0 8px;padding:9px 10px;background:#f5f8fa;border-radius:6px;color:#536477}
body .vfd[data-vfd] .record-comparison>.metric-details{grid-column:1/-1!important;grid-row:2!important;width:100%!important;margin:0!important}
.vfd .record-comparison>.metric-details>summary{margin-left:0}
.vfd .foot-metric>.metric-details>summary{margin-left:auto;margin-right:auto}
.vfd .turn-tile>.metric-details{width:100%}
.vfd .turn-tile>.metric-details>summary{margin:auto}
.vfd .turn-tile .metric-details p{padding:7px;font-size:11px}
.vfd .skills-panel>.metric-details{margin-bottom:12px}
.vfd .skill-comparison>.metric-details{margin:0}
.vfd .trend-card>.metric-details{margin:0 0 8px}
@media(max-width:760px){.vfd .metric-details>summary{min-height:32px}.vfd .metric-details>p{font-size:12px}}
