/* Scoped workspace layout, with explicit hidden rules against legacy panel styles. */
#workspace .cj-photo-workspace{background:#fff!important;padding:20px;border:1px solid #dce5ef;border-radius:14px;max-width:1600px;margin-inline:auto}
.cj-photo-tab-panel[hidden],.cj-photo-workspace [hidden],#photos .photo[data-workspace-filtered=true]{display:none!important}
.cj-photo-tabs{display:flex;gap:6px;border-bottom:1px solid #dce5ef;margin:20px 0 0;padding-bottom:8px}
#workspace .cj-photo-tabs button{width:auto;margin:0;background:transparent;color:#52677f;border:0;padding:12px 20px;font-size:14px}
#workspace .cj-photo-tabs button[aria-selected=true]{background:#eaf1ff;color:#174da6;font-weight:700}
.cj-photo-selection-toolbar{position:sticky;top:0;z-index:15;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;background:#fff;border-bottom:1px solid #e0e7ef;margin-bottom:20px}
.cj-photo-selection-toolbar strong{margin-right:auto;white-space:nowrap;color:#17324d}
#workspace .cj-photo-selection-toolbar button,#workspace .cj-photo-report-actions button,#workspace .cj-photo-filters button{width:auto;margin:0;font-size:13px;padding:9px 12px}
#workspace .cj-photo-selection-toolbar #photoReportSelect{display:none}
.cj-photo-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}
#workspace .cj-photo-filters button{background:#f3f6fa;color:#52677f;border:1px solid transparent;border-radius:20px}
#workspace .cj-photo-filters button[aria-pressed=true]{color:#174da6;background:#eaf1ff;border-color:#a7c2ef}
.cj-photo-filters span{margin-left:auto;font-size:12px;color:#52677f}
.cj-photo-add,.cj-photo-ai-settings,.cj-photo-organization{border:1px solid #dce5ef;border-radius:10px;padding:12px 16px;margin:12px 0}
.cj-photo-add>summary,.cj-photo-ai-settings>summary,.cj-photo-organization>summary{font-weight:600;cursor:pointer}
.cj-photo-add form{margin-top:14px}.cj-photo-add input[type=range]{max-width:440px}
.cj-photo-workspace .cj-photo-ai-controls{background:#fff!important;border:0!important;padding:8px 0}
.cj-photo-workspace .cj-photo-organize{padding:10px 0;background:transparent;border:0}.cj-photo-workspace .cj-photo-organize button{width:auto;margin-right:8px}
#workspace .cj-photo-report-actions{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}
#workspace .cj-photo-tab-panel #claimNarrative{border:0;padding:0;margin:0}
#workspace .cj-photo-tab-panel #claimNarrative>summary{display:none}
#workspace .cj-photo-tab-panel #claimNarrative>button{width:auto;margin-right:8px}
#workspace .cj-photo-tab-panel #claimNarrative textarea{max-width:950px;display:block}
.cj-photo-editor-caption{border-top:1px solid #dce5ef;margin-top:18px;padding-top:12px}.cj-photo-editor-caption textarea{width:100%;min-height:96px}.cj-photo-editor-caption .cj-caption-editor{padding:0;margin:0}.cj-photo-editor-caption button{width:auto;margin-right:8px}
#workspace .cf-nav{position:relative;top:auto;z-index:5;flex:none;height:auto;min-height:52px;align-self:stretch}
#workspace .cj-photo-workspace button:focus-visible{outline:3px solid #81a9e8;outline-offset:3px}
@media(max-width:760px){#workspace .cj-photo-workspace{padding:12px}.cj-photo-selection-toolbar{top:0;gap:6px}.cj-photo-selection-toolbar strong{flex-basis:100%}#workspace .cj-photo-selection-toolbar button{font-size:12px;padding:8px}.cj-photo-tabs{gap:0}#workspace .cj-photo-tabs button{flex:1;padding:12px 6px}.cj-photo-filters span{flex-basis:100%;margin:0}}
.cj-narrative-sources dl{display:grid;grid-template-columns:140px 1fr;gap:8px;max-width:800px}.cj-narrative-sources dt{color:#52677f}.cj-narrative-sources dd{margin:0}.cj-narrative-sources details{margin:12px 0;padding:12px;border:1px solid #dce5ef;border-radius:8px}.cj-narrative-sources p{max-width:900px;white-space:pre-wrap}
@media(min-width:900px){.cj-annotation-editor{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;width:min(1250px,94vw)}.cj-annotation-editor:not([open]){display:none}.cj-annotation-editor>h2,.cj-annotation-editor>p:first-of-type,.cj-annotation-toolbar{grid-column:1/-1}.cj-annotation-canvas{grid-column:1;grid-row:4/9;align-self:start}.cj-photo-editor-caption{grid-column:2;grid-row:4;border-top:0;margin:0;padding:0}.cj-annotation-editor>p[role=status],.cj-annotation-editor>button{grid-column:2;margin:0;align-self:start}.cj-photo-editor-caption h3{font-size:15px;margin:0 0 8px}}
#workspace .cj-photo-selection-toolbar #photoReportDownload{background:#175bd4;color:#fff;font-weight:700;min-height:42px;padding:11px 18px;box-shadow:0 2px 5px #17324d18}
#workspace .cj-photo-selection-toolbar #photoReportDownload:disabled{background:#6d8fca;color:#fff;opacity:1}
.cj-narrative-export-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0;position:sticky;top:70px;z-index:10;background:#fff;padding:10px 0}#workspace .cj-narrative-export-actions button{width:auto;margin:0;padding:11px 16px}#workspace .cj-narrative-download-link{display:inline-block;padding:10px 14px;margin:8px 0;border:1px solid #175bd4;border-radius:8px;font-weight:600;color:#175bd4}#narrativeExtraPages{width:auto;margin-right:8px}
#companyKnowledge textarea{max-width:1000px;width:100%}#companyKnowledge input[type=checkbox]{width:auto;margin-right:8px}#companyKnowledge button{width:auto;margin-right:8px}#companyKnowledge details{border:1px solid #dce5ef;border-radius:8px;padding:12px;margin:12px 0}#companyKnowledge pre{max-height:320px;overflow:auto}#companyKnowledge summary{font-weight:600;cursor:pointer}.cj-narrative-format{display:flex;gap:8px;margin:10px 0}.cj-narrative-format button{width:auto!important;margin:0!important;font-size:12px}
