:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#193341;background:#f3f6f8;font-size:16px;line-height:1.5;--teal:#116b72;--border:#d9e2e7}*{box-sizing:border-box}body{margin:0}header{padding:20px 32px;background:#153e52;color:white;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:16px}.brand strong{font-size:18px}.brand small{display:block;color:#ccdee7;margin-top:2px}.logo{font-size:25px;border:1px solid #80abb9;padding:9px;border-radius:9px;letter-spacing:1px}.badge{font-size:12px;background:#31596c;padding:3px 7px;border-radius:4px;margin-left:8px}header a{color:#e5f4fa;font-size:14px}a{color:var(--teal)}.layout{max-width:1550px;margin:auto;display:grid;grid-template-columns:230px 1fr}aside{padding:32px 20px;border-right:1px solid var(--border)}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.7px;color:#617c88}nav{display:grid;gap:8px;margin-top:20px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #c9d7de;background:#fff;color:#264856;border-radius:8px;min-height:44px;padding:9px 14px;font-weight:600;touch-action:manipulation}button:hover{border-color:#116b72;background:#edf6f7}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #398dc4;outline-offset:3px}nav button{text-align:left;border:0;background:transparent;font-size:14px;padding:13px 12px}nav button.active{background:#dceff0;color:#095a62;border-left:3px solid #116b72}.aside-note{font-size:14px;color:#687e88;border-top:1px solid var(--border);padding-top:24px;margin-top:30px}main{padding:30px 38px;min-width:0}h1{font-size:30px;margin:5px 0 0;letter-spacing:-.7px}h2{font-size:20px;margin:0}h3{font-size:17px;margin:0 0 8px}.topline{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:24px}.primary{background:#116b72;border-color:#116b72;color:white}.primary:hover{background:#0a535a;color:#fff}.visitbar{display:flex;align-items:center;justify-content:space-between;gap:15px;background:white;border:1px solid var(--border);padding:14px 18px;border-radius:12px;margin-bottom:24px}.visits{display:flex;gap:6px}.visits button{font-size:14px}.selected{background:#153e52!important;color:white!important;border-color:#153e52!important}.visitbar label{display:flex;align-items:center;gap:10px;font-size:14px}input,textarea,select{width:100%;min-height:46px;border:1px solid #c4d3db;border-radius:7px;padding:10px 12px;background:#fff;color:#173442}input[type=date]{min-width:145px}.card{background:white;border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:20px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:block;font-size:14px;font-weight:600}.field input,.field select,.field textarea{margin-top:7px;font-weight:400}.hint{font-size:14px;color:#5d7480;line-height:1.65}.legend{background:#edf5f7;border-left:3px solid #6d9ba8;border-radius:4px;padding:14px 16px;margin:16px 0;font-size:14px;color:#365967}.row{display:grid;grid-template-columns:minmax(170px,1.2fr) 1fr 1fr;gap:16px;align-items:center;padding:17px 0;border-bottom:1px solid #e7edf0}.row:last-child{border-bottom:0}.row.head{font-size:13px;font-weight:700;color:#66818d;padding-top:0}.choices{display:flex;flex-wrap:wrap;gap:5px}.choices button{padding:8px 12px;min-width:43px}.row-name{font-size:15px;font-weight:600}.row-name small{display:block;font-size:13px;font-weight:400;color:#6e8390}.subhead{margin:25px 0 10px}.palette{display:flex;flex-wrap:wrap;gap:8px}.palette button{display:flex;align-items:center;gap:8px;font-size:14px}.swatch{width:23px;height:23px;border:2px solid var(--ink,#aaa);background:var(--fill,#fff);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:var(--ink);flex-shrink:0}.palette button[aria-pressed=true]{box-shadow:0 0 0 2px #173e51;border-color:#173e51}.toolbar{position:sticky;top:0;z-index:5;box-shadow:0 3px 8px #153e5209}.maps{display:grid;grid-template-columns:1fr 1fr;gap:20px}.map-card{text-align:center;padding:20px;background:white;border:1px solid var(--border);border-radius:12px}.map{position:relative;width:100%;max-width:340px;margin:16px auto;background:white}.map img{width:100%;display:block}.map.mirror img{transform:scaleX(-1)}.point{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;padding:0;background:transparent;border:0;border-radius:50%;display:grid;place-items:center}.point:hover{background:#b6dbe455}.point .swatch{width:25px;height:25px;font-size:12px;box-shadow:0 0 0 2px white}.point .mark{position:absolute;left:31px;top:0;font-size:14px;color:#a02f28;background:white;line-height:1.1;font-weight:900}.point:not(.filled) .swatch{border-color:#768d99;color:#506a78;background:#fff}.map-caption{font-size:14px;color:#637b87}.result-badge{background:#eaf4f4;color:#165d64;padding:15px;border-radius:8px;font-weight:600}.criteria{width:100%;margin-top:16px}summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}footer{color:#6c828e;font-size:13px;padding:12px 0 30px}dialog{width:min(850px,94vw);border:1px solid var(--border);border-radius:15px;padding:25px;color:#173442}dialog::backdrop{background:#102c3dc0}.dialog-head,.report-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}dialog p{font-size:14px;color:#58717e}#report{height:55vh;font-family:ui-monospace,monospace;font-size:14px;line-height:1.7}.report-actions{margin-top:15px}#copyStatus{font-size:14px}.inline-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.note-line{padding:12px 0;border-bottom:1px solid #eee;font-size:14px}.no-data{color:#6e8490;font-size:14px;padding:10px} @media(max-width:900px){.layout{grid-template-columns:1fr}aside{border-right:0;padding:14px 20px;background:#fff;border-bottom:1px solid var(--border)}aside .eyebrow,.aside-note{display:none}nav{display:flex;overflow:auto;margin:0;gap:5px}nav button{white-space:nowrap}main{padding:22px}header{padding:16px 22px}.brand strong{font-size:16px}.maps{gap:14px}}@media(max-width:600px){header a{font-size:12px;max-width:90px}.logo{font-size:20px}.brand{gap:10px}.brand strong{font-size:14px}.topline{align-items:flex-start}h1{font-size:25px}.topline button{font-size:14px;max-width:130px}.visitbar{align-items:stretch;flex-direction:column;padding:12px}.visits button{flex:1;font-size:13px;padding:8px}.visits{width:100%}.visitbar label{justify-content:space-between}.visitbar input{width:auto}.card{padding:17px}.grid,.maps{grid-template-columns:1fr}.row{grid-template-columns:1fr 1fr;gap:10px}.row .row-name{grid-column:1/-1}.row.head{grid-template-columns:1fr 1fr}.row.head span:first-child{display:none}.choices button{padding:8px 11px}.inline-grid{grid-template-columns:1fr 1fr}main{padding:20px 14px}.toolbar{padding:14px}.palette{gap:6px}.palette button{font-size:13px;padding:6px 8px}.map{max-width:320px}.map-card{padding:18px}.hint{font-size:14px}}

