/* Avaliação Guiada do FisioTests — consistente com as telas clínicas web/mobile.
   Mantém a página com rolagem única e sem fundos coloridos decorativos. */
#secao-guiada { width:100%; max-width:1260px; margin:0 auto; min-width:0; }
#secao-guiada .guided-lead {
  color:#62798b; font-size:12px; line-height:1.55; margin:0 0 14px;
}
.guided-workspace-layout {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px; align-items:stretch;
}
.guided-main,.guided-side {
  min-width:0; padding:16px; border:1px solid #e1e8ef;
  border-radius:14px; background:#fff;
}
.guided-section-head { display:flex; align-items:center; gap:8px; margin:0 0 10px; }
.guided-section-head h2 { font-size:15px; font-weight:650; color:#203b51; margin:0; line-height:1.35; }
.guided-step { display:grid; place-items:center; border:1px solid #d9e8f3; color:#38708d; background:#f2f7fb; font-size:10px; font-weight:700; width:25px; height:25px; border-radius:8px; flex:0 0 25px; }
.guided-two-cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.guided-main label,.guided-side label { display:flex; flex-direction:column; gap:5px; color:#476075; font-size:12px; font-weight:600; min-width:0; }
.guided-main input,.guided-main textarea,.guided-main select,
.guided-side textarea,.guided-side select {
  box-sizing:border-box; width:100%; min-width:0;
}
.guided-main select.input,.guided-side select.input { min-height:41px; }
.guided-main textarea.input,.guided-side textarea.input {
  min-height:60px; line-height:1.5; resize:vertical;
}
.guided-divider { height:1px; background:#e9edf1; margin:15px 0; }
.guided-field-stack { display:grid; gap:10px; }
.guided-scale-note { display:flex; align-items:center; color:#748698; font-size:11px; line-height:1.5; padding:0 6px; }
.guided-helper,.guided-handoff-note { color:#657b8d; font-size:11px; line-height:1.6; margin:0 0 9px; }
.guided-status-label { margin-bottom:10px; }
.guided-safety-notice {
  border-left:3px solid #be8d49; background:#faf8f4; padding:9px 11px; margin:0 0 11px;
  font-size:11px; line-height:1.55; color:#66512b; border-radius:0 8px 8px 0;
}
.guided-save-actions,.guided-handoff-actions { display:flex; align-items:stretch; gap:8px; flex-wrap:wrap; margin-top:13px; }
.guided-save-actions button,.guided-handoff-actions button { min-height:38px; font-size:12px; padding:8px 12px; border-radius:9px; flex:1; }
.guided-save-actions button:first-child,.guided-handoff-actions button:first-child { flex:1.35; }
.guided-feedback { color:#255f74; font-size:12px; line-height:1.5; min-height:18px; margin:11px 0 0; }
.guided-feedback.is-error { color:#a3373b; }
.guided-feedback:empty { display:none; }
.guided-empty {
  padding:11px 12px; color:#63788b; font-size:11.5px; line-height:1.5;
  background:#fafcfe; border:1px dashed #cfdae4; border-radius:10px; margin:0;
}
.guided-evidence-intro h3,.guided-protocol-list h3,.guided-history h3 {
  color:#253e52; font-size:13px; margin:0 0 6px; font-weight:650;
}
.guided-evidence-intro p { font-size:11px; line-height:1.55; color:#63788b; margin:0 0 12px; }
.guided-test-list { display:grid; gap:7px; }
.guided-side .guided-test-option {
  flex-direction:row; gap:10px; align-items:flex-start; padding:10px;
  border:1px solid #e7edf3; border-radius:10px; cursor:pointer; background:#fff;
}
.guided-side .guided-test-option:has(input:checked) {
  border-color:#a9cde0; background:#f5f9fc;
}
.guided-test-option input { margin:3px 0 0; width:16px; height:16px; flex-shrink:0; accent-color:#397b9b; }
.guided-test-option span { display:flex; flex-direction:column; gap:4px; min-width:0; }
.guided-test-option strong { font-size:12px; color:#28465d; line-height:1.35; font-weight:650; }
.guided-test-option small { font-size:10px; color:#667c8f; line-height:1.45; }
.guided-selection-limit { display:block; color:#718596; font-size:10px; line-height:1.5; margin-top:10px; }
.guided-protocol-list { border-top:1px solid #e8eef4; margin-top:16px; padding-top:14px; display:grid; gap:9px; }
.guided-protocol-list h3 { margin-bottom:1px; }
.guided-protocol-list article { border:1px solid #edf1f5; border-radius:10px; padding:11px; }
.guided-protocol-list strong { color:#2d4b60; font-size:12px; font-weight:650; }
.guided-protocol-list p { color:#5e7184; font-size:11px; line-height:1.55; margin:5px 0; }
.guided-protocol-list small { color:#768798; font-size:10.5px; line-height:1.5; }
.guided-handoff-actions { flex-direction:column; margin-top:12px; }
.guided-handoff-actions button { flex:0 0 auto; width:100%; }
.guided-handoff-note { margin:9px 0 0; }
.guided-history { border-top:1px solid #e7edf2; margin-top:14px; padding-top:12px; display:grid; gap:8px; }
.guided-history-entry { border:1px solid #e5ecf3; border-radius:10px; padding:12px; min-width:0; }
.guided-history-entry small { color:#6e8294; font-size:10.5px; }
.guided-history-entry h4 { color:#29485d; font-size:12px; line-height:1.5; font-weight:600; margin:5px 0 10px; overflow-wrap:anywhere; }
.guided-history-entry button { font-size:11px; padding:6px 11px; }
.guided-history-detail { border-top:1px solid #e7edf2; margin-top:11px; padding-top:11px; display:grid; gap:6px; }
.guided-history-detail p { color:#536b7e; font-size:11px; line-height:1.6; margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.guided-history-detail strong { color:#334d62; }
.guided-inline-notice { display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 11px; margin-top:10px; border:1px solid #dfeaf3; background:#f7fafe;
  border-radius:10px; font-size:11.5px; line-height:1.4; color:#45667d; }
.guided-inline-notice button { font-size:11px; min-height:33px; flex-shrink:0; }
#secao-guiada :focus-visible { outline-offset:2px; }

/* Desktop: two short functional fields share a row; longer clinical narratives stay full-width. */
@media (min-width:1180px) {
  #secao-guiada .guided-field-stack {
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:11px;
  }
  #secao-guiada .guided-field-stack > :nth-child(-n+3) {
    grid-column:1 / -1;
  }
}
/* Sinais de atenção e os controles de salvamento pertencem ao painel
   direito: sua posição é fixa na ordem de leitura, não na viewport. */
#secao-guiada .guided-safety-section {
  margin-top:18px;
  border-top:1px solid #e7edf2;
  padding-top:15px;
  min-width:0;
}
#secao-guiada .guided-safety-section .guided-section-head { margin-bottom:9px; }
#secao-guiada .guided-safety-section .guided-helper { margin-bottom:11px; }
#secao-guiada .guided-safety-section label { margin-bottom:10px; }
#secao-guiada .guided-safety-section .guided-save-actions { margin-top:13px; }
#secao-guiada .guided-safety-section .guided-save-actions button { min-width:0; }
#secao-guiada .guided-side .guided-history { margin-top:17px; }
@media (max-width:970px) {
  #secao-guiada .guided-safety-section { margin-top:17px; padding-top:14px; }
}
#secao-guiada .guided-side-hint {
  font-size:11.5px;
  line-height:1.5;
  color:#5e7588;
  margin:10px 0 2px;
}
#secao-guiada .guided-history-empty p {
  margin:0;
  color:#718597;
  font-size:11px;
  line-height:1.5;
}

@media (max-width:970px) {
  .guided-workspace-layout { grid-template-columns:minmax(0,1fr); gap:12px; align-items:start; }
  .guided-main,.guided-side { padding:16px; }
}
@media (max-width:560px) {
  .guided-main,.guided-side { padding:13px; border-radius:12px; }
  .guided-section-head { margin-bottom:11px; }
  .guided-section-head h2 { font-size:15px; }
  .guided-two-cols { grid-template-columns:minmax(0,1fr); gap:12px; }
  .guided-scale-note { padding:0; }
  .guided-divider { margin:17px 0; }
  .guided-save-actions { flex-direction:column; }
  .guided-save-actions button { width:100%; }
  .guided-inline-notice { flex-direction:column; align-items:stretch; }
  .guided-inline-notice button { width:100%; }
}
