/* Local markup samples and controls only; no global layout overrides. */
.annotation-modal .annotation-style-body{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);align-items:start;gap:16px}
.annotation-modal .annotation-style-controls{display:grid;gap:12px;min-width:0;max-height:min(340px,42dvh);overflow-y:auto;overscroll-behavior:contain;padding:2px 4px 3px 0}
.annotation-modal .annotation-style-preview{display:grid;gap:8px;margin:0;min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);overflow:hidden}
.annotation-modal .annotation-style-preview figcaption{display:flex;gap:6px;flex-wrap:wrap;align-items:baseline;justify-content:space-between;font-size:12px;line-height:1.4;color:var(--text)}
.annotation-modal .annotation-style-preview small{font-size:10px;color:var(--muted);line-height:1.4}
.annotation-modal .annotation-style-preview img{display:block;width:100%;height:auto;aspect-ratio:3.2;object-fit:contain;border-radius:6px}
.annotation-modal .annotation-preview-message{font-size:12px;line-height:1.5;color:var(--muted);margin:0}
.annotation-modal .annotation-style-controls .field{margin:0;min-width:0}
.annotation-modal .annotation-style-controls .annotation-range{gap:8px}
.annotation-modal .annotation-style-controls .annotation-property-ok{flex-shrink:0;min-width:44px;min-height:44px}
.annotation-clear-dialog .modal-footer{display:flex;flex-wrap:wrap;gap:10px}
.annotation-clear-dialog .modal-footer .btn{min-height:44px;white-space:normal;flex:1;min-width:100px}
@media(max-width:760px){
 .annotation-modal .annotation-style-body{grid-template-columns:minmax(0,1fr);gap:10px}
 .annotation-modal .annotation-style-preview{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:center;padding:8px 10px;gap:8px}
 .annotation-modal .annotation-style-preview figcaption{display:grid;gap:2px}
 .annotation-modal .annotation-style-preview img{max-height:80px}
 .annotation-modal .annotation-preview-message{grid-column:1/-1}
 .annotation-modal .annotation-style-controls{max-height:min(300px,35dvh)}
}
@media(max-width:370px){
 .annotation-modal .annotation-style-controls .annotation-colours{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
 .annotation-modal .annotation-style-controls .annotation-color{width:36px;min-width:36px;height:44px;min-height:44px;border-radius:18px}
}

/* v2.10 image-first workbench. Controls scroll in their own inspector, never
   consume the image's entire height, and never resize the source bitmap. */
.annotation-workbench-overlay{padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
.annotation-modal.annotation-workbench-modal{width:1600px;max-width:100%;height:100%;max-height:100%;border-radius:14px;overflow:hidden}
.annotation-modal.annotation-workbench-modal .modal-head{display:flex;align-items:center;gap:12px;min-height:58px;padding:6px 12px}
.annotation-modal.annotation-workbench-modal .modal-heading{display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.annotation-modal.annotation-workbench-modal .modal-brand{display:block;padding:0;margin:0;flex:none}
.annotation-modal.annotation-workbench-modal .modal-brand-lockup{width:92px;max-height:38px;object-fit:contain}
.annotation-modal.annotation-workbench-modal .modal-head h2{font-size:18px;line-height:1.2;letter-spacing:-.4px}
.annotation-modal.annotation-workbench-modal .modal-head p{display:none}
.annotation-modal.annotation-workbench-modal .modal-head>.icon-button{order:4;flex:none;width:44px;height:44px;min-width:44px;min-height:44px}
.annotation-modal.annotation-workbench-modal .annotation-photo-info{display:flex;align-items:center;gap:8px;min-height:0;padding:0;font-size:12px;line-height:1.3;flex:none;max-width:230px}
.annotation-modal.annotation-workbench-modal .annotation-photo-info .editor-label{margin:0}
.annotation-modal.annotation-workbench-modal .modal-body{padding:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.annotation-modal.annotation-workbench-modal .annotation-photo-navigation{padding:4px 8px;border-bottom:1px solid var(--line)}
.annotation-modal.annotation-workbench-modal .annotation-photo-navigation.is-single{display:none}
.annotation-modal.annotation-workbench-modal .annotation-workbench{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;flex:1;min-width:0;min-height:0;overflow:hidden}
.annotation-modal.annotation-workbench-modal .annotation-image-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#000}
.annotation-modal.annotation-workbench-modal .annotation-stage{position:relative;display:flex;flex:1 1 0;min-width:0;min-height:0;padding:0;overflow:hidden;touch-action:none}
.annotation-modal.annotation-workbench-modal .annotation-photo-frame{position:absolute;left:50%;top:50%;max-width:none;max-height:none;margin:0;transform:translate(-50%,-50%);will-change:transform}
.annotation-modal.annotation-workbench-modal .annotation-photo-frame canvas{max-width:none;max-height:none;border-radius:3px}
.annotation-modal.annotation-workbench-modal .annotation-stage.is-panning,.annotation-modal.annotation-workbench-modal .annotation-stage.is-panning canvas{cursor:grab}
.annotation-modal.annotation-workbench-modal .annotation-stage.is-panning:active,.annotation-modal.annotation-workbench-modal .annotation-stage.is-panning:active canvas{cursor:grabbing}
.annotation-modal.annotation-workbench-modal .annotation-image-state{margin:auto}
.annotation-modal.annotation-workbench-modal .annotation-view-tools{display:flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:50px;padding:3px 8px;border-top:1px solid var(--line);background:var(--surface)}
.annotation-modal.annotation-workbench-modal .annotation-view-tools .btn{min-width:44px;min-height:44px;height:44px;padding:7px 10px;font-size:14px;flex:none}
.annotation-modal.annotation-workbench-modal .annotation-view-tools .btn.active{background:var(--lime);border-color:var(--lime);color:var(--lime-ink)}
.annotation-modal.annotation-workbench-modal .annotation-zoom-value{min-width:44px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}
.annotation-modal.annotation-workbench-modal .annotation-view-tools .fullscreen-control{margin-left:auto;font-size:12px}
.annotation-modal.annotation-workbench-modal .annotation-inspector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;min-width:0;min-height:0;max-height:48dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--surface);border-top:1px solid var(--line);scrollbar-gutter:stable}
.annotation-modal.annotation-workbench-modal .annotation-toolbar{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;gap:5px;padding:6px;overflow-x:auto;overflow-y:hidden;min-width:0;max-width:100%;scrollbar-width:thin;scroll-padding:6px}
.annotation-modal.annotation-workbench-modal .annotation-tool{display:flex;flex-direction:row;flex:0 0 auto;gap:6px;min-width:82px;min-height:44px;height:44px;padding:7px 9px;font-size:14px;white-space:nowrap;line-height:1.2}
.annotation-modal.annotation-workbench-modal .annotation-tool svg{width:18px;height:18px}
.annotation-modal.annotation-workbench-modal .annotation-style-options,.annotation-modal.annotation-workbench-modal .annotation-photo-details{min-width:0;border-bottom:1px solid var(--line)}
.annotation-modal.annotation-workbench-modal .annotation-style-options>summary,.annotation-modal.annotation-workbench-modal .annotation-photo-details>summary{display:flex;align-items:center;gap:7px;min-height:48px;padding:6px 8px}
.annotation-modal.annotation-workbench-modal .annotation-settings-label strong{font-size:13px;line-height:1.3}
.annotation-modal.annotation-workbench-modal .annotation-settings-label small{display:none}
.annotation-modal.annotation-workbench-modal .annotation-settings-edit{border:0;background:transparent;padding:0;font-size:13px;min-height:32px;color:var(--accent-foreground,var(--text))}
.annotation-modal.annotation-workbench-modal .annotation-current-colour{width:16px;height:16px}
.annotation-modal.annotation-workbench-modal .annotation-style-options[open],.annotation-modal.annotation-workbench-modal .annotation-photo-details[open]{grid-column:1/-1}
.annotation-modal.annotation-workbench-modal .annotation-style-options[open] .annotation-settings-label small,.annotation-modal.annotation-workbench-modal .annotation-photo-details[open] .annotation-settings-label small{display:block;font-size:12px}
.annotation-modal.annotation-workbench-modal .annotation-style-body{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:8px 10px 12px}
.annotation-modal.annotation-workbench-modal .annotation-style-preview{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:center;gap:8px;padding:8px}
.annotation-modal.annotation-workbench-modal .annotation-style-preview figcaption{display:grid;font-size:13px}
.annotation-modal.annotation-workbench-modal .annotation-style-preview img{max-height:80px}
.annotation-modal.annotation-workbench-modal .annotation-style-controls{max-height:none;overflow:visible;padding:0}
.annotation-modal.annotation-workbench-modal .annotation-style-grid{grid-template-columns:minmax(0,1fr);gap:12px}
.annotation-modal.annotation-workbench-modal .annotation-property-ok{display:inline-flex;align-items:center;justify-content:center;flex:0 0 78px;width:78px;min-width:78px;min-height:52px;height:52px;padding:10px 12px;border:2px solid var(--lime);border-radius:10px;background:var(--lime);color:var(--lime-ink);font-size:16px;font-weight:800;gap:6px;box-shadow:0 2px 8px #b8ff0020}
.annotation-modal.annotation-workbench-modal .annotation-property-ok:hover,.annotation-modal.annotation-workbench-modal .annotation-property-ok:focus-visible{background:var(--lime-strong,var(--lime));color:var(--lime-ink);border-color:var(--lime);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--lime)}
.annotation-modal.annotation-workbench-modal .annotation-property-ok svg{width:18px;height:18px}
.annotation-modal.annotation-workbench-modal .annotation-colours{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;max-width:none}
.annotation-modal.annotation-workbench-modal .annotation-color{width:36px;min-width:32px;height:44px;min-height:44px;border-radius:20px}
.annotation-modal.annotation-workbench-modal .annotation-details-body{max-height:none;overflow:visible;padding:4px 10px 12px}
.annotation-modal.annotation-workbench-modal .annotation-details-grid{grid-template-columns:minmax(0,1fr)}
.annotation-modal.annotation-workbench-modal .annotation-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:5px 6px;border-top:0}
.annotation-modal.annotation-workbench-modal .annotation-history{display:contents}
.annotation-modal.annotation-workbench-modal .annotation-options .btn{min-width:0;min-height:44px;padding:7px 5px;font-size:12px;gap:4px}
.annotation-modal.annotation-workbench-modal .annotation-options .btn svg{width:16px;height:16px}
.annotation-modal.annotation-workbench-modal .annotation-help{grid-column:1/-1;display:none}
.annotation-modal.annotation-workbench-modal .annotation-text-placement,.annotation-modal.annotation-workbench-modal .annotation-selection,.annotation-modal.annotation-workbench-modal .annotation-text-entry{grid-column:1/-1;min-width:0}
.annotation-modal.annotation-workbench-modal .annotation-text-entry{position:static;grid-template-columns:minmax(0,1fr);padding:8px 10px}
.annotation-modal.annotation-workbench-modal .annotation-selection{grid-template-columns:minmax(0,1fr);padding:6px}
.annotation-modal.annotation-workbench-modal .annotation-selection-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.annotation-modal.annotation-workbench-modal .annotation-selection-actions .btn{font-size:13px;min-height:44px}
.annotation-modal.annotation-workbench-modal .annotation-text-placement{padding:6px;gap:5px}
.annotation-modal.annotation-workbench-modal .annotation-text-placement .btn{font-size:12px}
.annotation-modal.annotation-workbench-modal .modal-footer{gap:8px;padding:6px 10px;min-height:58px;border-top:1px solid var(--line)}
.annotation-modal.annotation-workbench-modal .modal-footer .btn{min-height:46px;padding:8px 10px;font-size:14px}
.annotation-modal.annotation-workbench-modal.annotation-typing .annotation-inspector{max-height:60dvh}
.annotation-modal.annotation-workbench-modal.annotation-typing .annotation-view-tools{display:none}
.annotation-modal.annotation-workbench-modal.annotation-typing .annotation-stage{min-height:0;flex:1 1 0}
@media(max-width:600px){
 .annotation-modal.annotation-workbench-modal .modal-head{min-height:52px;gap:8px;padding:4px 8px}
 .annotation-modal.annotation-workbench-modal .modal-heading{gap:8px}
 .annotation-modal.annotation-workbench-modal .modal-brand{display:none}
 .annotation-modal.annotation-workbench-modal .modal-head h2{font-size:17px}
 .annotation-modal.annotation-workbench-modal .annotation-photo-info{display:block;max-width:100px;font-size:11px}
 .annotation-modal.annotation-workbench-modal .annotation-photo-info .editor-label{display:none}
 .annotation-modal.annotation-workbench-modal .annotation-view-tools{gap:3px;padding-inline:5px}
 .annotation-modal.annotation-workbench-modal .annotation-view-tools .btn{padding-inline:8px;font-size:13px}
 .annotation-modal.annotation-workbench-modal .annotation-view-tools .fullscreen-control span{display:none}
 .annotation-modal.annotation-workbench-modal .annotation-view-tools .fullscreen-control{width:44px;padding:8px}
 .annotation-modal.annotation-workbench-modal .annotation-zoom-value{min-width:38px;font-size:12px}
 .annotation-modal.annotation-workbench-modal .annotation-settings-label strong{font-size:12px}
 .annotation-modal.annotation-workbench-modal .annotation-settings-edit{font-size:12px}
 .annotation-modal.annotation-workbench-modal .annotation-style-options>summary,.annotation-modal.annotation-workbench-modal .annotation-photo-details>summary{gap:5px}
 .annotation-modal.annotation-workbench-modal .annotation-settings-label{overflow:hidden}
 .annotation-modal.annotation-workbench-modal .annotation-settings-label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .annotation-modal.annotation-workbench-modal .annotation-current-colour{width:12px;height:12px}
}
@media(min-width:900px),(min-width:620px) and (max-height:600px){
 .annotation-modal.annotation-workbench-modal .annotation-workbench{grid-template-columns:minmax(0,1fr) 296px;grid-template-rows:minmax(0,1fr)}
 .annotation-modal.annotation-workbench-modal .annotation-inspector{display:flex;flex-direction:column;max-height:none;border-top:0;border-left:1px solid var(--line)}
 .annotation-modal.annotation-workbench-modal .annotation-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:none;overflow:visible;padding:7px;gap:5px}
 .annotation-modal.annotation-workbench-modal .annotation-tool{min-width:0;flex:none;justify-content:flex-start;font-size:13px;padding:7px 9px}
 .annotation-modal.annotation-workbench-modal .annotation-style-options,.annotation-modal.annotation-workbench-modal .annotation-photo-details{flex:none}
 .annotation-modal.annotation-workbench-modal .annotation-settings-label small{display:block;font-size:12px}
 .annotation-modal.annotation-workbench-modal .annotation-style-options>summary,.annotation-modal.annotation-workbench-modal .annotation-photo-details>summary{min-height:56px}
 .annotation-modal.annotation-workbench-modal .annotation-style-grid{grid-template-columns:minmax(0,1fr)}
 .annotation-modal.annotation-workbench-modal .annotation-colours{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .annotation-modal.annotation-workbench-modal .annotation-color{width:44px;min-width:44px}
 .annotation-modal.annotation-workbench-modal .annotation-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:none}
 .annotation-modal.annotation-workbench-modal .annotation-help{display:block;padding:8px 10px;font-size:12px}
 .annotation-modal.annotation-workbench-modal.annotation-typing .annotation-inspector{max-height:none}
 .annotation-modal.annotation-workbench-modal.annotation-typing .annotation-view-tools{display:flex}
}
@media(min-width:620px) and (max-height:600px){
 .annotation-modal.annotation-workbench-modal .annotation-workbench{grid-template-columns:minmax(0,1fr) 252px}
 .annotation-modal.annotation-workbench-modal .modal-head{min-height:48px;padding:2px 8px}
 .annotation-modal.annotation-workbench-modal .modal-brand{display:none}
 .annotation-modal.annotation-workbench-modal .modal-head h2{font-size:16px}
 .annotation-modal.annotation-workbench-modal .annotation-tool{font-size:12px;padding-inline:6px}
 .annotation-modal.annotation-workbench-modal .annotation-photo-info{font-size:11px}
 .annotation-modal.annotation-workbench-modal .modal-footer{min-height:52px;padding:3px 8px}
 .annotation-modal.annotation-workbench-modal .modal-footer .btn{min-height:44px;height:44px}
 .annotation-modal.annotation-workbench-modal .annotation-view-tools{min-height:46px;padding-block:1px}
 .annotation-modal.annotation-workbench-modal .annotation-view-tools .fullscreen-control span{display:none}
 .annotation-modal.annotation-workbench-modal .annotation-property-ok{flex-basis:72px;width:72px;min-width:72px}
 .annotation-modal.annotation-workbench-modal .annotation-colour-controls{gap:7px}
 .annotation-modal.annotation-workbench-modal .annotation-colour-code{font-size:12px}
}
.annotation-modal.annotation-workbench-modal .annotation-compact-tool{display:none}
@media(min-width:620px) and (max-height:600px){
 .annotation-modal.annotation-workbench-modal .annotation-compact-tool{display:block;padding:6px 8px;flex:none;border-bottom:1px solid var(--line)}
 .annotation-modal.annotation-workbench-modal .annotation-compact-tool .field{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0}
 .annotation-modal.annotation-workbench-modal .annotation-compact-tool label{font-size:13px;margin:0;flex:none}
 .annotation-modal.annotation-workbench-modal .annotation-compact-tool select{width:100%;min-width:0;height:44px;font-size:16px;padding:7px 28px 7px 9px}
 .annotation-modal.annotation-workbench-modal .annotation-toolbar{display:none}
 .annotation-modal.annotation-workbench-modal.annotation-typing .annotation-compact-tool{display:none}
}
