/* V6: shared entry controls and review cards. Existing clinical panels retain their state. */
.v6-entry-actions{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 18px;padding-bottom:17px;border-bottom:1px solid #d8e0e2}
.v6-entry-actions .button{flex:1 1 135px;min-height:44px;font-size:13px;text-align:center}
.v6-view-interpretation{width:100%;margin:18px 0 0}
.analysis-layout>.input-panel,.analysis-layout>.results{min-width:0}
#input-title,#traditional-results,#results{scroll-margin-top:20px}
.trad-summary-card,.interpretation-card{overflow-wrap:anywhere}
.trad-summary-card .trad-actions,.interpretation-card .result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #d8e0e2}
.trad-summary-card .trad-actions .button,.interpretation-card .result-actions .button{min-height:44px}
.traditional-results .measurement-review,.results .measurement-review{margin-top:20px;border:1px solid #d8e0e2;border-radius:8px;background:#fff;padding:0 16px}
.traditional-results .measurement-review>summary,.results .measurement-review>summary{min-height:48px;padding:13px 0;cursor:pointer;font-size:14px;font-weight:600}
.traditional-results .measurement-review[open],.results .measurement-review[open]{padding-bottom:16px}
.v6-photo-navigation,.v6-review-label{display:none}
.photo-dialog :focus-visible,.wf-dialog :focus-visible{outline:2px solid #12675f;outline-offset:3px}

@media(max-width:900px){
  .v6-view-interpretation{display:none}
  .v6-entry-actions{margin:12px 0 14px;padding-bottom:13px}
  .v6-entry-actions .button{min-height:44px}
  .v6-photo-navigation{display:flex;gap:6px;position:sticky;top:-20px;z-index:3;margin:0 -1px 16px;padding:10px 0;background:#fff;border-bottom:1px solid #d8e0e2}
  .v6-photo-navigation .button{flex:1 1 0;min-height:44px;padding:8px 5px;font-size:12px;line-height:1.3}
  #photo-review-image,#photo-review-form,#photo-confirm{scroll-margin-top:70px}
  .photo-image-column{min-width:0}
  .photo-review-image{overscroll-behavior:contain}
  .photo-dialog .photo-review-grid,.photo-dialog #photo-review-form{min-width:0}
}

@media(max-width:640px){
  .photo-dialog .photo-table-scroll,.wf-dialog .wf-table-wrap:has(.wf-paste-table){max-width:100%;overflow-x:visible}
  .photo-dialog .v6-review-table,.wf-dialog .v6-review-table{display:block;width:100%;min-width:0;border:0;table-layout:fixed}
  .v6-review-table>caption{display:block;width:100%;padding:0 0 12px;font-size:12px}
  .v6-review-table>thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
  .v6-review-table>tbody{display:grid;gap:12px;width:100%}
  .v6-review-table>tbody>tr{display:grid;grid-template-columns:32px minmax(0,1fr);gap:0 8px;min-width:0;padding:13px 12px;border:1px solid #d4dfe1;border-radius:8px;background:#fff}
  .v6-review-table>tbody>tr:has(input[type="checkbox"]:checked){border-color:#8dbbb0;background:#f5faf8}
  .v6-review-table>tbody>tr.photo-row-blocked,.v6-review-table>tbody>tr.wf-blocked{border-color:#dbc7b1;background:#fffaf4}
  .photo-dialog .v6-review-table>tbody>tr>td,.photo-dialog .v6-review-table>tbody>tr>th,.wf-dialog .v6-review-table>tbody>tr>td{width:auto;min-width:0;max-width:none;padding:0;border:0;text-align:left;overflow-wrap:anywhere}
  .v6-review-table>tbody>tr>td:first-child{grid-column:1;grid-row:1;align-self:start}
  .v6-review-table>tbody>tr>:nth-child(2){grid-column:2;grid-row:1}
  .v6-review-table>tbody>tr>td:last-child{grid-column:2;grid-row:2;padding-top:12px!important}
  .v6-review-table input[type="checkbox"]{width:22px;height:22px;margin:1px 0 0}
  .photo-dialog .photo-table tbody th>label,.wf-paste-table td>strong{font-size:14px;line-height:1.4}
  .photo-dialog .photo-source,.photo-dialog .photo-reading-quality,.wf-paste-table td>small{display:block;font-size:12px;line-height:1.5;margin:7px 0 0;max-width:none;white-space:normal;overflow-wrap:anywhere}
  .photo-dialog .photo-value-unit{grid-template-columns:minmax(0,1fr) minmax(86px,.8fr);gap:8px}
  .photo-dialog .photo-value-unit input,.photo-dialog .photo-value-unit select,.photo-dialog [data-photo-part="saturationKind"],.photo-dialog [data-photo-part="assay"]{width:100%;max-width:100%;min-width:0;min-height:44px;font-size:16px}
  .photo-dialog [data-photo-part="saturationKind"],.photo-dialog [data-photo-part="assay"]{margin-top:8px}
  .photo-dialog .photo-row-issues{margin:8px 0 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
  .photo-dialog .photo-row-issues:empty{display:none}
  .v6-review-label{display:block;margin-bottom:4px;color:#52616a;font-size:11px;font-weight:600}
  .photo-dialog .photo-review-toolbar{gap:10px}
  .photo-dialog .photo-review-toolbar p{flex-basis:100%}
  .photo-dialog .photo-review-toolbar button{min-height:44px;text-align:left}
  .photo-dialog .photo-add-row{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
  .photo-dialog .photo-add-row label{flex-basis:100%;width:100%}
  .photo-dialog .photo-add-row select{flex:1 1 150px;min-width:0;max-width:100%}
  .photo-dialog .photo-context select{max-width:100%;min-width:0;font-size:16px}
  .photo-dialog .photo-confirm{align-items:flex-start;font-size:13px;line-height:1.5}
  .wf-dialog .wf-dialog-actions{flex-wrap:wrap}
  .wf-dialog .wf-dialog-actions .button{min-height:44px;flex:1 1 130px}
}

@media(max-width:580px){
  .v6-photo-navigation{top:-17px}
  .photo-dialog .photo-review-image{max-height:40dvh}
}
@media print{
  .v6-entry-actions,.v6-view-interpretation,.v6-photo-navigation{display:none!important}
}
