/* All additions are scoped to this screen, its dialog and the journey slot. */
#bodyinterests .bi-shell{max-width:1040px;padding-top:26px;padding-bottom:44px}
#bodyinterests .bi-top,#bodyinterests .bi-actions,#bodyinterests .bi-section-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
#bodyinterests .bi-top{justify-content:space-between}
#bodyinterests .bi-private{display:inline-flex;gap:7px;align-items:center;color:var(--teal);font-size:14px}
#bodyinterests .bi-heading{background:none;border:0;position:static;padding:30px 0 16px}
#bodyinterests h1{font-size:clamp(30px,5vw,44px);line-height:1.12;letter-spacing:-1px;margin:10px 0 16px}
#bodyinterests h2,.bi-shared h2{font-size:22px;line-height:1.3;margin:0 0 12px;display:flex;gap:8px;align-items:center}
#bodyinterests h3,.bi-shared h3{font-size:17px;line-height:1.4;margin:0 0 8px}
#bodyinterests p,.bi-shared p{line-height:1.6;overflow-wrap:anywhere}
#bodyinterests .panel{margin-bottom:22px;padding:24px}
#bodyinterests .bi-note{display:flex;gap:8px;align-items:center;color:var(--grigio);font-size:16px;margin:0 0 24px}
#bodyinterests .bi-area-panel{display:grid;grid-template-columns:minmax(260px,1fr) 1fr;gap:28px;align-items:start}
#bodyinterests .bi-area-title{grid-column:1/-1}
.bi-dual-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bi-body-view{text-align:center;min-width:0}
#bodyinterests .bi-lateral summary{cursor:pointer;min-height:44px;font-weight:600}
#bodyinterests .bi-lateral .bi-check-grid{margin:12px 0}
#bodyinterests .bi-map-column{text-align:center;border-radius:var(--r-lg);background:var(--card-2);padding:16px 12px}
.bi-views{display:flex;justify-content:center;gap:8px;margin-bottom:8px}
.bi-views .btn{min-width:78px;min-height:44px;font-size:16px}
.bi-views [aria-pressed=true]{background:var(--teal);color:var(--on-primary,#fff);border-color:var(--teal)}
.bi-figure-wrap{width:100%;max-width:180px;margin:0 auto}
.bi-figure{display:block;width:100%;height:auto;overflow:hidden}
#patientSexSetting select{display:block;width:100%;min-height:48px;padding:10px 12px;margin:12px 0;font:inherit;font-size:16px;border:1px solid var(--linea);border-radius:var(--r);background:var(--card);color:var(--testo)}
#patientSexSetting label{font-weight:700}
.bi-zone{cursor:pointer;outline:0}
.bi-anatomy{fill:var(--card);stroke:var(--teal);stroke-width:1.6;stroke-linejoin:round}
.bi-contour{fill:none;opacity:.45}
.bi-zone path{fill:rgba(var(--accent-rgb),.2);stroke:var(--teal);stroke-width:1.5;stroke-linejoin:round;transition:fill .12s ease}
.bi-zone:hover path{fill:rgba(var(--accent-rgb),.38)}
.bi-zone.selected path{fill:#e8a391;stroke:#a94e3c;stroke-width:2.5}
.bi-zone:focus-visible path{stroke:var(--testo);stroke-width:4;stroke-dasharray:4 3}
#bodyinterests fieldset{border:0;padding:0;margin:22px 0}
#bodyinterests legend{font-size:18px;font-weight:700;margin-bottom:12px}
#bodyinterests .bi-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#bodyinterests .bi-check{display:flex;align-items:center;gap:10px;min-height:48px;box-sizing:border-box;padding:11px 12px;border:1px solid var(--linea);border-radius:var(--r);background:var(--card);cursor:pointer;font-size:16px;line-height:1.35}
#bodyinterests .bi-check:has(input:checked){background:rgba(var(--accent-rgb),.08);border-color:var(--teal);color:var(--teal)}
#bodyinterests input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--teal);margin:0}
#bodyinterests .bi-selection,.bi-zoom .bi-selection{font-size:15px;line-height:1.6;color:var(--teal);min-height:26px}
#bodyinterests .bi-muted,.bi-shared .bi-muted{font-size:14px;color:var(--grigio)}
#bodyinterests .bi-save-status{min-height:32px;margin:0 0 18px;color:var(--teal);font-size:15px;line-height:1.5}
#bodyinterests .bi-section-head{justify-content:space-between;align-items:flex-start}
#bodyinterests .bi-section-head>div{flex:1;min-width:220px}
#bodyinterests .bi-share-form,#bodyinterests .bi-preview{padding:20px;margin-top:18px;border:1px solid var(--linea);border-radius:var(--r-lg);background:var(--card-2)}
#bodyinterests .bi-share-form>label{display:block;font-weight:700;margin-bottom:8px}
#bodyinterests select{width:100%;max-width:100%;min-height:48px;padding:10px 12px;font:inherit;font-size:16px;border:1px solid var(--linea);border-radius:var(--r);background:var(--card);color:var(--testo)}
#bodyinterests .bi-grant{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid var(--linea)}
#bodyinterests .bi-grant>div{flex:1;min-width:180px}
#bodyinterests .bi-grant p{margin:0;font-size:15px}
#bodyinterests .btn,.bi-zoom .btn{min-height:44px;font-size:16px;white-space:normal}
#bodyinterests :focus-visible,.bi-zoom :focus-visible{outline:3px solid var(--teal);outline-offset:3px}
#bodyinterests .bi-confirm{margin-top:16px}
.bi-sr{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body.bi-zoom-open{overflow:hidden}
.bi-zoom{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(540px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--linea);border-radius:var(--r-lg);background:var(--card);color:var(--testo);overscroll-behavior:contain}
.bi-zoom::backdrop{background:rgba(15,35,30,.55)}
.bi-zoom-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:var(--card);position:sticky;top:0;z-index:2;border-bottom:1px solid var(--linea)}
.bi-zoom-top h2{font-size:18px;line-height:1.3;margin:0}
.bi-zoom-scroll{max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:16px 16px 26px;-webkit-overflow-scrolling:touch}
.bi-zoom .bi-figure-wrap{max-width:400px;width:100%}
.bi-zoom .bi-dual-map{grid-template-columns:1fr}.bi-zoom .bi-body-view{max-width:350px;margin:auto;width:100%}
.bi-shared{margin:22px 0}
.bi-shared-content{display:flex;align-items:center;gap:24px;min-width:0}
.bi-shared-content>div:last-child{min-width:0;flex:1}
.bi-mini{display:flex;flex:none;gap:4px;width:112px}
.bi-mini .bi-figure{width:54px;flex:none}
.bi-mini .bi-zone{pointer-events:none}
.bi-shared h3{color:var(--teal)}
.bi-shared p{margin:6px 0 16px}
.hs-consent{font-size:16px;line-height:1.5;padding:20px;background:var(--card-2);color:var(--testo);border:1px solid var(--linea);border-radius:var(--r-lg);margin:12px 0;min-width:0;overflow-wrap:anywhere}
.hs-consent h2{font-size:20px;line-height:1.25;margin:0 0 10px}.hs-consent p{margin:10px 0}
.hs-consent .hs-note{font-size:14px;color:var(--grigio)}.hs-consent summary{min-height:44px;cursor:pointer;font-weight:700}
.hs-consent fieldset{border:0;margin:12px 0;padding:0}.hs-consent legend{font-weight:700}.hs-consent label{display:flex;align-items:center;gap:8px;min-height:44px}.hs-consent input{width:20px;height:20px;accent-color:var(--teal)}
.hs-actions{display:flex;flex-wrap:wrap;gap:8px}.hs-consent .btn{min-height:44px;white-space:normal;font-size:16px}
.hs-external{position:fixed;z-index:1250;bottom:16px;right:16px;width:min(420px,calc(100vw - 32px));max-height:70dvh;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;box-shadow:var(--ombra)}
.hs-dialog{padding:0;background:var(--card);color:var(--testo);border:1px solid var(--linea);border-radius:var(--r-lg);width:min(580px,calc(100vw - 24px));max-height:85dvh;overflow:auto;overscroll-behavior:contain}.hs-dialog .hs-consent{margin:0;border:0}.hs-dialog::backdrop{background:rgba(15,35,30,.5)}
.hs-consent :focus-visible{outline:3px solid var(--teal);outline-offset:3px}
.hs-chat-prompt{padding:10px 16px;margin:0;flex-shrink:0;border-radius:0}.hs-chat-prompt p{margin:0 0 6px;font-size:15px}.hs-chat-prompt .btn{font-size:14px;padding:8px 10px}
.hs-chat-summary{margin:0;padding:10px 16px;max-height:180px;overflow:auto;overscroll-behavior:contain;flex-shrink:0;border-radius:0}.hs-chat-summary summary{min-height:44px;cursor:pointer;font-weight:700}.hs-chat-summary h2{font-size:18px}
.hs-chat-summary[hidden]{display:none}
.hs-chat-summary .hs-shared-line{font-size:14px;margin:3px 0;line-height:1.45}
#connections .bi-shared .bi-mini{margin-top:12px}
@media(max-width:640px){
 #bodyinterests .bi-shell{padding:18px 16px 32px}
 #bodyinterests .panel{padding:18px}
 #bodyinterests .bi-area-panel{grid-template-columns:1fr;gap:20px}
 #bodyinterests .bi-map-column{padding:12px;display:flex;flex-direction:column;align-items:center}
 #bodyinterests #biMap{width:100%}
 #bodyinterests .bi-figure-wrap{max-width:126px}
 #bodyinterests .bi-check-grid{gap:8px}
 #bodyinterests .bi-check{padding:10px 8px;font-size:16px;gap:8px}
 #bodyinterests .bi-share-form,#bodyinterests .bi-preview{padding:14px}
 #bodyinterests .bi-top{align-items:flex-start;gap:8px}
 #bodyinterests .bi-note{align-items:flex-start}
 #bodyinterests .bi-actions>.btn{flex:1;min-width:130px}
 .bi-shared-content{gap:12px;align-items:flex-start}
 .bi-mini{width:80px;gap:0}.bi-mini .bi-figure{width:40px}
}
@media(prefers-reduced-motion:reduce){.bi-zone path{transition:none}}
