.action-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.action-card.violet>span{background:#eee8ff;color:#6741c5}.action-card.violet em{color:#6741c5}
.code-selector{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(300px,1.25fr);align-items:center;gap:10px 18px;margin:18px 0;padding:16px 18px;border:1px solid #dce5e2;border-radius:14px;background:#f8fbfa;font-weight:700;color:#263d37}
.code-selector select,.tc-code-bar select{width:100%;border:1px solid #bfcfca;border-radius:10px;background:#fff;padding:11px 12px;color:#183b32;font:inherit}
.code-selector small{grid-column:1/-1;color:#667b75;font-weight:500}
.tc-code-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding:13px 16px;border:1px solid #d3e2de;border-radius:13px;background:#f4faf8}
.tc-code-bar div{display:flex;flex-direction:column;gap:3px}.tc-code-bar small{color:#657b75}.tc-code-bar select{max-width:350px}
.record-title{margin-bottom:20px}.record-warning{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;margin-bottom:24px;border:1px solid #f2d38d;border-radius:14px;background:#fff9eb;color:#694d13}.record-warning>span{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#f2b739;color:#fff;font-weight:900}.record-warning p{margin:1px 0 0;line-height:1.45}#prontuario{max-width:1700px;padding-left:2.2%;padding-right:2.2%}
.record-layout{display:grid;grid-template-columns:minmax(640px,1.35fr) minmax(420px,.85fr);gap:24px;align-items:start}.record-flow{display:flex;flex-direction:column}.flow-step{display:grid;grid-template-columns:42px 1fr;gap:13px}.step-rail{display:flex;flex-direction:column;align-items:center}.step-rail b{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#126d5b;color:#fff;font-size:14px;box-shadow:0 0 0 5px #e7f4f0}.step-rail i{width:2px;min-height:30px;flex:1;margin:8px 0;background:#cfe2dd}.step-card{min-width:0;margin-bottom:20px;padding:22px;border:1px solid #dce5e2;border-radius:17px;background:#fff;box-shadow:0 7px 20px rgba(21,56,48,.055)}.step-kicker{font-size:11px;font-weight:900;letter-spacing:.09em;color:#22806b}.step-card h2{margin:5px 0 17px;color:#1f3933;font-size:21px}.step-card>label,.record-grid label,.vitals label{display:flex;flex-direction:column;gap:7px;margin-top:14px;color:#38544d;font-size:13px;font-weight:750}.step-card input:not([type=checkbox]):not([type=radio]),.step-card textarea,.step-card select{width:100%;box-sizing:border-box;border:1px solid #bfd0cb;border-radius:10px;background:#fff;padding:11px 12px;color:#223c36;font:inherit;outline:none}.step-card input:focus,.step-card textarea:focus,.step-card select:focus{border-color:#258c75;box-shadow:0 0 0 3px rgba(37,140,117,.12)}.step-card textarea{resize:vertical;line-height:1.45}.record-grid{display:grid;gap:12px}.record-grid.main-complaint{grid-template-columns:2fr .62fr .78fr}.vitals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:10px}.chip-grid{display:flex;flex-wrap:wrap;gap:9px}.check-chip{position:relative}.check-chip input{position:absolute;opacity:0;pointer-events:none}.check-chip span{display:block;padding:8px 11px;border:1px solid #c9d7d3;border-radius:999px;background:#fff;color:#46635b;font-size:13px;cursor:pointer;transition:.15s}.check-chip input:checked+span{border-color:#207d68;background:#e9f6f2;color:#115a4a;font-weight:750}
.state-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #d4dfdc;background:#fff;color:#3e5a53;transition:.15s}.symptom-state-choice{min-height:38px;border-radius:999px;padding:4px 5px 4px 12px}.exam-state-choice{border-radius:11px;padding:9px 9px 9px 12px}.state-choice:has(.state-present.active){border-color:#65aa98;background:#eff9f6}.state-choice:has(.state-denied.active){border-color:#d19a91;background:#fff4f1}.state-choice-label{font-size:13px;line-height:1.35}.state-choice-actions{display:flex;gap:4px}.state-choice-actions button{display:grid;place-items:center;width:27px;height:27px;border:1px solid #d2ddda;border-radius:50%;background:#f7faf9;color:#71847f;font-size:14px;font-weight:900;line-height:1;transition:.15s}.state-choice-actions button:hover{transform:translateY(-1px)}.state-choice-actions .state-present.active{border-color:#197a65;background:#197a65;color:#fff}.state-choice-actions .state-denied.active{border-color:#a64b42;background:#a64b42;color:#fff}.state-choice-actions button:disabled{opacity:.38;cursor:not-allowed}.finding-list .exam-state-choice{font-size:14px}
.exam-levels,.scenario-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.exam-levels label,.scenario-options label{position:relative}.exam-levels input,.scenario-options input{position:absolute;opacity:0}.exam-levels span,.scenario-options span{display:flex;min-height:74px;box-sizing:border-box;flex-direction:column;gap:5px;padding:13px;border:1px solid #cbd9d5;border-radius:12px;cursor:pointer}.exam-levels small,.scenario-options small{color:#71827e;font-size:11px;line-height:1.35}.exam-levels input:checked+span,.scenario-options input:checked+span{border-color:#197b66;background:#ebf7f3;box-shadow:0 0 0 2px rgba(25,123,102,.1)}
.checklist-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0 10px}.checklist-head>div{display:flex;flex-direction:column;gap:3px}.checklist-head small{color:#71827e;font-size:12px}.checklist-head button{border:0;border-radius:8px;padding:7px 9px;background:#edf4f2;color:#275a4f;font-weight:750;cursor:pointer}.finding-list{display:grid;gap:8px}.finding-item{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;padding:10px 11px;border:1px solid #d8e2df;border-radius:10px;color:#314e47;font-size:13px;line-height:1.4;cursor:pointer}.finding-item:has(input:checked){border-color:#5ea997;background:#f0f9f6}.finding-item input{width:16px;height:16px;margin-top:1px;accent-color:#187c66}.scenario-panel{margin:16px 0;padding:15px;border-radius:13px;background:#fff7e8;border:1px solid #edd49d}.scenario-panel>div:first-child{display:flex;flex-direction:column;gap:4px;margin-bottom:11px}.scenario-panel small{color:#78623a}.focused .finding-item{background:rgba(255,255,255,.65)}
.record-preview{position:sticky;top:90px;padding:22px;border-color:#cddbd7}.record-preview-head{display:flex;justify-content:space-between;align-items:start;gap:14px}.record-preview-head h2{margin:4px 0 0;color:#203e36}.live-dot{display:flex;gap:6px;align-items:center;color:#56726a;font-size:12px}.live-dot i{width:8px;height:8px;border-radius:50%;background:#27a578;box-shadow:0 0 0 4px #dff3ec}.record-preview pre{min-height:430px;margin:20px 0;padding:18px;border:1px solid #e0e8e5;border-radius:12px;background:#f9fbfa;color:#263c36;font:13px/1.58 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.record-actions{display:flex;gap:10px}.record-actions button{flex:1}.record-footnote{margin:14px 0 0;color:#6d7f7a;font-size:12px;line-height:1.45}
.choice-block{margin-top:17px}.choice-block>strong{display:block;margin-bottom:9px;color:#38544d;font-size:13px}.choice-block>small{display:block;margin:-4px 0 10px;color:#71827e;font-size:12px;line-height:1.4}.choice-pair{display:grid;grid-template-columns:.72fr 1.28fr;gap:16px}.choice-pair>.choice-block:last-child .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.choice-grid.compact{grid-template-columns:repeat(5,minmax(0,1fr))}.choice-grid label{position:relative;min-width:0}.choice-grid input{position:absolute;opacity:0;pointer-events:none}.choice-grid span{display:grid;place-items:center;min-height:38px;box-sizing:border-box;padding:8px 9px;border:1px solid #c9d7d3;border-radius:10px;background:#fff;color:#46635b;font-size:12px;text-align:center;cursor:pointer;transition:.15s}.choice-grid input:checked+span{border-color:#207d68;background:#e9f6f2;color:#115a4a;font-weight:800;box-shadow:0 0 0 2px rgba(32,125,104,.08)}.single-option{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;margin-top:14px!important;padding:10px 12px;border:1px dashed #bdcec9;border-radius:10px;color:#46635b!important;cursor:pointer}.single-option input{width:16px;height:16px;accent-color:#187c66}.vital-choice{padding-top:4px;border-top:1px solid #e6ecea}
.record-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin:16px 0 10px;color:#59716a;font-size:11px}.record-legend span{display:flex;align-items:center;gap:6px}.record-legend i{display:block;width:24px;border-bottom:3px solid;border-radius:2px}.record-legend .fixed-key{border-color:#26a17f}.record-legend .variable-key{border-color:#8a5bd3}.record-output{min-height:430px;margin:0 0 20px;padding:18px;border:1px solid #e0e8e5;border-radius:12px;background:#f9fbfa;color:#263c36;font:13px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}.record-output .record-section{margin:0 0 18px}.record-output .record-section:last-child{margin-bottom:0}.record-output .record-heading{display:block;margin-bottom:5px;font-weight:900;letter-spacing:.03em}.record-fixed,.record-variable{text-decoration-line:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-skip-ink:none}.record-fixed{text-decoration-color:#26a17f}.record-variable{display:inline;min-width:28px;padding:0 2px;border-radius:3px;text-decoration-color:#8a5bd3;background:#f4effd;color:#533787;outline:none;cursor:text}.record-variable:hover,.record-variable:focus{background:#ede3fb;box-shadow:0 0 0 2px rgba(138,91,211,.13)}.record-variable[data-empty="true"]{font-style:italic;color:#7a649a}.record-empty{margin:0;color:#758782;font-style:italic}.record-incomplete{display:flex;gap:7px;align-items:flex-start;margin:-8px 0 14px;padding:9px 10px;border-radius:9px;background:#fff4dc;color:#735619;font-size:11px;line-height:1.4}
.symptom-group>strong,.context-symptoms strong{display:block;margin-bottom:9px;color:#38544d;font-size:13px}.context-symptoms{margin-top:16px;padding:14px;border:1px solid #d9cff0;border-radius:12px;background:#faf7ff}.context-symptoms>div:first-child{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-bottom:10px}.context-symptoms>div:first-child strong{margin-bottom:0}.context-symptoms small{display:inline;margin:0;color:#8f899c;font-size:11px;font-weight:500;opacity:.72}.expand-symptoms{margin-top:14px;border:1px solid #cbbce7;border-radius:9px;background:#f7f2ff;color:#603b99;padding:8px 11px;font-weight:800;cursor:pointer}.expanded-symptoms{margin-top:12px;padding:13px;border:1px solid #e0e6e4;border-radius:11px;background:#fafcfb}
.detail-stack{display:grid;gap:11px;margin-top:14px}.detail-card{padding:13px 14px;border:1px solid #d9e3e0;border-radius:12px;background:#f9fbfa;transition:.16s}.detail-card.out-of-range{border-color:#e37c7c;background:#fff3f3;box-shadow:0 0 0 2px rgba(211,64,64,.08)}.detail-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#29473f}.detail-card-head b{color:#6c3fa6;font-size:13px}.detail-card input[type=range]{width:100%;margin:2px 0 5px;accent-color:#187c66}.detail-card input.risk-range{-webkit-appearance:none;appearance:none;height:8px;border-radius:999px;background:linear-gradient(to right,#e98b8b 0 var(--normal-low),#76c49d var(--normal-low) var(--normal-high),#e98b8b var(--normal-high) 100%);outline:none}.detail-card input.risk-range::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border:3px solid #fff;border-radius:50%;background:#5e3b91;box-shadow:0 1px 5px rgba(31,24,43,.35);cursor:grab}.detail-card input.risk-range::-moz-range-thumb{width:15px;height:15px;border:3px solid #fff;border-radius:50%;background:#5e3b91;box-shadow:0 1px 5px rgba(31,24,43,.35);cursor:grab}.range-scale{display:flex;justify-content:space-between;gap:8px;color:#6b7f79;font-size:10px}.range-scale span:nth-child(2){text-align:center}.range-warning{display:block;margin-top:7px;color:#8a6060;font-size:10px}.mini-pills,.age-pills,.orientation-tabs{display:flex;flex-wrap:wrap;gap:7px}.mini-pills button,.age-pills button,.orientation-tabs button{border:1px solid #c9d7d3;border-radius:999px;background:#fff;color:#46635b;padding:7px 10px;font:inherit;font-size:11px;font-weight:750;cursor:pointer}.mini-pills button.active,.age-pills button.active,.orientation-tabs button.active{border-color:#7045ad;background:#f0e8fb;color:#57338d}.other-vitals{margin-top:11px;padding:12px;border:1px dashed #c7d6d2;border-radius:11px;background:#fbfcfc}.age-reference{margin-top:14px;padding:12px 13px;border:1px solid #d9cff0;border-radius:12px;background:#faf7ff}.age-reference>strong{display:block;margin-bottom:9px;color:#4f3479;font-size:13px}.age-reference>small{display:block;margin-top:8px;color:#75698a;font-size:10px;line-height:1.4}.vital-buttons label[data-hint]::after{content:attr(data-hint);position:absolute;z-index:20;left:50%;bottom:calc(100% + 7px);width:max-content;max-width:190px;padding:7px 9px;border-radius:7px;background:#263c36;color:#fff;font-size:10px;line-height:1.3;text-align:center;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:.15s}.vital-buttons label[data-hint]:hover::after,.vital-buttons label[data-hint]:focus-within::after{opacity:1;transform:translate(-50%,0)}.orientation-panel{margin-top:14px;padding:14px;border:1px solid #d9cff0;border-radius:12px;background:#faf7ff}.orientation-panel>div:first-child{display:flex;flex-direction:column;gap:3px;margin-bottom:11px}.orientation-panel>div:first-child strong{color:#4f3479}.orientation-panel>div:first-child small{color:#75698a;font-size:11px}.orientation-panel .finding-list{margin-top:11px}.orientation-panel .finding-item{background:#fff}
.system-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.system-tabs button,.exam-mode-tabs button,.record-tools button{border:1px solid #c9d7d3;border-radius:9px;background:#fff;color:#46635b;padding:9px 11px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}.system-tabs button.active{border-color:#177b65;background:#e7f5f1;color:#105d4d}.exam-workspace{padding:16px;border:1px solid #dbe5e2;border-radius:14px;background:#f9fbfa}.exam-workspace-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.exam-workspace-head>div:first-child{display:flex;flex-direction:column;gap:3px}.exam-workspace-head strong{color:#233f38}.exam-workspace-head small{color:#73847f}.exam-workspace-head button{border:0;border-radius:8px;padding:7px 9px;background:#e9f1ef;color:#275a4f;font-weight:750;cursor:pointer}.exam-mode-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 8px}.exam-mode-tabs button.active{border-color:#7652b6;background:#f0eafb;color:#55348e}.exam-mode-tabs button.condition{border-style:dashed}.exam-mode-tabs button.condition.active{border-style:solid;background:#fff1e0;border-color:#d69343;color:#81521e}.exam-mode-note{margin-bottom:11px;color:#6d7d79;font-size:12px}
.record-tools{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.record-tools button{padding:7px 9px;border-color:#d7caec;background:#faf7ff;color:#66429b}.record-tools button.active{background:#6f45ad;color:#fff;border-color:#6f45ad}.record-legend .auto-key{border-color:#7d52bd}.record-legend .edited-key{height:10px;border:0;border-radius:2px;background:#ffe59d}.record-editable{display:inline;min-width:3px;padding:0 1px;border-radius:3px;color:#6c3fa6;text-decoration-line:underline;text-decoration-color:#9666d2;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-skip-ink:none;outline:none;cursor:text}.record-editable:hover,.record-editable:focus{background:#f0e8fb;box-shadow:0 0 0 2px rgba(127,82,189,.12)}.record-editable.is-manually-edited{background:#ffe59d;color:#563a15;text-decoration-color:#d18c24}.record-editable.is-placeholder{background:#f3edfc;color:#7c649e;font-style:italic}.record-output .record-section>.record-editable:first-child{display:block;margin-bottom:5px;font-weight:900;letter-spacing:.03em}.record-output .symptom-continuation{margin-top:4px;padding-top:2px}.record-output .symptom-continuation>div{padding-top:2px}.whole-record-editor{min-height:390px;white-space:pre-wrap;color:#6c3fa6;text-decoration-line:underline;text-decoration-color:#9666d2;text-decoration-thickness:2px;text-underline-offset:3px;outline:none}.whole-record-editor:focus{background:#fff8df;box-shadow:0 0 0 4px rgba(255,213,96,.2)}.whole-record-editor.is-manually-edited{padding:7px;border-radius:7px;background:#fff2bd;color:#563a15;text-decoration-color:#d18c24}
.record-tools button:disabled{border-color:#d7dcdb;background:#e8ebea;color:#929a98;box-shadow:none;cursor:not-allowed;opacity:1}.caps-lock-notice{margin:9px 0 12px;padding:9px 11px;border-left:3px solid #9a7bc5;border-radius:7px;background:#f6f2fb;color:#604d79;font-size:12px;line-height:1.45}.complaint-limit-help{display:block;margin:4px 0 9px;color:#6d7f7a;font-size:12px}.final-edit-unlock{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 22px 55px;padding:17px 18px;border:1px solid #d9cbed;border-radius:15px;background:#faf7ff}.final-edit-unlock>div{display:flex;flex-direction:column;gap:4px}.final-edit-unlock strong{color:#493568}.final-edit-unlock small{color:#6e6280;line-height:1.4}.final-edit-unlock button{flex:0 0 auto;border:1px solid #7048aa;border-radius:10px;background:#7048aa;color:#fff;padding:11px 15px;font:inherit;font-weight:800;cursor:pointer}.final-edit-unlock button:hover{background:#603b96}.final-edit-unlock button.active,.final-edit-unlock button:disabled{border-color:#9b8dab;background:#ddd7e5;color:#716779;cursor:default}
@media(max-width:1320px){.action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.record-layout{grid-template-columns:1fr}.record-preview{position:static}.record-preview pre,.record-output{min-height:280px}}
@media(max-width:760px){.record-grid.main-complaint,.vitals,.exam-levels,.scenario-options,.choice-pair{grid-template-columns:1fr}.choice-grid.compact,.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-step{grid-template-columns:32px 1fr;gap:8px}.step-rail b{width:30px;height:30px}.step-card{padding:17px}.checklist-head,.exam-workspace-head{align-items:flex-start;flex-direction:column}.record-layout{display:block}.tc-code-bar,.code-selector{display:flex;flex-direction:column;align-items:stretch}.action-grid{grid-template-columns:1fr}.record-output{min-height:300px}.system-tabs button{flex:1 1 42%}.final-edit-unlock{margin-left:40px;align-items:stretch;flex-direction:column}.final-edit-unlock button{width:100%}}
.deny-context-symptoms{display:inline-flex;align-items:center;gap:8px;margin-top:11px;padding:8px 10px;border:1px solid #cdbce8;border-radius:9px;background:#fff;color:#654392;font-size:12px;font-weight:800;cursor:pointer}.deny-context-symptoms input{margin:0;accent-color:#7045ad}.deny-context-symptoms:has(input:checked){border-color:#7045ad;background:#efe7fa;color:#533487}.context-symptoms.is-denied #contextSymptomChecklist{opacity:.45;pointer-events:none}.record-editable{white-space:pre-wrap}.abdominal-dialog{width:min(590px,calc(100vw - 32px))}.abdominal-region-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:16px 0}.abdominal-region-grid button{min-height:56px;padding:9px;border:1px solid #c9d8d4;border-radius:9px;background:#f8fbfa;color:#38564e;font:inherit;font-size:11px;font-weight:750}.abdominal-region-grid button:hover,.abdominal-region-grid button.active{border-color:#177b65;background:#e6f4ef;color:#105d4d}.abdominal-dialog-actions{flex-wrap:wrap}.abdominal-dialog-actions button{flex:1 1 auto}@media(max-width:560px){.abdominal-region-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