.inspection-symbols{display:flex;flex-wrap:wrap;gap:14px 24px;font-size:14px}.inspection-symbols>span{display:flex;align-items:center;gap:9px}.legend-letter{font-size:22px;min-width:28px;text-align:center}.legend-hatch{display:inline-block;width:30px;height:21px;border:1px solid #274657;background:repeating-linear-gradient(135deg,transparent 0,transparent 3px,#274657 3px,#274657 4px)}.legend-triangle{font-size:34px;line-height:1;width:30px;text-align:center}

.structural-controls{text-align:left;border-top:1px solid #d9e2e7;margin:15px 0;padding-top:8px}.structure-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e7edf0;font-size:14px}.structure-row>span{flex:1}.structure-row .choices{flex-wrap:nowrap}.grade-card{padding:16px;background:#f5f9fa;border:1px solid #d9e2e7;border-radius:8px}.grade-number{font-size:20px;color:#116b72}.grade-card .hint{font-size:14px}.grade-card h3{font-size:16px}

header .brand{min-width:0;flex:1}header .brand>div{min-width:0}header .brand strong{display:block;overflow-wrap:anywhere}header>a{flex-shrink:0}.author-credit{margin-top:26px;padding-top:18px;border-top:1px solid var(--border);font-size:14px;line-height:1.6;color:#526e7b}.author-credit p{margin:0 0 14px}.author-credit strong{color:#264856}.author-credit a{text-underline-offset:3px}@media(max-width:900px){.author-credit{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px;padding-top:12px}.author-credit p{margin:0}}@media(max-width:600px){.author-credit{grid-template-columns:1fr;gap:10px;font-size:13px}header .brand strong{font-size:14px;line-height:1.5}header .logo{display:none}}

.report-actions{flex-wrap:wrap}.report-actions #copyStatus{flex:1 1 100%}button:disabled{cursor:wait;opacity:.65}

.draft-panel{margin:24px 0;padding-top:18px;border-top:1px solid #d6e2e8}.draft-panel h2{font-size:17px}.draft-panel>button{width:100%;white-space:normal}.draft-panel .hint{font-size:12px}.draft-item{display:block;width:100%;text-align:left;margin:8px 0;overflow-wrap:anywhere;white-space:normal}.draft-item strong,.draft-item small{display:block}.draft-item small{font-size:11px;margin-top:5px;color:#516675}.draft-item.selected{background:#e4f5f2;border-color:#157d72}.delete-draft{margin-top:12px;font-size:12px;color:#963b32}.draft-banner{display:flex;flex-wrap:wrap;gap:6px 18px;padding:14px 18px;margin-bottom:22px;background:#edf7f4;border:1px solid #c3dfd7;border-radius:12px;overflow-wrap:anywhere}.draft-banner strong{flex:1;min-width:150px}.draft-banner span{font-size:13px;color:#17694d}.draft-banner small{width:100%;color:#50666f}.draft-banner .save-error{color:#a12727;font-weight:bold}#draftList{max-height:380px;overflow:auto}@media(max-width:900px){.draft-panel{margin:12px 0 0;padding-top:10px}.draft-panel>button{width:auto}.draft-panel h2{margin:5px 0}#draftList{display:flex;gap:8px;max-height:150px;overflow:auto}.draft-item{min-width:190px;max-width:260px;flex-shrink:0}.draft-panel .hint{margin:4px 0}.draft-banner{margin-top:8px}}

/* Keep every clinical control inside the viewport at phone and text-zoom sizes. */
html,body{max-width:100%;overflow-x:clip}
.layout,aside,main,.card,.map-card,.row,.side-choice,.choices,.grid>*{min-width:0}
input,select,textarea{max-width:100%}
img{max-width:100%;height:auto}
.mobile-credit{display:none}
.draft-panel summary{font-size:17px;font-weight:700}
.draft-panel[open] summary{margin-bottom:10px}
.row .side-choice{min-width:0}
@media (max-width:1100px){
 .layout{grid-template-columns:200px minmax(0,1fr)}
 main{padding:22px}
 .inline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .row{grid-template-columns:minmax(130px,1fr) minmax(0,1.1fr) minmax(0,1.1fr);gap:8px}
 .choices button{min-width:40px;padding:8px}
}
@media (max-width:900px){
 .layout{display:flex;flex-direction:column}
 aside{min-width:0;padding:10px 16px}
 nav{scrollbar-width:thin;scroll-snap-type:x proximity;padding-bottom:5px}
 nav button{flex:none;scroll-snap-align:start}
 .author-credit{display:none}
 .mobile-credit{display:block;margin-top:10px}
 .draft-panel{margin-top:6px;padding-top:6px}
 .draft-panel>button{width:auto}
 .draft-panel summary{padding:4px 0}
 .draft-panel:not([open]){padding-bottom:0}
}
@media (max-width:700px){
 .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .row-name{grid-column:1/-1}
 .row.head{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:5px}
 .row.head span:first-child{display:none}
 .row .choices{gap:4px}
 .row .choices button{min-width:38px;min-height:44px;padding:7px}
 .maps,.grid{grid-template-columns:minmax(0,1fr)}
 .map-card{padding:16px}
 .map{max-width:360px}
}
@media (max-width:520px){
 header{padding:12px 14px;align-items:flex-start}
 header>a{font-size:13px;min-width:78px;max-width:96px;line-height:1.35;text-align:right}
 .brand strong{font-size:14px;line-height:1.35}
 .topline{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:14px}
 .topline button{max-width:none;width:100%}
 .visitbar{gap:12px}
 .visits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .visits button{min-width:0;font-size:13px;padding:8px 3px;white-space:normal}
 .visitbar label{flex-wrap:wrap}
 .visitbar input{width:100%}
 .card{padding:14px;margin-bottom:14px}
 .row{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:14px 0}
 .row.head{display:none}
 .side-choice{display:grid;grid-template-columns:66px minmax(0,1fr);gap:6px;align-items:start}
 .side-choice::before{content:attr(data-side);font-size:14px;font-weight:700;color:#526c79;padding-top:10px}
 .row .choices{justify-content:flex-start}
 .row .choices button{flex:0 0 auto;min-width:42px}
 .row .side-choice input{min-width:0}
 .inline-grid{grid-template-columns:minmax(0,1fr)}
 .palette button{min-height:48px}
 .structure-row{flex-wrap:wrap}
 .structure-row>span{flex:1 1 100%}
 .structure-row .choices{flex-wrap:wrap}
 .draft-panel>button{width:100%;margin-top:6px}
 #draftList{max-height:145px}
 .draft-item{min-width:175px}
 dialog{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 16px);padding:16px;overflow-y:auto}
 .dialog-head{align-items:flex-start}
 .dialog-head h2{font-size:18px}
 #report{height:38dvh;min-height:180px}
 .report-actions{display:grid;grid-template-columns:1fr}
 .report-actions>*{width:100%}
 .report-actions button{white-space:normal}
}
@media (max-width:360px){
 .row .side-choice{display:block}
 .side-choice::before{display:block;padding:0 0 5px}
 .row .choices button{min-width:40px}
 header>a{max-width:75px}
}

.mobile-color{display:none}
@media(max-width:600px){
 .toolbar{padding:14px}
 .toolbar h2{font-size:19px;line-height:1.3}
 .toolbar>p.hint{font-size:13px;margin:6px 0 10px;line-height:1.45}
 .toolbar .desktop-palette{display:none}
 .mobile-color{display:block}
 .mobile-color>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:54px;padding:8px;border:1px solid #c9d7de;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer}
 .mobile-color>summary::-webkit-details-marker{display:none}
 .mobile-color>summary .swatch{width:24px;height:24px}
 .mobile-color>summary>span:nth-child(2){flex:1;min-width:0}
 .mobile-color .palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:8px 0 0}
 .mobile-color .palette button{min-width:0;text-align:left;justify-content:flex-start;font-size:13px;padding:8px}
 .mobile-color .palette button:last-child{grid-column:1/-1}
 .mobile-color .palette small{font-size:12px}
 .inspection-options{border-top:1px solid #e1e9ed;margin-top:8px}
 .inspection-options>summary{font-size:14px;min-height:36px}
 .inspection-options .palette{padding-bottom:8px}
 #selectedTool{display:none}
}
@media(max-width:360px){.mobile-color .palette{grid-template-columns:minmax(0,1fr)}}

/* The two mobile disclosures use the same right-aligned icon. */
.mobile-color>summary,.inspection-options>summary{list-style:none}
.mobile-color>summary::-webkit-details-marker,.inspection-options>summary::-webkit-details-marker{display:none}
.disclosure-arrow{width:20px;height:20px;flex:none;margin-left:auto;color:#34505e;transition:transform .2s ease}
.mobile-color[open]>summary .disclosure-arrow,.inspection-options[open]>summary .disclosure-arrow{transform:rotate(180deg)}
.inspection-options>summary{display:flex;gap:8px;align-items:center}
.inspection-options>summary>span:first-child{min-width:0}
@media(max-width:600px){
 .mobile-color>summary .disclosure-arrow{margin-left:auto}
 .inspection-options>summary::before,.inspection-options[open]>summary::before{content:none}
 .inspection-options>summary{padding:4px 2px 4px 8px;min-height:42px}
 #mapAnchor{scroll-margin-top:165px}
}
@media(prefers-reduced-motion:reduce){.disclosure-arrow{transition:none}}

.portal-back{display:inline-flex;align-items:center;color:#116b72;font-weight:700;font-size:14px;text-decoration:none;margin-bottom:20px}.portal-back:hover{text-decoration:underline}@media(max-width:900px){.portal-back{margin:0 0 8px;font-size:14px}}
/* Privacidade dos rascunhos em aparelhos compartilhados */
.draft-banner[hidden]{display:none!important}
.local-privacy{border:1px solid #badcd4;background:#eaf6f2;color:#174a43;border-radius:10px;padding:12px 16px;margin:0 0 12px;font-size:14px;line-height:1.55}
.local-privacy strong{display:block;font-size:15px;margin-bottom:2px}
.shared-warning{display:grid;gap:4px;border:2px solid #c8463d;border-left-width:6px;background:#fff1ef;color:#7f211d;border-radius:10px;padding:13px 16px;margin:0 0 20px;font-size:14px;line-height:1.5}
.shared-warning strong{font-size:14px;letter-spacing:.02em}
.clear-all-drafts{margin-top:10px;background:#fff1ef;border-color:#c8463d;color:#8d2822;font-size:13px;line-height:1.3;width:100%;white-space:normal}
.clear-all-drafts:hover{background:#ffe4df;border-color:#a3312a}
.movement-figure{display:block;width:auto;max-width:min(100%,220px);max-height:155px;object-fit:contain;margin:9px 0 0;background:#fff}
@media(max-width:600px){.movement-figure{max-height:170px}}
.header-home{display:inline-flex;align-items:center;gap:7px;text-decoration:none;font-weight:800;white-space:nowrap;border:1px solid #93b7c3;border-radius:8px;padding:9px 12px;min-height:42px;max-width:none;color:#fff;flex:none}.header-home:hover{background:#31596c}.header-home:focus-visible{outline:3px solid #88d2ed;outline-offset:3px}@media(max-width:700px){header{flex-wrap:wrap}.header-home{order:-2;max-width:none;font-size:14px}.brand{order:1;width:100%}header>a:not(.header-home){order:-1;margin-left:auto}}

/* Highlight only segments that still need examination. */
.grade-card.exam-incomplete{background:#fff1f0;border:2px solid #b42318}
.grade-card.exam-incomplete h3,.grade-card.exam-incomplete .grade-number,.grade-card.exam-incomplete .hint{color:#a32119}
.grade-card.exam-incomplete button{background:#b42318;border-color:#b42318;color:#fff}
.grade-card.exam-incomplete button:hover{background:#912018;border-color:#912018;color:#fff}

.result-badge.exam-incomplete{background:#fff1f0;border:2px solid #b42318;border-left-width:6px;color:#a32119}

.legend.attribution-pending{background:#fff1f0;border:2px solid #b42318;border-left-width:6px;color:#a32119}
.legend.attribution-pending>strong{display:block;font-size:17px}
.legend.attribution-pending .attribution-reminder{font-weight:700}
.legend.attribution-pending .choices button{border:2px solid #b42318;color:#a32119;background:#fff}
.legend.attribution-pending .choices button:hover{background:#ffe0dc}
.visual-method{border:1px solid var(--border);border-radius:10px;padding:18px;margin-top:18px}.visual-method h3{margin:0}.visual-method .hint{margin:10px 0 14px}.visual-method .row.head{margin-top:20px}.visual-method .choices button{white-space:normal;text-align:left}@media(max-width:520px){.visual-method{padding:14px}}

/* Normal page scrolling, matching the neurodermatological assessment. */
.toolbar{position:relative;top:auto}
.sensory-reference table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.sensory-reference th,.sensory-reference td{border:1px solid #cad9df;padding:9px 12px}.sensory-reference th{background:#edf5f7}.sensory-reference td:first-child{width:130px;font-weight:700;white-space:nowrap}.sensory-reference .hint{margin-bottom:0}.point-index{position:absolute;right:0;bottom:0;min-width:17px;height:17px;padding:0 2px;border-radius:9px;background:#153e52;color:#fff;font-size:10px;line-height:17px;text-align:center;box-shadow:0 0 0 1px white}
