.sofit-postural-ref{margin:12px 0;overflow:hidden}
.sofit-postural-ref img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--border);background:var(--bg2)}
.sp-guide{border-top:3px solid #287a68;padding:0;overflow:hidden}
.sp-guide>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:0 14px;cursor:pointer;color:var(--text);list-style:none}
.sp-guide>summary::-webkit-details-marker{display:none}
.sp-guide>summary>span:first-child{display:grid;gap:2px}
.sp-guide>summary b{font-size:15px}
.sp-guide>summary small{font-size:12px;color:var(--muted);font-weight:600}
.sp-guide-action{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--border);border-radius:7px;background:var(--bg2);font-size:12px;font-weight:800;white-space:nowrap}
.sp-guide[open]>summary{border-bottom:1px solid var(--border);background:var(--card2)}
.sp-guide[open] .sp-guide-action{font-size:0}
.sp-guide[open] .sp-guide-action:after{content:'Ocultar';font-size:12px}
.sp-guide-content{padding:13px 14px 14px}
.sp-lead{margin:0 0 10px;color:var(--muted);line-height:1.5}
.sp-steps{margin:0;padding-left:22px;display:grid;gap:8px;color:var(--text);font-size:13px;line-height:1.48}
.sp-protocols{margin-top:14px;border:1px solid var(--border);border-radius:10px;background:var(--card2);overflow:hidden}
.sp-protocols summary{cursor:pointer;padding:12px 14px;font-weight:800;color:var(--text);min-height:44px;display:flex;align-items:center}
.sp-protocols[open] summary{border-bottom:1px solid var(--border)}
.sp-protocol-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border)}
.sp-protocol-grid>div{display:grid;gap:5px;padding:13px 14px;background:var(--card2)}
.sp-protocol-grid b{font-size:13px;color:var(--text)}
.sp-protocol-grid span{font-size:12px;line-height:1.45;color:var(--muted)}
.sp-brand{display:flex;justify-content:flex-start;align-items:center;min-height:56px;margin-bottom:10px;padding:8px 12px;box-sizing:border-box;background:#17263c;border:1px solid var(--border);border-radius:10px}
.sp-brand img{width:126px;height:auto;max-height:42px;object-fit:contain;object-position:left center}
.sp-reference-card{padding:0;overflow:hidden}
.sp-reference-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:0 14px;cursor:pointer;list-style:none;color:var(--text)}
.sp-reference-summary::-webkit-details-marker{display:none}
.sp-reference-summary>span:first-child{display:grid;gap:2px}
.sp-reference-summary b{font-size:15px}
.sp-reference-summary small{font-size:12px;color:var(--muted);font-weight:600}
.sp-reference-action{display:inline-flex;align-items:center;padding:6px 9px;border:1px solid var(--border);border-radius:7px;background:var(--bg2);font-size:12px;font-weight:800;white-space:nowrap}
.sp-reference-card[open] .sp-reference-summary{border-bottom:1px solid var(--border);background:var(--card2)}
.sp-reference-card[open] .sp-reference-action{font-size:0}
.sp-reference-card[open] .sp-reference-action:after{content:'Ocultar';font-size:12px}
.sp-reference-body{padding:13px 14px 14px}
.sp-reference-body>h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-ref-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
.sp-ref-grid figure{margin:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--card2);display:flex;flex-direction:column}
.sp-ref-grid figure>img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;background:#f7f7f5}
.sp-ref-pending{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;aspect-ratio:4/5;padding:12px;color:var(--muted);font-size:12px;line-height:1.4;background:#eef1f3}
.sp-ref-pending small{display:block;margin-top:5px;font-size:11px}
.sp-ref-grid figcaption{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;color:var(--text);font-size:12px;font-weight:800;background:var(--card2)}
.sp-ref-grid figcaption span,.sp-photo-compare summary span{font-size:11px;font-weight:700;color:var(--muted);white-space:nowrap}
.sp-photo-compare{margin-top:12px;border:1px solid var(--border);border-radius:10px;background:var(--card2);overflow:hidden}
.sp-photo-compare summary{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:48px;padding:0 13px;cursor:pointer;font-weight:850;color:var(--text)}
.sp-photo-compare>p{margin:0;padding:0 13px 11px;color:var(--muted);font-size:12px;line-height:1.45}
.sp-photo-consent{display:flex;gap:10px;align-items:flex-start;margin:0 13px 12px;padding:10px;border:1px solid #a97825;border-radius:8px;background:rgba(172,114,29,.10);font-size:12px;line-height:1.42;color:var(--text)}
.sp-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 13px 13px}
.sp-photo-slot{display:grid;gap:6px;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--bg2);font-size:11px;color:var(--muted);line-height:1.35}
.sp-photo-slot label{font-weight:750;color:var(--text)}
.sp-photo-slot input{width:100%;font-size:11px;min-width:0}
.sp-photo-slot small{font-size:10.5px}
.sp-photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:stretch}
.sp-photo-frame{position:relative;min-width:0;min-height:120px;aspect-ratio:4/5;border-radius:6px;background:#f7f7f5;box-shadow:0 8px 18px rgba(7,20,38,.16);overflow:hidden}
.sp-photo-pair>img,.sp-photo-preview,.sp-photo-pair>span{display:block;width:100%;min-height:120px;aspect-ratio:4/5;object-fit:contain;border:1px solid var(--border);border-radius:6px;background:#f7f7f5}
.sp-photo-frame>.sp-photo-preview,.sp-photo-frame>span{position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0;border-radius:0}
.sp-photo-pair>span{display:flex;align-items:center;justify-content:center;padding:8px;text-align:center;color:var(--muted);font-size:11px}
.sp-visual-grid{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(24,81,139,.36) 1px,transparent 1px),linear-gradient(90deg,rgba(24,81,139,.36) 1px,transparent 1px),linear-gradient(rgba(24,81,139,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(24,81,139,.14) 1px,transparent 1px);background-size:20% 20%,20% 20%,4% 4%,4% 4%;border:1px solid rgba(24,81,139,.58);box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
.sp-visual-line{position:absolute;top:0;bottom:0;left:50%;width:2px;pointer-events:none;background:repeating-linear-gradient(to bottom,#d46a31 0 7px,transparent 7px 12px);box-shadow:0 0 0 1px rgba(255,255,255,.55)}
.sp-visual-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:center;padding-top:2px}
.sp-visual-tools label{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--text);font-weight:700;min-height:30px}
.sp-visual-tools input[type="checkbox"]{width:16px!important;height:16px!important;min-width:16px;accent-color:#287a68}
.sp-visual-tools input[type="range"]{grid-column:1/2;width:100%;min-height:32px}
.sp-visual-tools button{grid-column:2/3;width:100%;min-height:32px;padding:4px 7px;font-size:11px}
.sp-disclaimer{font-size:12px;line-height:1.45;color:var(--muted);margin:9px 0 0}
.sp-status{border-left:3px solid #ac721d;background:rgba(172,114,29,.10);border-radius:8px;padding:9px 10px;font-size:12px;line-height:1.45;color:var(--muted);margin:10px 0}
.sp-prep{border:1px solid var(--border);border-radius:10px;padding:12px;margin:12px 0;background:var(--card2);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.sp-prep legend{font-weight:800;padding:0 6px}
.sp-prep .checkline,.sp-consent{display:flex;gap:10px;margin:0;align-items:flex-start;line-height:1.4}
.sp-consent{margin:12px 0;line-height:1.45}
.sp-prep .checkline input[type="checkbox"],.sp-consent input[type="checkbox"],.sp-photo-consent input[type="checkbox"]{width:20px!important;height:20px!important;min-width:20px;flex:0 0 20px;margin:1px 0 0}
.sp-triage{border:1px solid var(--border);border-radius:10px;padding:12px;margin:12px 0;background:var(--card2)}
.sp-triage legend{font-weight:800;padding:0 6px}
.sp-safety-feedback{border:2px solid #c34f3d;background:rgba(195,79,61,.14);border-radius:10px;padding:12px;margin:10px 0;color:var(--text);font-weight:750;line-height:1.45}
.sp-start{margin:14px 0 10px}
.sp-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sp-view{border:1px solid var(--border);border-radius:10px;padding:12px;background:var(--card2)}
.sp-view summary{cursor:pointer;font-weight:850;min-height:42px;display:flex;align-items:center;padding:0 4px}
.sp-view[open] summary{margin-bottom:8px;border-bottom:1px solid var(--border)}
.sp-view-body{padding-top:2px}
.sp-view-help{font-size:12px;line-height:1.45;color:var(--muted);margin:0 0 10px}
.sp-fill-view{width:100%;margin:0 0 8px;white-space:normal;line-height:1.35}
.sp-subtitle{font-size:11px;font-weight:850;letter-spacing:.025em;text-transform:uppercase;color:#287a68;margin:12px 0 2px;padding-bottom:5px;border-bottom:1px solid var(--border)}
.sp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,.8fr);gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid var(--border);font-size:13px;line-height:1.35}
.sp-row:last-of-type{border-bottom:0}
.sp-item-control{display:grid;gap:6px}
.sp-item-detail{width:100%;font-size:12px}
.sp-note{margin-top:10px}
.sp-history{margin-top:12px;font-size:12px;color:var(--muted)}
@media(max-width:1020px){.sp-ref-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sp-protocol-grid,.sp-prep,.sp-photo-grid{grid-template-columns:1fr}.sp-ref-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sp-ref-grid figure{display:flex;min-width:0}.sp-ref-grid figure>img{height:auto;min-height:0;aspect-ratio:4/5;object-fit:contain;object-position:center}.sp-ref-grid figcaption{font-size:12px;padding:8px}.sp-photo-pair{grid-template-columns:1fr}.sp-photo-pair>img,.sp-photo-frame{max-width:100%;min-height:0}.sp-visual-tools label{min-height:36px}.sp-visual-tools input[type="range"],.sp-visual-tools button{min-height:40px}.sp-views{grid-template-columns:1fr}.sp-row{grid-template-columns:1fr}.sp-row select{min-height:44px}.sp-view{padding:10px}.sp-reference-summary{min-height:50px;padding:0 11px}.sp-reference-body{padding:10px 11px 12px}.sofit-postural-ref{margin-left:-2px;margin-right:-2px}}
@media(prefers-reduced-motion:reduce){.sofit-postural-ref *{transition:none!important;animation:none!important}}
