/* V437 owner-review corrections and practitioner patient workspace. */
.question-help{display:inline-flex;position:relative;vertical-align:middle;margin:-8px -8px -8px 2px;font-weight:400;letter-spacing:0;text-transform:none}
.question-help-button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:0;background:transparent;color:#6b7470;cursor:pointer;font-size:0}
.question-help-button::before{content:"i";display:grid;place-items:center;width:24px;height:24px;border:1px solid #8b9490;border-radius:50%;background:#f3f4f1;color:#626b67;font:700 15px/1 Georgia,serif}
.question-help-button[aria-expanded="true"]::before,.question-help-button:hover::before{background:#e4e7e3;color:#36413d}
.question-help-content{position:absolute;z-index:30;top:40px;left:8px;width:min(340px,calc(100vw - 54px));padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);box-shadow:0 12px 34px #173f3529;font-size:15px;line-height:1.48;text-align:left}
.wizard-step h2>.question-help{margin-left:3px}
.wizard-step label>.question-help{margin-left:2px}

.wizard-step[data-wizard-step="photo"] .camera-primary-action{white-space:nowrap;min-width:max-content;font-size:16px!important;min-height:44px!important}
.wizard-step[data-wizard-step="photo"] .media-preview{width:auto;max-width:min(720px,100%);height:auto;max-height:clamp(240px,38vh,440px);object-fit:contain;margin:8px auto 12px}
.wizard-step[data-wizard-step="photo"] [data-camera-video]{max-height:clamp(220px,35vh,400px)}
.wizard-step[data-wizard-step="photo"] .pair-panel{grid-template-columns:176px minmax(0,1fr)}
.wizard-step[data-wizard-step="photo"] .pair-panel svg{display:block;width:176px;max-width:100%;height:auto}

.staff-patient-tools{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:15px 0}
.staff-patient-tools label{flex:1 1 260px;margin:0}.staff-patient-tools select{width:auto;min-width:190px}.staff-patient-tools .button{min-height:46px}
.staff-patient-table{width:100%;border-collapse:collapse;font-size:14px}.staff-patient-table th,.staff-patient-table td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.staff-patient-table th{color:var(--pine);font-size:12px}.staff-patient-table button{border:0;background:none;color:var(--pine);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:44px;padding:6px 0}
.staff-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.staff-record-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:22px}.staff-history-list{display:grid;gap:10px}.staff-history-card{border:1px solid var(--line);border-radius:10px;padding:14px;background:#fff}.staff-history-card p{margin:4px 0;font-size:13px}.staff-history-card .button{margin-top:8px;width:max-content}.staff-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.staff-media-card{border:1px solid var(--line);border-radius:10px;padding:12px}.staff-media-card img{display:block;width:100%;height:210px;object-fit:contain;background:#f4f5f1;border-radius:7px}.staff-media-card p{font-size:12px;margin:8px 0 0}.staff-upload-preview{display:block;width:min(520px,100%);max-height:360px;object-fit:contain;margin:12px 0;border:1px solid var(--line);border-radius:8px}

@media(max-width:760px){
  .question-help-content{position:fixed;left:14px;right:14px;bottom:76px;top:auto;width:auto;max-height:38vh;overflow:auto}
  .wizard-step[data-wizard-step="photo"] .photo-primary-actions{grid-template-columns:1fr}
  .wizard-step[data-wizard-step="photo"] .media-preview{max-height:clamp(190px,28vh,280px)}
  .wizard-step[data-wizard-step="photo"] .pair-panel{grid-template-columns:132px minmax(0,1fr)}
  .wizard-step[data-wizard-step="photo"] .pair-panel svg{width:132px}
  .staff-record-grid{grid-template-columns:1fr}.staff-patient-table{font-size:13px}.staff-patient-table th:nth-child(n+4),.staff-patient-table td:nth-child(n+4){display:none}
}

@media(max-width:834px){
  .intake-card,.intake-card>*{min-width:0;max-width:100%}
  .intake-card-actions{width:100%;max-width:100%;flex-wrap:wrap}
}

@media(max-width:560px){
  .intake-choices{grid-template-columns:minmax(0,1fr)}
  .intake-card{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
  .intake-card>*{min-width:0;max-width:100%}
  .intake-card p,.intake-facts,.intake-facts li{overflow-wrap:anywhere}
}
