Back to Body Journal
SOURCE / PINNED RELEASE

Made of little things.

Body Journal

Release
e8049f8da4e2…
Author-recorded commit
61c04bf0e8aa…
License
LICENSE
Author’s source reference
nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-6c4554844c7

Archive hash verified: 4369d778da046a8b…. The source-to-build association is the author’s claim; it has not been independently rebuilt.

src/styles.css
:root{--bg:#ffffff;--paper:#ffffff;--ink:#202124;--muted:#555962;--line:#d2d5da;--emphasis:#c43c20;--emphasis-soft:#fff0eb;--accent:#c43c20;--control-h:42px;--napplet-text-selection:text;font:14px/1.5 'Avenir Next',Avenir,'Segoe UI',sans-serif;color-scheme:light}
*{box-sizing:border-box}html,body,#app{height:100%;margin:0;color:var(--ink);background:var(--bg)}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.6}button,select,input,textarea{-webkit-tap-highlight-color:transparent}button{border:0;background:none}svg{width:21px;height:21px;flex-shrink:0;vertical-align:middle}input,textarea,select{min-width:0;width:100%;border:1px solid var(--line);background:#ffffff;border-radius:7px;padding:10px 11px;outline:none;transition:border-color .15s;min-height:var(--control-h)}input:focus,textarea:focus,select:focus{border-color:#555962;box-shadow:0 0 0 3px #34373d0c}textarea{resize:vertical;line-height:1.6}select{padding-right:24px;font-size:12px}button:focus-visible{outline:2px solid #555962;outline-offset:3px}button:hover{filter:brightness(.97)}[hidden]{display:none!important}h2,h3,h4,p{margin:0}h2{font-size:20px;line-height:1.3;font-weight:500;letter-spacing:-.7px}h3{font-size:18px;font-weight:500;letter-spacing:-.5px}h4{font-size:15px;font-weight:600}p{line-height:1.65}.muted{color:var(--muted)}.small{font-size:12px}.section-caption{font-size:9px;letter-spacing:1.6px;font-weight:600;color:#555962;display:flex;align-items:center;justify-content:space-between}.app{overflow:hidden}.app-shell{display:grid;grid-template-rows:78px minmax(0,1fr) 72px;height:100%}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;border-bottom:1px solid var(--line);background:var(--paper)}.intro{display:flex;align-items:center;gap:12px}.mini-logo{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f4f5f6;font-size:28px;color:#34373d;flex-shrink:0}.intro strong{display:block;font-size:14px;font-weight:600;letter-spacing:-.3px}.intro div>span{display:block;font-size:10px;color:var(--muted);margin-top:2px}.steps{display:flex;gap:22px;align-items:center}.step{display:flex;align-items:center;gap:8px;color:#555962;font-size:12px;min-height:44px;padding:0}.step>span{border:1px solid #d2d5da;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;font-size:10px}.step.active{color:var(--emphasis);font-weight:600}.step.active>span{background:var(--emphasis);border-color:var(--emphasis);color:white}.connection-button{border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;gap:9px;min-height:36px;padding:6px 12px;font-size:11px}.status-dot,.hint-dot{width:6px;height:6px;border-radius:50%;background:#9499a2;display:inline-block;flex-shrink:0}.configured .status-dot,.status-dot.available{background:#34373d}.map-page{display:grid;grid-template-columns:23% minmax(0,1fr) 30%;min-height:0}.profile-panel{background:var(--paper);border-right:1px solid var(--line);padding:27px 24px 18px;overflow:auto;display:flex;flex-direction:column;gap:0}.profile-panel h2{margin:12px 0 8px}.profile-fields{display:grid;gap:18px;margin-top:27px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:500;letter-spacing:.05px}.field input,.field textarea{font-size:12px;font-weight:400;letter-spacing:0}.unit-input{position:relative}.unit-input input{padding-right:45px}.unit-input>span{position:absolute;right:12px;top:12px;font-size:11px;color:#555962}.range-field{padding-top:4px}.range-field label,.severity-field label{display:flex;align-items:center;justify-content:space-between}.range-field strong{font-size:17px;font-weight:500}.range-field strong span{font-size:10px;color:var(--muted)}input[type=range]{appearance:none;-webkit-appearance:none;padding:0;background:#d2d5da;border:0;min-height:0;height:3px;border-radius:8px;margin:12px 0 4px;accent-color:var(--emphasis);box-shadow:none}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:var(--emphasis);border:3px solid #ffffff;box-shadow:0 0 0 1px var(--emphasis)}.range-ends{display:flex;justify-content:space-between;font-size:9px;font-weight:400;color:#555962}.quiet-note{display:flex;gap:9px;color:#555962;font-size:10px;line-height:1.6;padding:18px 0}.quiet-note>span{padding-top:1px}.quiet-note p{line-height:1.6}.text-button{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#34373d;font-size:11px;min-height:40px;padding:0;text-align:left}.profile-context{border-bottom:1px solid var(--line);padding-bottom:14px}.session-note{display:flex;gap:10px;margin-top:auto;padding-top:30px;color:#555962;font-size:10px}.session-note strong{display:block;font-size:10px;font-weight:500;color:#555962;margin-bottom:4px}.session-note div>span{display:block;line-height:1.6}.body-panel{position:relative;overflow:hidden;min-height:0;background:#fff}.subtle-button{font-size:10px;color:#555962;white-space:nowrap;padding:3px 0;min-height:28px}.subtle-button span{margin-left:4px}.body-viewport{position:absolute;inset:98px 0 126px;min-height:150px;isolation:isolate}.body-viewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:none}.body-viewport[data-mode=paint] canvas{cursor:crosshair}.body-viewport[data-mode=pose] canvas{cursor:move}.layer-switch{position:absolute;top:95px;left:27px;display:flex;align-items:center;border:1px solid #d2d5da;background:#ffffffd9;border-radius:7px;padding:3px;z-index:2}.layer-switch button{font-size:10px;padding:6px 9px;color:#555962;border-radius:4px}.layer-switch .selected{color:#34373d;background:#f4f5f6}.soon{font-size:7px;text-transform:uppercase;letter-spacing:.4px;opacity:.8;margin-left:4px}.scene-tools{position:absolute;left:25px;top:44%;transform:translateY(-20%);display:flex;flex-direction:column;align-items:center;background:#ffffffda;border:1px solid #d2d5da;border-radius:10px;padding:5px;gap:3px;z-index:3;box-shadow:0 4px 15px #34373d10}.tool{display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;min-height:46px;border-radius:6px;gap:3px;color:#555962}.tool small{font-size:8px}.tool.selected{background:var(--emphasis);color:white}.tool.compact{font-size:19px;min-height:31px}.tool-divider{width:25px;height:1px;background:#d2d5da;margin:3px}.brush-control{position:absolute;top:150px;left:26px;right:26px;z-index:3;display:flex;align-items:center;gap:10px;font-size:10px;max-width:210px;padding:8px 12px;background:#ffffffe6;border:1px solid var(--line);border-radius:7px}.brush-control input{width:85px;margin:0}.brush-control button{font-size:21px;padding:0 5px}.body-side{position:absolute;top:45%;color:#555962;font-size:11px}.body-side.left{left:29%}.body-side.right{right:29%}.view-control{position:absolute;right:22px;top:104px;display:flex;gap:3px;z-index:3}.view-control button{font-size:10px;color:#555962;padding:5px 7px;border-radius:5px}.view-control button.selected{background:#d2d5da;color:#34373d}.scene-hint{position:absolute;bottom:114px;left:20px;right:20px;display:flex;justify-content:center;align-items:center;gap:8px;font-size:9px;color:#555962;text-align:center;pointer-events:none}.hint-dot{width:4px;height:4px;background:#555962}.pose-bar{position:absolute;bottom:20px;left:26px;right:26px;border-top:1px solid #d2d5da;padding-top:12px;display:flex;align-items:center;gap:16px}.pose-caption{display:flex;flex-direction:column;align-items:center;gap:6px}.pose-caption .section-caption{font-size:8px;letter-spacing:1.2px}.pose-caption button{border:1px solid #d2d5da;border-radius:50%;width:25px;height:25px;font-size:10px;background:#ffffff80}.pose-options{display:flex;justify-content:space-around;flex:1;gap:5px}.pose-button{display:flex;flex-direction:column;align-items:center;gap:6px;color:#555962;border:1px solid transparent;border-radius:7px;padding:7px 8px;min-width:54px;font-size:8px;white-space:nowrap}.pose-button svg{width:24px;height:24px}.pose-button.selected{border-color:#9499a2;background:#ffffff72;color:#34373d}.body-pin{position:absolute;border-radius:50%;width:25px;height:25px;background:var(--pin);color:#fff;font-size:10px;border:3px solid #ffffff;box-shadow:0 2px 6px #0002;z-index:4;padding:0}.body-pin:before{content:'';position:absolute;width:18px;height:1px;background:var(--pin);left:-17px;top:14px;transform:rotate(-25deg);transform-origin:right center}.webgl-fallback{position:absolute;inset:30% 20%;font-size:12px;text-align:center}.webgl-fallback p{margin-top:10px;color:var(--muted)}.concerns-panel{container-type:inline-size;container-name:observations;min-width:0;border-left:1px solid var(--line);background:var(--paper);overflow:auto;display:flex;flex-direction:column;padding:26px 22px 15px;min-height:0}.concerns-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:23px}.concerns-heading h2{font-size:19px;margin-top:9px;display:flex;align-items:center;gap:8px}.count{display:grid;place-items:center;width:19px;height:19px;background:#f4f5f6;border-radius:50%;font-size:10px;letter-spacing:0;color:#555962}.round-button{height:29px;width:29px;border:1px solid var(--line);border-radius:50%;font-size:20px;color:#555962;padding:0;flex-shrink:0}.empty-concerns{display:flex;align-items:center;flex-direction:column;text-align:center;padding:45px 6px 35px;gap:17px}.empty-mark{width:68px;height:68px;border:1px dashed #9499a2;border-radius:50%;display:grid;place-items:center;color:#555962;position:relative}.empty-mark svg{width:26px;height:26px}.empty-mark>span{position:absolute;bottom:0;right:0;background:#f4f5f6;border:1px solid #9499a2;width:21px;height:21px;border-radius:50%;font-size:15px}.empty-concerns h3{font-size:17px}.empty-concerns p{font-size:12px;color:#555962;max-width:230px}.empty-concerns .primary-button{font-size:11px;padding:12px 13px}.empty-concerns .small{font-size:10px}.concern-list{display:grid;gap:12px;margin-bottom:16px}
.concern-card{min-width:0;border:1px solid var(--line);border-radius:9px;overflow:clip}.concern-heading{margin:0;font:inherit}.concern-card:has([aria-expanded=true]){border-color:color-mix(in srgb,var(--concern) 60%,var(--line))}.concern-tab{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;text-align:left;border:0;border-radius:0;padding:14px;background:#ffffff}.concern-tab:focus-visible{outline-offset:-3px}.concern-title{flex:1;min-width:0;overflow-wrap:anywhere}.concern-tab.active{background:color-mix(in srgb,var(--concern) 7%,#ffffff);border-color:color-mix(in srgb,var(--concern) 35%,#ffffff)}.concern-number{background:var(--concern);border-radius:50%;color:white;font-size:10px;width:22px;height:22px;display:grid;place-items:center;flex-shrink:0}.concern-tab strong{font-weight:500;font-size:12px;display:block}.concern-tab small{display:block;font-size:9px;color:#555962;margin-top:3px}.concern-chevron{margin-left:auto;color:#555962;display:flex;flex-shrink:0}.concern-chevron svg{width:18px;height:18px;transform:rotate(-90deg)}.concern-tab[aria-expanded=true] .concern-chevron svg{transform:rotate(0)}.concern-editor{display:grid;gap:18px;min-width:0;padding:18px 16px 20px;border-top:1px solid var(--line)}.editor-caption{display:flex;justify-content:space-between;align-items:center;color:#555962;font-size:8px;letter-spacing:1px}.editor-caption button{color:#555962;text-decoration:underline;font-size:9px;padding:4px 0;min-height:25px}.field-hint{color:#555962;font-size:9px;font-weight:400;line-height:1.5;display:block}.location-field input{min-height:34px;padding:8px 10px;background:#ffffff}.severity-field{margin-top:3px}.severity-field strong{font-size:20px;font-weight:400;color:var(--concern)}.severity-field strong span{font-size:10px;color:#555962}.severity-field input{background:linear-gradient(90deg,#d2d5da,#555962,#555962)}.severity-field input::-webkit-slider-thumb{background:var(--concern);box-shadow:0 0 0 1px var(--concern)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-row select{font-size:10px;padding-left:8px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{padding:6px 10px;border:1px solid #d2d5da;border-radius:20px;font-size:9px;color:#555962;min-height:29px}.chip.selected{border-color:#9499a2;background:#f4f5f6;color:#34373d}.observation-note{display:flex;gap:8px;align-items:center;font-size:10px;color:#555962}.observation-note svg{width:18px}.observation-note button{color:#34373d;text-decoration:underline;padding:0;font-size:10px}.attachment-button{display:flex;align-items:center;gap:10px;border:1px dashed #d2d5da;border-radius:7px;padding:10px;color:#555962;font-size:10px}.attachment-button svg{width:15px;height:15px}.attachment-button>span:last-child{margin-left:auto}.concern-actions{margin-top:auto;display:grid;gap:6px;padding-top:16px;border-top:1px solid var(--line)}.outline-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 15px;border:1px solid #d2d5da;border-radius:7px;color:#555962;font-size:11px}.outline-button svg{width:16px;height:16px}.concern-actions .text-button{font-size:10px;min-height:34px}.bottombar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 28px;background:var(--paper);border-top:1px solid var(--line)}.footer-status{font-size:10px;color:#555962;display:flex;align-items:center;gap:9px}.prototype-tag{font-size:7px;letter-spacing:1px;border:1px solid #d2d5da;border-radius:4px;padding:3px 5px;margin-left:10px}.primary-button{display:flex;align-items:center;justify-content:center;gap:22px;background:var(--emphasis);border-radius:7px;padding:12px 19px;color:#ffffff;font-size:11px;font-weight:500;min-height:42px;white-space:nowrap}.primary-button>span{font-size:15px}.primary-button svg{width:17px;height:17px}.mobile-tabs{display:none}.secondary-page{overflow:auto;padding:55px 5%;display:grid;grid-template-columns:250px minmax(0,1fr);gap:7%;background:#f4f5f6;align-content:start}.page-intro h2{font-size:36px;line-height:1.25;margin:18px 0;letter-spacing:-1.7px}.page-intro>p{color:#555962;font-size:12px;margin-bottom:32px}.context-summary,.review-badge{display:flex;gap:12px;font-size:10px;color:#555962;line-height:1.8;border-top:1px solid #d2d5da;padding:25px 0}.context-summary strong,.review-badge strong{color:#34373d;font-weight:500}.context-summary svg,.review-badge svg{width:24px;height:24px}.context-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.context-card{background:#ffffff;border:1px solid var(--line);border-radius:10px;padding:25px;align-self:start}.context-card h3{margin:12px 0 25px}.context-card>.field{margin-top:20px}.context-card>.muted{font-size:12px;margin-top:-10px}.upload-zone{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;border:1px dashed #9499a2;border-radius:8px;background:#ffffff;padding:35px 15px;gap:12px;margin:26px 0 10px;width:100%}.upload-zone svg{width:26px;height:26px;color:#555962}.upload-zone strong{font-size:12px;font-weight:500;color:#555962}.upload-zone span{font-size:10px;color:#555962}.file-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:6px;padding:12px;margin:18px 0}.file-row strong{font-size:10px;display:block}.file-row span{font-size:8px;color:#555962;display:block}.file-row button{margin-left:auto}.file-row svg{color:#555962}.review-column{display:grid;gap:20px;max-width:800px}.review-report{border:1px solid var(--line);background:#ffffff;border-radius:9px;padding:30px}.report-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.report-stamp{font-size:8px;letter-spacing:1px;color:#555962;border:1px solid #d2d5da;padding:3px 7px;border-radius:4px}.review-report h3{font-size:24px}.report-profile{font-size:11px;color:#555962;margin-top:10px;padding-bottom:25px;border-bottom:1px solid var(--line)}.report-profile span{display:block;font-size:9px;color:#555962;margin-top:4px}.report-concern{display:flex;gap:14px;margin:25px 0}.report-concern p{font-size:12px;color:#555962;margin-top:7px}.report-background{margin:20px 0;font-size:11px;color:#555962}.report-background p{margin-top:5px}.report-bottom{border-top:1px solid var(--line);padding-top:20px;display:flex;gap:8px;font-size:9px;color:#555962}.review-empty{padding:25px 0;color:#555962;font-size:12px}.analysis-card{display:flex;gap:20px;background:#d2d5da;border-radius:9px;padding:25px}.analysis-symbol{font-size:32px;color:#555962}.analysis-card p{font-size:12px;color:#555962;margin:10px 0 20px}.analysis-card .field-hint{margin-top:10px}.preview-result{padding:15px;border:1px solid #9499a2;border-radius:8px;font-size:12px;margin-bottom:20px}.preview-result p{margin-bottom:0}dialog{border:1px solid #d2d5da;border-radius:15px;background:#ffffff;color:var(--ink);width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:32px;box-shadow:0 25px 100px #34373d29}dialog::backdrop{background:#34373d55;backdrop-filter:blur(4px)}#modalContent{position:relative}.modal-close{position:absolute;right:-14px;top:-19px;font-size:25px;color:#555962;width:40px;height:40px}dialog h2{font-size:27px;margin:15px 0;letter-spacing:-1px}dialog .muted{font-size:12px;margin-bottom:25px}dialog .field{margin-top:18px}dialog .primary-button{width:100%;margin-top:16px}dialog .quiet-note{padding-bottom:8px}.region-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.region-option{display:flex;justify-content:space-between;align-items:center;text-align:left;border:1px solid var(--line);border-radius:6px;font-size:11px;padding:12px;min-height:44px}.region-option:hover{background:#f4f5f6}.region-option span{color:#555962}.provider-options{display:grid;gap:8px}.provider-option{display:flex;align-items:center;gap:12px;padding:11px 15px;border:1px solid var(--line);border-radius:8px;font-size:12px}.provider-logo{font-size:23px;width:25px;text-align:center}.provider-option>span:last-child{margin-left:auto;font-size:10px;color:#555962}.provider-option.selected{border-color:#555962;background:#f4f5f6}.provider-option.selected>span:last-child{color:#555962}.optional{font-size:9px;color:#555962;font-weight:400}.host-capability{font-size:10px;color:#555962;display:flex;gap:6px;align-items:center;margin:8px 0}.sample-document{display:flex;flex-direction:column;align-items:center;border:1px dashed #d2d5da;border-radius:8px;padding:35px 10px;gap:15px}.sample-document svg{width:38px;height:38px;color:#555962}.sample-document strong{font-size:13px;font-weight:500}.sample-document span{font-size:10px;color:#555962}.toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);max-width:min(90vw,500px);background:#34373def;color:#f4f5f6;font-size:11px;line-height:1.6;padding:13px 20px;border-radius:8px;z-index:20;box-shadow:0 5px 25px #34373d22;text-align:center;backdrop-filter:blur(10px)}.minimum-notice{display:none}
@media(min-width:1500px){.profile-panel,.concerns-panel{padding:35px 30px}.profile-panel h2,.concerns-heading h2{font-size:23px}.profile-fields{gap:26px}.concern-editor{gap:22px}.body-viewport{inset:90px 0 125px}.scene-tools{left:40px}}
@media(max-width:1100px){.profile-panel{padding:24px 18px}.concerns-panel{padding:24px 18px 15px}.topbar{padding:0 20px}.intro div>span{display:none}.intro strong{max-width:120px;font-size:12px}.steps{gap:14px}.connection-button{font-size:10px;padding:6px 8px}.layer-switch{top:113px;left:20px}.view-control{top:auto;bottom:145px;right:20px}.scene-tools{left:15px}.pose-bar{left:15px;right:15px;gap:7px}.pose-caption{display:none}.pose-button{padding:6px;min-width:44px;font-size:7px}.secondary-page{padding:35px 30px;grid-template-columns:210px 1fr;gap:30px}.context-grid{grid-template-columns:1fr}.page-intro h2{font-size:30px}.context-card{padding:23px}.prototype-tag{display:none}}
@media(max-width:760px){.app-shell{grid-template-rows:64px 44px minmax(0,1fr) 66px}.topbar{padding:0 16px;gap:12px}.intro{gap:8px}.intro strong{font-size:12px;max-width:110px}.mini-logo{width:29px;height:29px;font-size:24px}.steps{gap:13px;margin-left:auto}.step{font-size:0;gap:0}.step>span{font-size:10px;width:24px;height:24px}.connection-button{width:34px;min-height:34px;justify-content:center;padding:5px}.connection-button>span:nth-child(2){display:none}.connection-button .status-dot{width:5px;height:5px}.mobile-tabs{display:flex;justify-content:center;background:#ffffff;border-bottom:1px solid var(--line);gap:20px;padding:0 14px}.mobile-tabs button{font-size:11px;color:#555962;min-width:75px;min-height:44px;position:relative;padding:0 8px}.mobile-tabs button.active{color:#34373d}.mobile-tabs button.active:after{content:'';height:2px;background:#34373d;position:absolute;bottom:0;left:10px;right:10px}.mobile-tabs button span{font-size:9px;margin-left:4px;background:#f4f5f6;padding:1px 4px;border-radius:10px}.map-page{display:block;min-height:0;position:relative;overflow:hidden}.map-page>aside,.map-page>.body-panel{height:100%;border:0}.map-page[data-panel=body]>.profile-panel,.map-page[data-panel=body]>.concerns-panel,.map-page[data-panel=profile]>.body-panel,.map-page[data-panel=profile]>.concerns-panel,.map-page[data-panel=concerns]>.profile-panel,.map-page[data-panel=concerns]>.body-panel{display:none}.body-panel{min-height:0}.body-viewport{inset:85px 0 113px}.layer-switch{top:89px;left:22px}.scene-tools{top:42%;left:18px;transform:none}.tool{width:40px;min-height:44px}.tool.compact{min-height:38px}.view-control{top:94px;bottom:auto;right:17px}.view-control button{font-size:9px;min-height:32px}.pose-bar{bottom:16px;left:18px;right:18px;padding-top:10px}.pose-button{min-width:50px;min-height:56px;padding:5px;font-size:8px}.pose-caption{display:flex}.pose-caption>.section-caption{display:none}.scene-hint{bottom:93px;font-size:8px;left:10px;right:10px}.brush-control{top:133px;left:18px}.body-side.left{left:27%}.body-side.right{right:27%}.bottombar{padding:0 16px;gap:8px}.footer-status{font-size:8px;gap:6px;max-width:135px}.footer-status .status-dot{display:none}.bottombar .primary-button{padding:12px 13px;font-size:10px;gap:14px;min-height:44px}.profile-panel,.concerns-panel{padding:25px}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:25px 16px}.profile-fields .range-field{grid-column:1/-1}.profile-fields input,.profile-fields select{min-height:44px}.profile-fields input[type=range]{min-height:0}.session-note{margin-top:10px}.concerns-heading{margin-bottom:20px}.concerns-panel h2{font-size:23px}.concern-tab{min-height:56px}.concern-editor{gap:22px}.concern-editor .field input,.concern-editor .field select{min-height:44px}.concern-editor .field input[type=range]{min-height:0}.chip{min-height:40px;padding:9px 13px;font-size:11px}.text-button{min-height:44px}.concern-actions .text-button{min-height:44px}.outline-button{min-height:44px}.round-button{width:44px;height:44px}.editor-caption button{min-height:34px}.secondary-page{grid-row:2/4;padding:28px 22px;display:block}.page-intro h2{font-size:32px;margin-top:12px}.page-intro>p{margin-bottom:18px}.context-summary,.review-badge{padding:15px 0;margin-bottom:12px}.context-grid{gap:17px}.context-card{padding:22px}.review-column{margin-top:25px}.review-report{padding:23px}.review-report h3{font-size:22px}.analysis-card{padding:23px;gap:13px}.analysis-card .primary-button{font-size:10px;padding:12px}.analysis-card .analysis-symbol{font-size:26px}.page-hidden{display:none}.toast{bottom:80px;font-size:10px;width:calc(100% - 40px)}dialog{padding:28px 22px}.region-option{font-size:10px}.field-row select{font-size:11px}.empty-concerns{padding:35px 10px}.empty-concerns p{max-width:250px}}
@media(max-width:400px){.steps{gap:9px}.intro strong{font-size:11px;max-width:95px}.pose-caption{display:none}.pose-button{min-width:46px}.layer-switch{left:18px}.layer-switch button{padding:5px 7px;font-size:9px}.soon{font-size:6px}.scene-tools{left:13px}.tool{width:35px}.profile-panel,.concerns-panel{padding:22px}.bottombar{padding:0 12px}.footer-status{max-width:92px}.primary-button{gap:12px}.scene-hint{font-size:7px}}
@media(max-height:650px) and (min-width:761px){.app-shell{grid-template-rows:65px minmax(0,1fr) 62px}.body-viewport{inset:65px 0 95px}.layer-switch{top:87px}.scene-tools{top:34%;transform:none;padding:3px;gap:2px}.tool{min-height:37px;width:37px}.tool small{font-size:7px}.tool.compact{min-height:25px}.pose-bar{bottom:12px;padding-top:8px}.pose-button{padding:5px;min-width:43px;font-size:7px}.pose-button svg{width:21px;height:21px}.scene-hint{bottom:88px;font-size:8px}.view-control{bottom:114px}.brush-control{top:125px}.profile-panel,.concerns-panel{padding-top:20px}.profile-fields{margin-top:20px}.empty-concerns{padding-top:20px}.secondary-page{padding-top:30px}}
@media(max-height:600px) and (max-width:760px){.app-shell{grid-template-rows:54px 42px minmax(0,1fr) 60px}.section-caption{font-size:8px}.body-viewport{inset:55px 0 85px}.layer-switch{top:72px}.scene-tools{top:34%;gap:0;padding:3px}.tool{min-height:35px;width:34px}.tool.compact{min-height:28px}.tool small{font-size:7px}.tool svg{width:18px;height:18px}.view-control{top:73px}.pose-bar{bottom:9px;padding-top:6px}.pose-button{min-height:46px;font-size:7px;gap:3px}.pose-button svg{height:20px}.scene-hint{bottom:72px}.brush-control{top:110px}.mobile-tabs button{min-height:42px}.bottombar .primary-button{min-height:40px}}
@media(max-height:440px) and (min-width:600px){.app-shell{grid-template-rows:54px minmax(0,1fr) 55px}.mobile-tabs{display:none}.map-page{display:grid;grid-template-columns:1fr 280px}.map-page>.profile-panel{display:none!important}.map-page>.body-panel,.map-page>.concerns-panel{display:block!important}.body-viewport{inset:35px 0 64px}.layer-switch{left:auto;right:15px;top:14px}.scene-tools{top:66px;left:12px;gap:0;padding:2px}.tool{min-height:33px;width:32px}.tool.compact{display:none}.tool-divider{display:none}.tool small{font-size:6px}.view-control{top:auto;bottom:74px;right:12px}.pose-bar{bottom:7px;padding-top:5px}.pose-button{min-height:37px;padding:3px;font-size:6px}.pose-button svg{width:17px;height:17px}.scene-hint{bottom:60px;font-size:7px}.pose-caption{display:none}.concerns-panel{padding:18px}.concerns-heading h2{font-size:18px}.brush-control{top:55px;left:60px;max-width:175px;padding:4px 8px}.secondary-page{grid-row:auto;display:grid;grid-template-columns:180px 1fr;gap:25px;padding:25px}.page-intro h2{font-size:25px}.bottombar .primary-button{min-height:38px}.bottombar{padding:0 20px}}
@media(max-width:279px),(max-height:279px){.app-shell{display:none}.minimum-notice{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:15px;text-align:center;gap:9px}.minimum-notice strong{font-size:14px;font-weight:500}.minimum-notice p{font-size:10px;color:#555962;max-width:210px}.minimum-notice .mini-logo{width:26px;height:26px;font-size:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Keep brush controls off the anatomy, including compact portrait frames. */
.brush-control{left:auto;right:19px;top:42%;width:44px;max-width:none;flex-direction:column;gap:13px;padding:10px 5px}
.brush-control label{font-size:8px}.brush-control input{writing-mode:vertical-lr;direction:rtl;width:3px;height:65px;margin:0}.brush-control button{padding:0;width:32px;min-height:28px}
@media(max-height:440px) and (min-width:600px){.brush-control{top:65px;left:auto;right:15px;max-width:none}.brush-control input{height:40px}}
@media(pointer:coarse){.tool{width:44px;min-height:44px}.tool.compact{min-height:30px}.tool small{font-size:8px}.view-control button{min-height:40px}.pose-button{min-height:44px}}

/* Connections, deliberate draft saves and AI review continue the consultation palette. */
.check-field { display:flex; align-items:flex-start; gap:9px; font-size:11px; line-height:1.5; font-weight:400; }
.check-field input[type=checkbox] { width:17px; height:17px; min-height:17px; flex:0 0 17px; accent-color:var(--emphasis); margin:1px 0; padding:0; }
.range-field .check-field { margin-top:8px; justify-content:flex-start; font-size:10px; color:#555962; }
.connection-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:20px 0; }
.connection-tabs .chip { min-height:40px; font-size:11px; overflow-wrap:anywhere; }
.connections-view .field { margin-top:16px; }
.connections-view .field input { font-size:13px; }
.connection-key-actions,.dialog-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:14px 0; }
.connection-key-actions { justify-content:space-between; margin-top:0; }
.dialog-actions .primary-button,.dialog-actions .outline-button { flex:1 1 150px; white-space:normal; }
.bridge-details,.request-details,.intake-details { border:1px solid var(--line); border-radius:8px; padding:14px; margin:16px 0; font-size:12px; }
summary { cursor:pointer; min-height:24px; font-weight:500; }
.bridge-details>p { margin:10px 0; }
.intake-details { margin:0; padding:12px; }
.intake-details .field { margin-top:15px; }
.connections-view .check-field { margin:20px 0 12px; }
.connection-status { padding:12px; border-radius:7px; background:var(--emphasis-soft); color:#34373d; font-size:12px; overflow-wrap:anywhere; }
.connections-view .host-capability { color:#555962; margin-bottom:12px; }
.connections-view .field-hint,.request-details,.draft-status~.field-hint { color:#555962; font-size:10px; }
.request-route { display:grid; gap:8px; margin:20px 0; padding:16px; background:var(--emphasis-soft); border-radius:8px; font-size:11px; overflow-wrap:anywhere; }
.request-route code { font-size:10px; white-space:normal; }
.request-details pre { font:11px/1.7 ui-monospace,monospace; white-space:pre-wrap; overflow-wrap:anywhere; max-height:280px; overflow:auto; margin:14px 0 0; user-select:text; }
.inline-error,.stale-report { border:1px solid #555962; background:#f4f5f6; color:#34373d; font-size:12px; line-height:1.6; padding:13px; border-radius:7px; margin:14px 0; }
.draft-status { background:var(--emphasis-soft); padding:16px; border-radius:8px; font-size:12px; }
.draft-status span { display:block; margin-top:5px; }
.ai-report { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:30px; margin-top:20px; font-size:13px; overflow-wrap:anywhere; }
.ai-report h3 { margin:20px 0 12px; font-size:23px; }
.ai-report h4 { margin:22px 0 10px; }
.ai-report p { white-space:pre-wrap; }
.ai-report li { margin:8px 0; }
.ai-report ul { padding-left:20px; }
.possible-explanation { margin:14px 0; padding:14px 0; border-bottom:1px solid var(--line); }
.possible-explanation p { margin-top:7px; }
.urgency-note { padding:16px; margin:22px 0; background:#f4f5f6; border-left:3px solid #555962; }
.urgency-note[data-urgency=urgent],.urgency-note[data-urgency=emergency] { background:#f4f5f6; border-color:#34373d; }
.urgency-note p { margin-top:8px; }
.analysis-card>div:last-child { min-width:0; }
.analysis-card .field-hint { margin:10px 0; color:#34373d; }
.analysis-card .primary-button { white-space:normal; }
.session-note #draftsButton { font-size:10px; }
@media(max-width:760px) {
  dialog { max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); }
  .connections-view .provider-options { gap:6px; }
  .connections-view .provider-option { padding:10px 8px; font-size:11px; }
  .connections-view .field input { min-height:44px; }
  .ai-report { padding:22px; }
  .connection-tabs .chip { min-height:44px; }
  .check-field { min-height:34px; }
}

/* Keep persistence feedback reachable on every step, including narrow frames. */
.footer-status{flex-direction:column;align-items:flex-start;gap:0}
.footer-status>.status-dot{display:none}
.footer-status #sessionStatus{min-height:32px;font-size:11px;line-height:1.2}

/* High-contrast consultation UI: neutral surfaces, orange emphasis. */
:root{--line:#b9bec6;--muted:#555962;--bg:#fff;--paper:#fff;--ink:#202124;--emphasis:#c43c20;--emphasis-soft:#fff0eb}
body .section-caption,body .field-hint,body .quiet-note,body .range-ends,body .scene-hint,body .body-side,body .session-note,body .optional{color:var(--muted)}
body .body-panel,body .secondary-page{background:#fff}
button:focus-visible,input:focus,select:focus,textarea:focus{outline:2px solid var(--emphasis);outline-offset:3px}
.text-button,.step.active,.mobile-tabs button.active,.observation-note button{color:var(--emphasis)}
.mobile-tabs button.active:after{background:var(--emphasis)}
.chip.selected,.provider-option.selected,.view-control button.selected,.pose-button.selected{background:var(--emphasis-soft);border-color:var(--emphasis);color:#852614}
.analysis-card,.request-route{background:#f4f5f6;border:1px solid var(--line)}
.analysis-card p,.connection-status,.host-capability,.report-concern p,.report-background{color:var(--ink)}
.inline-error,.stale-report{color:#852614;background:#fff0eb;border-color:#c43c20}
.urgency-note{background:#f4f5f6;border-color:#555962}
.urgency-note[data-urgency=urgent],.urgency-note[data-urgency=emergency]{background:#fff0eb;border-color:#c43c20}
.body-side{font-weight:600}.field-hint{font-size:10px}.scene-hint{font-size:10px}
#focusPelvis{font-size:11px}.profile-fields>label:has(#anatomy){grid-column:1/-1}
.inspection-toolbar{position:absolute;top:12px;left:24px;right:24px;z-index:4;display:flex;gap:6px;align-items:stretch}
.inspection-toolbar .layer-switch{position:static;flex-shrink:0}
.focus-button,.whole-view{min-height:44px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:11px;padding:6px 10px}
.focus-button{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;color:var(--emphasis);flex:1;max-width:220px}
.whole-view{display:flex;align-items:center;gap:5px;flex-shrink:0}.whole-view>span{font-size:10px}
.focus-results{max-height:38vh;overflow:auto;border:1px solid var(--line);border-radius:8px}
.focus-results>p{padding:16px}.focus-option{width:100%;display:flex;justify-content:space-between;gap:12px;text-align:left;padding:12px 14px;min-height:44px;font-size:13px;border-bottom:1px solid var(--line)}
.focus-option:last-child{border-bottom:0}.focus-option:hover{background:#fff1eb}.focus-option>span{color:var(--emphasis)}
@media(min-width:1600px){.inspection-toolbar{left:40px;right:40px}}
@media(max-width:1100px){.whole-view>span{display:none}.whole-view{min-width:44px}.inspection-toolbar{left:15px;right:15px}.inspection-toolbar .layer-switch{padding:0 4px}.inspection-toolbar .layer-switch>label{display:none}.inspection-toolbar .layer-switch select{max-width:110px}}
@media(max-width:760px){.inspection-toolbar{left:18px;right:18px}.view-control{top:auto;bottom:118px}.focus-button{font-size:10px}.focus-results{max-height:32vh}}
@media(max-height:600px) and (max-width:760px){.view-control{top:auto;bottom:94px}.brush-control{top:74px}}
@media(max-height:440px) and (min-width:600px){.inspection-toolbar{left:12px;right:12px}.view-control{bottom:74px}.brush-control{top:74px;left:60px}}
.evidence-gallery{display:grid;gap:16px;margin:20px 0}.evidence-gallery figure{margin:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.evidence-gallery img{display:block;width:100%;height:auto;background:#fff}.evidence-gallery figcaption{padding:10px;font-size:12px;overflow-wrap:anywhere}
.evidence-status{font-size:12px;padding:12px;background:#f4f5f6;border-left:3px solid var(--emphasis);margin:12px 0}

/* Fit paired fields to the sidebar itself, including resized host frames. */
@container observations (max-width:260px){.concern-editor .field-row{grid-template-columns:1fr}}

/* The native selector keeps layer controls compact and keyboard/touch accessible. */
.layer-switch {gap:5px;padding:0 5px 0 10px;max-width:190px;background:#fff}
.layer-switch label {font-size:10px;color:var(--muted)}
.layer-switch select {border:0;box-shadow:none;min-height:38px;width:auto;max-width:118px;padding:7px 19px 7px 4px;font-size:11px;background:transparent;color:var(--ink)}
.layer-switch button {padding:0;width:24px;min-height:38px;font-size:17px;color:var(--emphasis)}
@media(pointer:coarse){.layer-switch select,.layer-switch button{min-height:44px}.layer-switch button{width:30px}}
@media(max-width:400px){.layer-switch{left:14px;max-width:175px;gap:2px;padding-left:6px}.layer-switch label{font-size:9px}.layer-switch select{max-width:104px;font-size:10px}.layer-switch button{width:23px}.view-control{right:10px;gap:0}.view-control button{padding-inline:5px}}
@media(max-width:1100px){.layer-switch{max-width:136px;padding:0 4px;gap:2px}.layer-switch label{display:none}.layer-switch select{max-width:90px;padding-left:3px}.layer-switch button{font-size:17px}}

/* Keep orbit presets clear of the focus toolbar on wide frames too. */
.view-control{top:auto;bottom:145px}
@media(max-height:650px){.view-control{bottom:114px}}
@media(max-width:760px){.view-control{bottom:118px}}
@media(max-height:600px) and (max-width:760px){.view-control{bottom:94px}}
@media(max-height:440px) and (min-width:600px){.view-control{bottom:74px}}
.focus-button>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.focus-button>small{display:block;font-size:9px;color:var(--muted)}
/* Reserve space above the canvas so close-ups cannot sit behind the toolbar. */
.body-viewport{inset:158px 0 126px;min-height:0}

@media(max-height:650px) and (min-width:761px){.body-viewport{inset:137px 0 95px}}
@media(max-width:760px){.body-viewport{inset:140px 0 113px}}
@media(max-height:600px) and (max-width:760px){.body-viewport{inset:120px 0 85px}}
@media(max-height:440px) and (min-width:600px){.body-viewport{inset:100px 0 64px}}

/* Finger editing keeps a live canvas above the controls; short landscape puts
   the editor alongside it. The rest of the body workspace resumes on Close. */
.pose-options .pose-button{min-width:0;flex:1;padding-inline:3px}
.jaw-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px}.jaw-heading button{min-width:44px;min-height:44px;font-size:22px}.jaw-controls .finger-bends{display:block}.jaw-controls .hand-actions button{min-width:44px}.jaw-controls #jawScope{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.hand-controls{position:absolute;bottom:10px;left:18px;right:18px;z-index:5;background:#fff;border-top:1px solid var(--line);padding-top:8px}
.hand-heading{display:flex;gap:8px;align-items:end}.hand-heading label{flex:1;min-width:0;font-size:10px}.hand-heading label>span{display:block;color:var(--muted)}
.hand-heading select{min-height:44px;font-size:12px;padding:6px}.hand-heading>button{width:44px;height:44px;flex-shrink:0;font-size:24px;border:1px solid var(--line);border-radius:7px}
.finger-bends{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:6px}
.finger-bends label{display:grid;grid-template-columns:1fr auto;align-items:center;font-size:11px}.finger-bends output{grid-column:2;grid-row:1;font-size:10px;color:var(--muted)}
.finger-bends input[type=range]{grid-column:1/-1;width:100%;height:32px;min-height:32px;margin:0;background:linear-gradient(var(--line),var(--line)) center/100% 3px no-repeat}
.finger-bends input[type=range]::-webkit-slider-thumb{width:20px;height:20px}
.hand-actions{display:flex;gap:18px}.hand-actions button{min-height:38px;font-size:11px;color:var(--emphasis)}
.hand-controls p{font-size:10px;color:var(--muted);line-height:1.4}.hand-controls #handScope{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}.hand-posing .pose-bar,.hand-posing .scene-hint,.hand-posing .body-side{display:none}
.hand-posing .inspection-toolbar{top:10px}.hand-posing .body-viewport{inset:64px 0 215px}
.hand-posing .scene-tools{top:72px;transform:none;left:12px}.hand-posing .tool.compact,.hand-posing .tool-divider,.hand-posing button[data-mode=pose]{display:none}
.hand-posing .brush-control{top:74px;right:12px;left:auto}.hand-posing .view-control{bottom:219px;right:12px}
@media(max-width:400px){.hand-controls{left:14px;right:14px}.hand-heading{gap:5px}.hand-heading select{font-size:11px}.finger-bends{gap:10px}.hand-posing .scene-tools{left:5px}.hand-posing .brush-control{right:5px}.hand-posing .view-control{bottom:215px}}
@media(pointer:coarse){.finger-bends input[type=range]{height:44px;min-height:44px}.hand-actions button{min-height:44px}.hand-posing .body-viewport{bottom:232px}.hand-posing .view-control{bottom:234px}}
@media(max-height:440px) and (min-width:600px){
  .map-page:has(.hand-posing){grid-template-columns:1fr}.map-page:has(.hand-posing)>.concerns-panel{display:none!important}
  .hand-posing .hand-controls{top:10px;bottom:10px;left:auto;right:14px;width:285px;overflow:auto;border:0;padding-top:0}
  .hand-posing .inspection-toolbar{left:14px;right:320px}.hand-posing .body-viewport{inset:64px 315px 10px 0}
  .hand-posing .view-control{bottom:12px;right:322px}.hand-posing .brush-control{right:322px}.hand-posing .scene-tools{top:70px}
}

/* Camera focus and anatomy visibility are independent controls. */
.visibility-button{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:6px 9px;font-size:11px}
.visibility-filtered{color:var(--emphasis);border-color:var(--emphasis);background:#fff1eb}
.focus-option[aria-pressed=true]{background:#fff1eb;color:var(--emphasis);box-shadow:inset 3px 0 var(--emphasis)}
.focus-option[aria-pressed=true]>span{font-size:0}.focus-option[aria-pressed=true]>span:after{content:'●';font-size:13px}
.inspection-action{position:sticky;bottom:-32px;background:#fff;padding:12px 0 2px;border-top:1px solid var(--line)}
.inspection-action p{font-size:12px;line-height:1.5}.inspection-action .primary-button{margin-top:8px}
.visibility-actions{display:flex;gap:10px}.visibility-actions button{flex:1}
.visibility-tree{max-height:40vh;overflow:auto;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}
.visibility-tree ul{list-style:none;margin:0;padding:0}.visibility-tree ul ul{margin-left:12px;border-left:1px solid var(--line)}
.visibility-tree>p{padding:12px;font-size:12px}.visibility-row{display:flex;align-items:center;border-bottom:1px solid #eef0f2;min-height:44px}
.visibility-row label{display:flex;align-items:center;gap:9px;min-height:44px;flex:1;cursor:pointer;padding:6px 8px 6px 0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.visibility-row input{appearance:auto;width:18px;height:18px;min-height:18px;flex-shrink:0;margin:0;padding:0;accent-color:var(--emphasis)}
.visibility-expand{width:36px;min-height:44px;flex-shrink:0;font-size:20px;color:var(--muted)}.visibility-indent{width:14px;flex-shrink:0}
@media(max-width:1500px){.visibility-button>span{display:none}}
@media(max-width:400px){.inspection-toolbar{gap:4px;left:12px;right:12px}.inspection-toolbar .layer-switch{max-width:106px}.inspection-toolbar .layer-switch select{max-width:76px}.inspection-toolbar .focus-button{padding-inline:7px}.visibility-button{padding-inline:7px}}
@media(max-height:600px){.focus-results{max-height:28vh}.visibility-tree{max-height:32vh}}
@media(pointer:coarse){.visibility-expand{width:44px}.visibility-tree ul ul{margin-left:8px}}

/* One anatomy browser beside the canvas, with independent visibility and focus. */
.body-panel{container-type:inline-size;container-name:bodyworkspace;--scene-top:68px;--scene-bottom:126px}
.body-viewport{inset:var(--scene-top) 0 var(--scene-bottom)}
#anatomyToggle{margin-left:auto;white-space:nowrap;color:var(--ink)}
#anatomyToggle[aria-expanded=true]{border-color:var(--emphasis);color:var(--emphasis);background:var(--emphasis-soft)}
.anatomy-panel{position:absolute;z-index:7;top:var(--scene-top);bottom:var(--scene-bottom);right:12px;width:244px;max-width:calc(100% - 24px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 5px 20px #20212412;overflow:hidden}
.anatomy-panel[hidden]{display:none}.anatomy-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.anatomy-help{font-size:11px;line-height:1.5;padding:10px 12px;color:var(--muted)}
.anatomy-panel .field{margin:0;padding:0 8px}.anatomy-panel input[type=search]{font-size:12px;min-height:44px;padding:8px}
.anatomy-actions{display:flex;padding:0 5px}.anatomy-actions button{min-height:44px;flex:1;font-size:11px;color:var(--emphasis)}
.anatomy-panel .visibility-tree{max-height:none;border:0;border-radius:0;margin:0;overflow:visible}
.anatomy-panel .visibility-tree ul ul{margin-left:7px}
.anatomy-panel .visibility-expand{width:28px}.anatomy-panel .visibility-indent{width:8px}
.anatomy-panel .anatomy-check{flex:0 0 34px;padding:0;justify-content:center;min-height:44px}
.anatomy-name{flex:1;min-width:0;min-height:44px;text-align:left;padding:5px 8px 5px 4px;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.anatomy-name[aria-pressed=true]{background:var(--emphasis-soft);color:var(--emphasis);box-shadow:inset 3px 0 var(--emphasis)}
.anatomy-footer{display:flex;gap:8px;align-items:center;padding:8px;border-top:1px solid var(--line);background:#fff;flex-shrink:0}
.anatomy-footer>span{flex:1;min-width:0;font-size:11px;line-height:1.4;max-height:46px;overflow:auto}
.anatomy-footer .primary-button{width:auto;min-height:44px;padding:8px 14px;font-size:12px;margin:0}
@container bodyworkspace (min-width:680px){.anatomy-open .body-viewport{right:264px}.anatomy-open .view-control{right:276px}.anatomy-open .body-side.right{right:280px}}
@container bodyworkspace (max-width:679px){.anatomy-panel{bottom:12px;box-shadow:-8px 0 25px #20212418}}
@media(max-height:650px) and (min-width:761px){.body-panel{--scene-bottom:95px}}
@media(max-width:760px){.body-panel{--scene-bottom:113px}}
@media(max-height:600px) and (max-width:760px){.body-panel{--scene-bottom:85px}}
@media(max-height:440px) and (min-width:600px){.body-panel{--scene-bottom:64px}}
.body-panel.hand-posing{--scene-top:64px;--scene-bottom:215px}.hand-posing .body-viewport{inset:var(--scene-top) 0 var(--scene-bottom)}
.hand-posing button[data-mode=pose]{display:flex}
@media(pointer:coarse){.body-panel.hand-posing{--scene-bottom:232px}.anatomy-panel .anatomy-check{flex-basis:44px}.anatomy-panel .visibility-expand{width:44px}}
@container bodyworkspace (min-width:680px){.hand-posing.anatomy-open .body-viewport{right:264px}}
@media(max-height:440px) and (min-width:600px){
 .hand-posing .body-viewport{inset:64px 315px 10px 0}.hand-posing .anatomy-panel{right:320px;bottom:10px;max-width:calc(100% - 340px)}
 .hand-posing.anatomy-open .body-viewport{right:315px}
}
.pose-handle{position:absolute;z-index:3;width:34px;height:34px;min-height:0;transform:translate(-50%,-50%);display:grid;place-items:center;border:0;background:transparent;padding:0;touch-action:none;cursor:grab;overflow:visible;border-radius:50%}
.pose-handle[hidden]{display:none}.pose-handle:active{cursor:grabbing}
.handle-ball{display:block;width:13px;height:13px;border:1px solid #762410;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffd8c3 0%,#dc5834 38%,#a42c12 75%);box-shadow:0 0 0 2px #fff,0 2px 5px #0005;pointer-events:none}
.pose-handle[aria-pressed=true] .handle-ball{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--emphasis)}
.handle-label{display:none;position:absolute;bottom:32px;left:50%;transform:translateX(-50%);padding:5px 7px;background:#202124;color:#fff;border-radius:4px;font-size:11px;white-space:nowrap;pointer-events:none}
.pose-handle:hover .handle-label,.pose-handle:focus-visible .handle-label{display:block}
@media(pointer:coarse){.pose-handle{width:44px;height:44px}.handle-ball{width:16px;height:16px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.body-panel:has(#jawControls:not([hidden])) button[data-mode=pose]{display:none}
/* Patient-defined relationships stay beside the concern editors, outside the canvas. */
#concernGroups{flex-shrink:0;margin-bottom:20px;min-width:0}
.groups-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.groups-heading h3{font-size:14px;margin:0}.groups-heading button{font-size:12px;min-height:44px}
.groups-help{font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 12px}
.group-list{display:grid;gap:8px}.concern-group{border:1px solid var(--line);border-radius:8px;min-width:0;overflow:hidden}
.concern-group h4{margin:0}.group-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:12px;min-height:56px;background:#f4f5f6}
.group-toggle>span:first-child{min-width:0}.group-toggle strong{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}.group-toggle small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.group-toggle[aria-expanded=true]{background:var(--emphasis-soft)}.group-toggle>span:last-child{font-size:20px;flex-shrink:0}
.group-editor{display:grid;gap:14px;padding:12px;border-top:1px solid var(--line);min-width:0}
.group-editor .field{font-size:12px;min-width:0}.group-editor input:not([type=checkbox]),.group-editor textarea{width:100%;min-width:0;min-height:44px;font-size:12px}
.group-members{border:0;padding:0;margin:0;min-width:0}.group-members legend{font-size:12px;font-weight:500;margin-bottom:5px}
.group-member{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:4px}
.group-member label{display:flex;align-items:center;gap:8px;min-height:44px;flex:1;min-width:0;font-size:11px;cursor:pointer}
.group-member input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0;flex-shrink:0;accent-color:var(--emphasis)}.group-member label span{overflow-wrap:anywhere}.group-member small{display:block;color:var(--muted);font-size:10px}
.group-member button{min-width:44px;min-height:44px;color:var(--emphasis);font-size:11px;flex-shrink:0}.remove-group{justify-self:start;min-height:44px;font-size:12px}
.report-groups{border-top:1px solid var(--line);padding-top:20px;margin-top:20px;overflow-wrap:anywhere}.report-groups h4{font-size:15px}.report-groups>p{font-size:11px;color:var(--muted);margin-top:8px}
.report-group{border-left:2px solid var(--emphasis);padding-left:12px;margin:18px 0}.report-group h5{font-size:13px;margin:0}.report-group p,.report-group ul{font-size:12px;margin:8px 0;white-space:pre-wrap}.report-group ul{padding-left:18px}

/* Case tools live in the header, leaving the viewport its full remaining height. */
.app-shell{display:flex;flex-direction:column}
.topbar{display:grid;grid-template-columns:auto minmax(130px,1fr) auto auto auto;gap:18px;min-height:78px;flex:0 0 auto;padding:8px 24px}
.header-status{display:flex;flex-direction:column;align-items:flex-start;justify-self:end;margin-right:8px;min-width:0;max-width:240px}
.header-status .prototype-tag{display:block;margin:0;border:0;padding:0;font-size:8px;letter-spacing:1px}
.header-status #sessionStatus{min-height:30px;font-size:11px}
.header-status #caseStatus{font-size:9px;color:var(--muted);overflow-wrap:anywhere}
.topbar .outline-button,.topbar .connection-button,.topbar .primary-button{min-height:44px;white-space:nowrap}
.header-examples{font-size:11px;padding:8px 12px}
.map-page,.secondary-page{flex:1;min-height:0}
.mobile-tabs{flex:0 0 auto}
.example-banner{flex:0 0 auto;background:#fff1ea;border-bottom:1px solid #e5c0af;padding:4px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px}
.example-banner .text-button{white-space:nowrap;min-height:36px}
.toast{bottom:20px}
.photo-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin:12px 0}
.photo-tile{padding:0;border:1px solid var(--line);border-radius:8px;text-align:left;overflow:hidden;min-width:0;background:#fff}
.photo-tile img{display:block;width:100%;height:130px;object-fit:contain;background:#f5f5f5}
.photo-tile>span{display:block;padding:10px}
.photo-tile strong{display:block;font-size:12px;overflow-wrap:anywhere}
.photo-tile small{display:block;margin-top:5px;color:var(--muted);font-size:10px}
.photo-preview{display:block;width:100%;max-height:380px;object-fit:contain;background:#f5f5f5;border-radius:8px}
.photo-editor{display:grid;gap:18px}
.photo-editor .dialog-actions{flex-wrap:wrap}
.request-photos{margin-top:24px}
.request-photos h3{margin-bottom:10px}
.request-photos .evidence-gallery figcaption{font-size:12px;overflow-wrap:anywhere}
.request-photos .check-field{margin:0 0 8px}
.ai-report .report-caveat{font-size:12px;border-left:3px solid var(--emphasis);padding:8px 12px;margin:12px 0 22px;background:#fff6f2}
.report-section{margin:28px 0}
.report-section h4{padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:12px}
.ai-report h5{font-size:12px;margin:18px 0 8px;font-weight:600}
.report-section p{white-space:pre-line;margin:8px 0}
.plain-language{padding:24px;background:#fff3ed;border:1px solid #e5c0af;border-radius:10px;margin:24px 0}
.plain-language h4{font-size:20px;margin:10px 0 15px}
.plain-language p{font-size:14px;line-height:1.8;white-space:pre-line}
.example-list{display:grid;gap:14px;margin-top:24px}
.example-card{display:grid;gap:10px;padding:20px;text-align:left;border:1px solid var(--line);border-radius:8px}
.example-card strong{font-size:16px}
.example-card span,.example-card small{color:var(--muted);line-height:1.6}
.example-preview{display:grid;gap:16px;margin:24px 0;font-size:13px}
.example-preview section{border-top:1px solid var(--line);padding-top:16px}
.example-preview h4{margin-bottom:8px}
@media(max-width:1100px){
  .topbar{gap:10px;padding:8px 14px}
  .topbar .steps{gap:12px}
  .header-status{margin-right:0;max-width:170px}
  .topbar #nextButton{padding:10px 12px;font-size:11px;gap:8px}
}
@media(max-width:760px){
  .topbar{grid-template-columns:minmax(90px,1fr) auto auto;grid-template-areas:'steps examples connection' 'status next next';gap:4px 12px;padding:6px 14px;min-height:0}
  .topbar .steps{grid-area:steps;justify-self:start;margin:0;gap:10px}
  .topbar .step{min-width:30px;min-height:44px}
  .header-status{grid-area:status;justify-self:start;max-width:100%;gap:0}
  .header-status #sessionStatus{min-height:44px}
  .header-status #caseStatus,.header-status .prototype-tag{display:none}
  .header-examples{grid-area:examples;min-width:70px;padding:8px;font-size:11px}
  .topbar #connectionsButton{grid-area:connection;min-width:44px;min-height:44px;width:44px}
  .topbar #nextButton{grid-area:next;justify-self:end;min-height:44px;font-size:11px}
  .example-banner{padding:5px 14px;font-size:10px;align-items:flex-start}
  .example-banner .text-button{white-space:normal;min-width:70px;min-height:44px;font-size:10px}
  .photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .plain-language{padding:18px}
}
@media(max-height:440px) and (min-width:600px){
  .topbar{grid-template-areas:none;grid-template-columns:auto minmax(70px,1fr) auto auto auto;gap:8px;padding:4px 12px;min-height:54px}
  .topbar>*{grid-area:auto!important}
  .header-status .prototype-tag,.header-status #caseStatus{display:none}
  .topbar .steps{gap:8px}
  .topbar .step{font-size:0;gap:0}
  .header-status{justify-self:end}
  .example-banner{padding:2px 12px}
}
@media(max-width:279px),(max-height:279px){.app-shell{display:none}}

.photo-tile:only-child{grid-column:1/-1}

.ai-diagnostics{border:1px solid var(--line);border-radius:10px;padding:18px;margin:16px 0;background:#fff;overflow-wrap:anywhere;min-width:0}
.ai-diagnostics summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;font-size:13px}
.ai-diagnostics>p{font-size:12px;margin:10px 0}.ai-diagnostics dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;font-size:11px}.ai-diagnostics dd{margin:0;overflow-wrap:anywhere}.ai-diagnostics dt{font-weight:600}
.ai-diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;font:11px/1.7 ui-monospace,monospace;user-select:text}
.ai-diagnostics details{border-top:1px solid var(--line)}.diagnostic-events{font-size:11px;line-height:1.8;padding-left:18px}
.model-discovery-actions{display:grid;gap:4px;margin:-8px 0 20px}.model-discovery-actions button{min-height:44px;justify-self:start}.model-discovery-actions .field-hint{margin:0}
@media(max-width:760px){.ai-diagnostics{padding:12px}.ai-diagnostics dl{grid-template-columns:1fr;gap:3px}.ai-diagnostics dd{margin-bottom:8px}}
.ai-diagnostics summary::after{content:'+';margin-left:auto;padding-left:12px;font-size:18px;font-weight:400}.ai-diagnostics[open]>summary::after,.ai-diagnostics details[open]>summary::after{content:'−'}

/* Report-key setup: compact, explicit opt-in instead of full-width form input. */
.checkbox-field{display:flex;align-items:center;gap:9px;margin:14px 0 4px;font-size:12px;line-height:1.5}.checkbox-field input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:0 0 18px;accent-color:var(--emphasis)}