.v308-pad{padding:18px}.v308-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.v308-form{display:grid;gap:14px;padding:16px;border:1px solid var(--line,#394e61);border-radius:14px;margin:16px 0}.v308-form label{display:grid;gap:6px;font-size:13px}.v308-form input,.v308-form textarea,.v308-measurements select{width:100%;min-width:0;background:#10212f;color:#ebf5fc;border:1px solid #41566d;border-radius:8px;padding:10px}.v308-form button{justify-self:start}.v308-checks{display:flex;gap:8px 16px;flex-wrap:wrap;margin:12px 0}.v308-checks label{font-size:12px;white-space:nowrap}.v308-chart-wrap{overflow-x:auto}.v308-chart-wrap svg{display:block;width:100%;min-width:480px;max-height:320px}.v308-legend{display:flex;gap:10px 18px;flex-wrap:wrap}.v308-legend span{display:flex;align-items:center;gap:5px;font-size:12px}.v308-legend i{display:inline-block;width:9px;height:9px;border-radius:50%}.v308-entry{border:1px solid #394e61;border-radius:12px;margin:10px 0;padding:13px}.v308-entry summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px}.v308-entry summary span{color:#9eb5c8;font-size:12px}.v308-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-top:14px}.v308-values>div{background:#10212f;padding:10px;border-radius:8px;display:grid;gap:4px}.v308-values small{color:#9eb5c8}@media(max-width:600px){.v308-pad{padding:12px}.v308-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.v308-entry summary{flex-wrap:wrap}}

/* Embedded measurements: reuse one secured view in Student Profile. */
.v320-embedded{min-width:0;width:100%;padding:0;border:0;box-shadow:none;background:transparent;}
.v320-embedded .dash-panel-head{padding:4px 0 0;}
.v320-embedded .v308-pad{padding:12px 0 0;min-width:0;}
.v320-embedded .v308-chart-wrap{max-width:100%;}
.v320-embedded .v308-checks{min-width:0;}

/* V30.21.51: interactive position guide. Existing measurement form & RPC unchanged. */
.v51-form-layout{display:grid;grid-template-columns:minmax(210px,280px) minmax(0,1fr);gap:18px;align-items:start}
.v51-measure-guide{border:1px solid #36556f;background:linear-gradient(155deg,#122f47,#102132);border-radius:14px;padding:14px;min-width:0}
.v51-measure-guide h4{margin:0 0 8px;font-size:15px;color:#e8f7ff}
.v51-measure-guide .dash-hint{font-size:12px;margin:6px 0 10px}
.v51-figure{width:min(100%,220px);aspect-ratio:220/430;position:relative;margin:0 auto}
.v51-figure svg{width:100%;height:100%;overflow:visible;display:block}
.v51-body-shape{fill:url(#v51-body-shade);stroke:#8ac1d9;stroke-width:1.5}
.v51-highlight{opacity:0;transition:opacity .16s ease}
.v51-region-line{fill:rgba(31,194,255,.15);stroke:#3ce6ff;stroke-width:4;filter:drop-shadow(0px 0px 5px #23dafa)}
.v51-region-body{fill:rgba(37,194,255,.15);stroke:#3ce6ff;stroke-width:3;filter:drop-shadow(0px 0px 6px #23dafa)}
.v51-measure-guide[data-active="weight_kg"] [data-v51-highlight="weight_kg"],
.v51-measure-guide[data-active="shoulder_cm"] [data-v51-highlight="shoulder_cm"],
.v51-measure-guide[data-active="chest_cm"] [data-v51-highlight="chest_cm"],
.v51-measure-guide[data-active="arm_cm"] [data-v51-highlight="arm_cm"],
.v51-measure-guide[data-active="waist_cm"] [data-v51-highlight="waist_cm"],
.v51-measure-guide[data-active="hip_cm"] [data-v51-highlight="hip_cm"],
.v51-measure-guide[data-active="thigh_cm"] [data-v51-highlight="thigh_cm"],
.v51-measure-guide[data-active="calf_cm"] [data-v51-highlight="calf_cm"]{opacity:1}
.v51-hotspot{position:absolute;transform:translate(-50%,-50%);width:23px;height:23px;border:2px solid #c7f4ff;border-radius:50%;background:rgba(15,66,94,.6);display:grid;place-items:center;cursor:pointer;padding:0;z-index:2}
.v51-hotspot span{width:6px;height:6px;background:#a7f4ff;border-radius:50%}
.v51-hotspot[aria-pressed="true"]{background:#04b7eb;border-color:white;box-shadow:0 0 0 5px rgba(0,194,248,.24),0 0 17px #35e5ff}
.v51-hotspot:focus-visible{outline:3px solid #fbd34b;outline-offset:3px}
.v51-guide-label{background:rgba(36,99,129,.36);border:1px solid #346989;border-radius:9px;padding:10px;margin:10px 0}
.v51-guide-label strong{display:block;color:#85eafa;font-size:14px}
.v51-guide-label p{font-size:12px;color:#dcecf8;margin:6px 0 0;line-height:1.45}
.v308-form label.v51-field-active{color:#7cecff}
.v308-form .v51-field-active input{border-color:#29d9fa;box-shadow:0 0 0 2px rgba(41,217,250,.2)}
@media(max-width:760px){.v51-form-layout{grid-template-columns:1fr}.v51-measure-guide{padding:12px}.v51-figure{width:185px}.v308-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.v51-highlight{transition:none}}

/* V30.21.52: sex-specific visual guides; CSS changes are restricted to the guide. */
.v51-measure-guide .v52-model{display:none}
.v51-measure-guide[data-v52-gender="nam"] [data-v52-model="nam"],
.v51-measure-guide[data-v52-gender="nu"] [data-v52-model="nu"],
.v51-measure-guide[data-v52-gender="neutral"] [data-v52-model="neutral"]{display:block}
.v52-anatomy-detail{fill:none;stroke:#b5d8ee;stroke-width:1.5;opacity:.5}
.v52-model-description{color:#9fe4f5;font-size:12px;font-weight:600;margin:4px 0 8px;line-height:1.4}
