.hf-vfc { display:grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.6fr); overflow:hidden; background:var(--hf-input-bg,#fff); border-radius:24px; box-shadow:var(--hf-shadow-card); margin-block:32px; text-align:left; }
.hf-vfc-intro { background:var(--hf-primary); color:#fff; padding:32px; display:flex; flex-direction:column; }
.hf-vfc-intro h3 { color:inherit; margin-top:0; font-size:26px; }
.hf-vfc-intro p { font-size:15px; line-height:1.65; }
.hf-vfc-intro .hf-vfc-source { margin-top:auto; padding-top:36px; font-size:12px; color:#ecf5f8; }
.hf-vfc-main { padding:32px; min-width:0; }
.hf-vfc-controls { min-width:0; margin:0; padding:0; border:0; }
.hf-vfc-unavailable { font-size:13px; color:#526477; }
.hf-vfc [hidden] { display:none!important; }
.hf-vfc-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.hf-vfc label,.hf-vfc legend { font-weight:600; font-size:14px; }
.hf-vfc input[type=number] { width:100%; padding:12px 14px; border:1px solid var(--hf-primary-soft); border-radius:12px; font:inherit; background:var(--hf-bg); color:var(--hf-text); margin-top:8px; caret-color:var(--hf-primary); }
.hf-vfc input[aria-invalid=true] { border-color:var(--hf-danger); }
.hf-vfc-hint { display:block; font-size:12px; line-height:1.65; color:#526477; margin-top:8px; }
.hf-vfc-sex { border:0; padding:0; margin:24px 0; display:flex; gap:12px; }
.hf-vfc-sex legend { margin-bottom:12px; }
.hf-vfc-sex label { flex:1; position:relative; cursor:pointer; }
.hf-vfc-sex input { position:absolute; opacity:0; inset:0; }
.hf-vfc-sex span { display:block; text-align:center; padding:12px; border:1px solid var(--hf-primary-soft); border-radius:12px; }
.hf-vfc-sex input:checked+span { background:var(--hf-primary); color:#fff; }
.hf-vfc-sex input:focus-visible+span { outline:3px solid var(--hf-primary); outline-offset:3px; }
.hf-vfc-error { background:var(--hf-danger-bg); color:var(--hf-danger); padding:12px 16px; border-radius:12px; font-size:14px; }
.hf-vfc .hf-button { width:100%; margin-block:8px; font-size:14px; }
.hf-vfc-result h3:focus { outline:2px solid var(--hf-primary); outline-offset:4px; }
.hf-vfc-result h3 { margin-top:0; }
.hf-vfc-recap { color:#526477; font-size:14px; }
.hf-vfc-percentile { font-family:var(--hf-font-data); font-variant-numeric:tabular-nums; color:var(--hf-primary); margin-block:16px; display:flex; align-items:baseline; gap:8px; }
.hf-vfc-percentile [data-result=percentile] { font-size:64px; font-weight:600; line-height:1; }
.hf-vfc-percentile span+span { font-size:16px; }
.hf-vfc-benchmarks { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-block:24px; }
.hf-vfc-benchmarks div { background:var(--hf-bg); padding:12px 6px; border-radius:12px; text-align:center; }
.hf-vfc-benchmarks dt { font-size:11px; color:#526477; }
.hf-vfc-benchmarks dd { margin:4px 0 0; font:600 17px var(--hf-font-data); font-variant-numeric:tabular-nums; color:var(--hf-primary); }
.hf-vfc-reset { padding:12px; width:100%; background:transparent; border:1px solid var(--hf-primary-soft); color:var(--hf-primary); border-radius:9999px; font:600 14px var(--hf-font-brand); cursor:pointer; }
.hf-vfc-reset:hover { background:var(--hf-bg); }
@media(max-width:650px) {
  .hf-vfc { grid-template-columns:1fr; }
  .hf-vfc-intro,.hf-vfc-main { padding:24px; }
  .hf-vfc-intro .hf-vfc-source { margin-top:8px; padding-top:0; }
  .hf-vfc-intro h3 { margin-bottom:8px; }
  .hf-vfc-fields { gap:12px; }
}
.hf-vfc { grid-template-columns:minmax(190px,27%) minmax(0,1fr); margin:24px 0 0; border-radius:32px; scroll-margin-top:24px; }
.hf-vfc-form h3 { margin:0 0 22px; }
.hf-vfc-input { position:relative; }
.hf-vfc-input input[type=number] { border-radius:9999px; min-height:50px; padding-right:64px; }
.hf-vfc-input > span { position:absolute; right:17px; top:50%; transform:translateY(-30%); pointer-events:none; font-size:13px; }
.hf-vfc-sex { display:block; margin-bottom:8px; }
.hf-vfc-sex > div { display:flex; gap:2px; padding:3px; border:1px solid var(--hf-primary-soft); border-radius:9999px; background:var(--hf-bg); }
.hf-vfc-sex[aria-invalid=true] > div { border-color:var(--hf-danger); }
.hf-vfc-sex span { border:0; border-radius:9999px; }
.hf-vfc-sex input:checked+span::before { content:''; display:inline-block; width:10px; height:6px; border:solid currentColor; border-width:0 0 2px 2px; transform:rotate(-45deg); margin:0 8px 3px 0; }
.hf-vfc-error { margin:6px 0; padding:0; background:transparent; }
.hf-vfc-error:not([hidden])::before { content:'!'; display:inline-grid; place-items:center; border:1px solid currentColor; border-radius:50%; width:15px; height:15px; margin-right:6px; font-weight:700; }
.hf-vfc-recap { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.hf-vfc-recap span { padding:5px 10px; border-radius:9999px; background:var(--hf-bg); }
.hf-vfc-edit { background:none; border:0; min-height:44px; color:var(--hf-text); text-decoration:underline; cursor:pointer; }
.hf-vfc-result-head { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; gap:24px; margin:16px 0; }
.hf-vfc-result-head p { margin:8px 0; }
.hf-vfc-caption,.hf-vfc-gauge small { font-size:12px; }
.hf-vfc-gauge > div { height:7px; background:linear-gradient(to right,var(--hf-primary) var(--hf-vfc-percentile),var(--hf-accent) var(--hf-vfc-percentile)); border-radius:9999px; position:relative; }
.hf-vfc-gauge > div::after { content:''; position:absolute; inset-inline-start:clamp(6px,var(--hf-vfc-percentile),calc(100% - 6px)); top:50%; transform:translate(-50%,-50%); width:14px; height:14px; background:#fff; border:2px solid var(--hf-text); border-radius:50%; }
.hf-vfc-gauge small { display:flex; justify-content:space-between; margin-top:8px; }
.hf-vfc-result-note { padding:14px; border-radius:16px; background:var(--hf-surface); }
@media(max-width:650px) {
 .hf-vfc,.hf-vfc-fields,.hf-vfc-result-head { grid-template-columns:1fr; }
 .hf-vfc-result-head { gap:4px; }
}
