.point-photos{margin:15px 0 10px;padding:14px 0 0;border-top:1px solid #dbe5ef;color:#213b55;grid-column:1/-1;min-width:0}.point-photos>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}.photo-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.3px;color:#6e859b}.point-photos h4{font-size:14px;margin:5px 0 0}.entry-photo-block{margin-top:9px}.photo-chat-entry>b{font-size:12px;color:#71849b}.photo-package{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;min-width:0}.photo-package-multiple{grid-template-columns:repeat(2,minmax(0,1fr))}.protocol-photo{margin:0 0 8px;width:min(100%,var(--photo-display-width,480px));max-width:620px;border:1px solid #dce4ed;border-radius:9px;overflow:hidden;background:#f5f8fb;break-inside:avoid;min-width:0}.photo-image-button{display:block;border:0;border-radius:0;padding:0;width:100%;background:#edf2f6;cursor:zoom-in}.photo-image-button img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;margin:auto}.protocol-photo figcaption{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;background:white;padding:10px 12px}.photo-number{font-size:10px;font-weight:700;color:#617d96}.protocol-photo figcaption p{font-size:12px;line-height:1.65;margin:5px 0 0;color:#253c51;white-space:pre-wrap;overflow-wrap:anywhere}.photo-actions{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}.photo-remove{color:#9a5454}.photo-empty{font-size:12px;color:#8294a5;line-height:1.6;padding:14px;background:#f6f9fc;border-radius:8px}.note-photo-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0}.note-photo-tools span{color:#7990a4;font-size:10px}.photo-dialog{width:min(1120px,96vw);max-width:1120px;padding:0;overflow:auto;max-height:94vh}.photo-dialog[open]{display:flex;flex-direction:column}.photo-editor-head{display:flex;justify-content:space-between;gap:20px;padding:19px 25px 15px;background:#f5f9fd;border-bottom:1px solid #dce7f1;flex-shrink:0}.photo-editor-head h2{margin:5px 0;font-size:23px}.photo-editor-head p{font-size:11px;color:#71879c;line-height:1.6}.photo-upload{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 25px;background:#fff;flex-shrink:0}.photo-upload label{font-size:12px;color:#294e70}.photo-upload label span{font-size:10px;font-weight:400;color:#8193a4}.photo-upload input{font-size:12px;max-width:330px}.photo-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:10px 20px;background:#f6f9fc;border-top:1px solid #e2eaf2;border-bottom:1px solid #e2eaf2;flex-shrink:0}.photo-tool-group{display:flex;gap:4px;align-items:center}.photo-tool-group button{padding:7px 10px;font-size:11px}.photo-tool-group button[aria-pressed=true]{background:#e3effa;border-color:#79a8cc;color:#1e5d91;box-shadow:0 0 0 1px #79a8cc}.photo-colors{padding:0 8px;border-left:1px solid #d9e3ec;border-right:1px solid #d9e3ec}.photo-colors button{width:25px;height:25px;border-radius:50%;background:var(--swatch)!important;padding:0;border:3px solid white;margin:0 2px;box-shadow:0 0 0 1px #d1dbe5}.photo-colors button[aria-pressed=true]{box-shadow:0 0 0 2px #294a67}.photo-width-label{flex-direction:row;align-items:center;margin-left:8px;gap:6px;font-size:11px}.photo-toolbar select{padding:6px 7px;font-size:11px}.photo-canvas-stage{height:min(400px,45vh);max-height:45vh;min-height:120px;flex:1 1 320px;overflow:auto;background:#e3e9ef;padding:14px;position:relative;overscroll-behavior:contain}.photo-canvas-stage canvas{display:block;max-width:none;box-shadow:0 5px 25px #132d461c;touch-action:none;cursor:crosshair;background:#fff;margin-left:auto;margin-right:auto}.photo-canvas-stage canvas[hidden]{display:none!important}.photo-canvas-stage.is-dropping{outline:3px solid #4b8fc7;outline-offset:-6px}.photo-canvas-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;text-align:center;color:#7690a7;gap:10px}.photo-canvas-empty[hidden]{display:none}.photo-canvas-empty>span{font-size:40px;color:#9bb2c6}.photo-canvas-empty p{font-size:12px}.photo-editor-foot{padding:13px 25px 16px;flex-shrink:0;display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px 17px;background:#fff}.photo-editor-foot>label{font-size:11px}.photo-editor-foot textarea{min-height:54px;font-size:12px}.photo-layout-choice select{font-size:12px;min-height:38px}.photo-save-row{display:flex;align-items:center;justify-content:space-between;gap:20px;grid-column:1/-1}.photo-save-row .actions{margin:0}.photo-save-row button{font-size:12px}.photo-save-row>span{font-size:10px;line-height:1.6;color:#7890a4}.photo-save-row>span.photo-error{color:#b34040}.photo-viewer img{display:block;width:100%;height:auto;max-height:68vh;object-fit:contain;margin:15px auto}.photo-viewer p{font-size:13px;line-height:1.7;white-space:pre-wrap}.photo-viewer{padding:4px}.photo-viewer .actions{margin-top:20px}.point-photo-insert{padding:7px 0;border-top:1px dashed #e1e8ef;grid-column:1/-1}.point-photo-insert button{font-size:11px;color:#6b8ba7}.point-photo-insert button:hover{color:#246fa7;background:#f0f7fc}
@media(max-width:700px){.photo-editor-head,.photo-upload,.photo-editor-foot{padding:13px 16px}.photo-upload{align-items:stretch;flex-direction:column;gap:6px}.photo-upload input{max-width:100%}.photo-toolbar{padding:9px;gap:7px}.photo-canvas-stage{padding:8px}.photo-save-row{align-items:stretch;flex-direction:column;gap:9px}.photo-save-row .actions{justify-content:flex-end}.photo-editor-foot{grid-template-columns:110px minmax(0,1fr)}.point-photos>header{flex-wrap:wrap}.protocol-photo figcaption{flex-direction:column}.photo-actions{justify-content:flex-start}.photo-tool-group button{padding:6px 8px}}
@media print{.photo-actions,.photo-add,.note-photo-tools,.point-photo-insert{display:none!important}.protocol-photo{border:0;border-radius:0;width:min(100%,var(--photo-print-width,105mm));max-width:150mm}.photo-image-button img{max-width:150mm;max-height:125mm}.point-photos{break-inside:auto}.photo-package-multiple{grid-template-columns:repeat(2,minmax(0,1fr));gap:4mm}.protocol-photo figcaption{padding:2mm 0}.photo-package>figure{min-width:0}}

/* Photos belong to Thema; the three bound metadata cells continue alongside. */
.notebook-source .protocol-entry.photo-bound-entry{grid-template-rows:auto auto;align-items:stretch}
.notebook-source .protocol-entry.photo-bound-entry>p:first-child{grid-column:1;grid-row:1}
.notebook-source .protocol-entry.photo-bound-entry>span:nth-child(2){grid-column:2;grid-row:1/span 2}
.notebook-source .protocol-entry.photo-bound-entry>span:nth-child(3){grid-column:3;grid-row:1/span 2}
.notebook-source .protocol-entry.photo-bound-entry>span:nth-child(4){grid-column:4;grid-row:1/span 2}
.notebook-source .protocol-entry.photo-bound-entry>.entry-photo-block{grid-column:1;grid-row:2;min-width:0;margin:0;padding:12px 8px 14px;border-top:1px solid #e2e7ed;border-right:1px solid #ccd3db}
.notebook-source .protocol-entry.photo-theme-row{align-items:stretch}
.notebook-source .photo-theme-row>.legacy-photo-topic{grid-column:1;min-width:0;padding:0;border-right:1px solid #ccd3db}
.notebook-source .photo-theme-row>.legacy-photo-topic>.point-photos{grid-column:auto;margin:0;padding:12px 8px 14px;border-top:1px solid #e2e7ed}
.notebook-source .photo-theme-row>span{align-self:stretch;min-width:0}
.notebook-source .photo-theme-row>span:nth-child(2){grid-column:2}.notebook-source .photo-theme-row>span:nth-child(3){grid-column:3}.notebook-source .photo-theme-row>span:nth-child(4){grid-column:4}
.notebook-source .entry-photo-block>header,.notebook-source .legacy-photo-block>header{gap:10px;flex-wrap:wrap}
.notebook-source .entry-photo-block .photo-eyebrow,.notebook-source .legacy-photo-block .photo-eyebrow{font-size:9px;letter-spacing:.9px;overflow-wrap:anywhere}
.notebook-source .entry-photo-block .photo-add,.notebook-source .legacy-photo-block .photo-add{max-width:100%;white-space:normal}
.notebook-source .photo-theme-row .point-photo-insert{grid-column:auto;margin:0;padding:0}
.notebook-source .entry-photo-block .photo-package,.notebook-source .legacy-photo-block .photo-package{max-width:100%;min-width:0}
.notebook-source .entry-photo-block .protocol-photo,.notebook-source .legacy-photo-block .protocol-photo{max-width:100%}
.notebook-source .entry-photo-block figcaption,.notebook-source .legacy-photo-block figcaption{flex-wrap:wrap}
.notebook-source .entry-photo-block figcaption>div,.notebook-source .legacy-photo-block figcaption>div{min-width:0}
.notebook-source .entry-photo-block figcaption .photo-actions,.notebook-source .legacy-photo-block figcaption .photo-actions{max-width:100%;flex-wrap:wrap}
@media print{.notebook-source .photo-action-row{display:none!important}.notebook-source .protocol-entry.photo-bound-entry>.entry-photo-block,.notebook-source .photo-theme-row>.legacy-photo-topic>.point-photos{padding:2mm;border-radius:0}}
