/* Viewer panels remain mounted through CSS motion; player DOM is independent. */
@media (min-width:601px){.workspace-proof.viewer-active,.workspace-proof.viewer-active.proof-inspecting{grid-template-columns:var(--main-width) var(--context-width) minmax(0,1fr)}.workspace-proof.viewer-active #main{grid-column:3;grid-row:1}}
.workspace-proof.viewer-active #proof-inspector{display:flex;position:relative;inset:auto;flex:0 0 0px;width:0;min-width:0;height:100%;max-height:100%;overflow:hidden;border-left:0 solid var(--rule);opacity:0;visibility:hidden;pointer-events:none;transition:flex-basis var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),width var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),opacity var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),visibility 0s linear var(--dur-panel)}
.workspace-proof.viewer-active.viewer-panel-open #proof-inspector{flex-basis:min(380px,40%);width:min(380px,40%);opacity:1;visibility:visible;pointer-events:auto;border-left-width:1px;transition:flex-basis var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),width var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),opacity var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1)}
.workspace-proof.viewer-active #proof-inspector>.proof-resizer{display:none}.workspace-proof.viewer-active.viewer-panel-open:not(.viewer-inspector-overlay) #proof-inspector>.proof-resizer{display:block;inset-inline-start:-5px;width:10px;z-index:4}/* 182 (Joe: the grip 'on the outside'): it straddles the panel's outer edge, not inside next to the text */
.workspace-proof.viewer-active .viewer-panel-close{align-self:flex-end;flex:none;margin:8px;padding:6px 10px;border:1px solid var(--rule);border-radius:6px;background:var(--surface);color:var(--ink)}
.workspace-proof.viewer-active #proof-detail{width:100%;min-width:0;overflow:auto}
.workspace-proof.viewer-active #proof-details-toggle{display:none}
.workspace-proof.viewer-active #proof-preview{border-left:0;min-width:0}
.workspace-proof .viewer-header{display:flex;flex-direction:row;align-items:center;gap:12px;min-width:0;flex:none;padding:8px 0;border:0;background:var(--surface)}
.viewer-return,.viewer-actions{display:flex;flex-direction:row;align-items:center;gap:6px;min-width:0}
.viewer-actions{margin-left:auto;flex:none}.viewer-return{flex-wrap:wrap}.viewer-position{font-size:10px;color:var(--subtle);white-space:nowrap}
.viewer-header .viewer-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.viewer-header [aria-pressed=true]{background:var(--selected)}
.viewer-save-panel,.workspace-proof.viewer-active .consumer-details{box-sizing:border-box;padding:18px;min-width:0;height:100%;overflow:auto;overflow-wrap:anywhere}
.viewer-save-panel h2,.consumer-details h2{font-size:15px}.viewer-save-panel h3{font-size:14px}.viewer-save-panel p,.viewer-save-panel li{font-size:12px;line-height:1.6}
.workspace-proof .viewer-save-panel button{display:block;margin:12px 0;padding:8px 12px;border:1px solid var(--rule);border-radius:6px;background:transparent}
.workspace-proof.viewer-active .proof-properties>header>[data-media-preview],.workspace-proof.viewer-active .proof-properties>header>[data-media-close]{display:none}
.workspace-proof.viewer-active .proof-properties{min-height:0}
.workspace-proof.viewer-active .consumer-analysis-group{border:0;border-bottom:1px solid var(--rule);border-radius:0}
.workspace-proof.viewer-active .consumer-analysis-group summary{background:var(--section-header);color:var(--ink)}
.workspace-proof.viewer-active .proof-preview-stage{border:0;object-fit:contain}
.workspace-proof.viewer-active .workspace-player-attachments img,.workspace-proof.viewer-active .workspace-player-attachments video{object-fit:contain}
@media (max-width:900px){.viewer-header .viewer-title{display:none}.workspace-proof.viewer-active.viewer-panel-open #proof-inspector{flex-basis:min(340px,48%);width:min(340px,48%)}}
@media (max-width:600px){body.workspace-proof.viewer-active,body.workspace-proof.viewer-active.proof-inspecting{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--shell-header) minmax(0,1fr)}.workspace-proof.viewer-active #proof-rail{grid-column:1;grid-row:1}.workspace-proof.viewer-active #main{grid-column:1;grid-row:2;width:100%;height:calc(100dvh - var(--shell-header))}.workspace-proof.viewer-active #proof-body{position:relative}.workspace-proof.viewer-active #proof-inspector{position:absolute;z-index:45;right:0;top:0;bottom:0;height:100%;max-width:100%;transform:translateX(100%);transition:transform var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),opacity var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),visibility 0s linear var(--dur-panel)}.workspace-proof.viewer-active.viewer-panel-open #proof-inspector{width:min(360px,100%);transform:translateX(0);transition:transform var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),opacity var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1)}.viewer-header{flex-wrap:wrap}.viewer-return{gap:4px}.viewer-position{display:none}.viewer-actions{margin-left:auto}}
@media (prefers-reduced-motion:reduce){.workspace-proof.viewer-active #proof-inspector,.workspace-proof.viewer-active.viewer-panel-open #proof-inspector{transition:none;animation:none;scroll-behavior:auto}}

.workspace-media-provenance{font-size:11px;color:var(--subtle);margin:8px 0;flex:none}.workspace-media-provenance summary{cursor:pointer}.workspace-media-provenance p{max-width:70ch;overflow-wrap:anywhere}
/* Destination picker overrides inherited form/nav/button rules within its boundary. */
.workspace-proof dialog.workspace-save-picker{box-sizing:border-box;position:fixed;inset:auto;margin:0;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;overflow:auto;border:1px solid var(--rule);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 18px 60px #0004}
.workspace-save-picker::backdrop{background:#0003}.workspace-proof .workspace-save-picker header,.workspace-proof .workspace-save-picker footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0;border:0;background:transparent}.workspace-save-picker h2{font-size:16px;margin:0}.workspace-save-picker h3{font-size:13px;line-height:1.4;margin:12px 0}.workspace-proof .workspace-save-picker button{box-sizing:border-box;border-radius:var(--radius-md);padding:9px 12px;min-height:36px;white-space:normal;background:var(--surface);color:var(--ink);border:1px solid var(--rule)}.workspace-proof .workspace-save-picker button[aria-pressed=true]{background:var(--selected);border-color:var(--ink)}.workspace-proof .workspace-save-picker [data-viewer-confirm-save]{background:var(--ink);color:var(--surface)}.workspace-proof .workspace-save-picker button:disabled{opacity:.5;cursor:default}
.workspace-proof .workspace-save-picker form{display:flex;flex-direction:row;gap:8px;margin:12px 0;min-width:0;align-items:center}.workspace-save-picker form input{min-width:0;flex:1}.workspace-save-picker .save-picker-preview{margin:0 0 12px}.save-picker-preview img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#151515;border-radius:var(--radius-md)}.save-picker-preview figcaption,.save-picker-status{font-size:11px;line-height:1.5;margin:8px 0;color:var(--subtle)}.save-picker-times{display:flex;gap:10px}.save-picker-times label{display:flex;flex:1;min-width:0;flex-direction:column;font-size:11px;gap:6px}.save-picker-times input{width:100%;box-sizing:border-box}.save-picker-destinations{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow:auto}.workspace-proof .save-picker-destinations button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;width:100%}.save-picker-destinations small{color:var(--subtle);font-size:11px}.save-picker-create{margin:12px 0;font-size:12px}.save-picker-create summary{cursor:pointer}.save-picker-create select{max-width:110px;min-width:0}.workspace-save-picker a{color:var(--ink);text-decoration:underline}
@media(max-width:600px){.workspace-proof dialog.workspace-save-picker{left:0!important;right:0;top:auto!important;bottom:0;width:100%;max-height:92dvh;border-radius:20px 20px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}.workspace-save-picker .save-picker-preview img{max-height:160px}.save-picker-destinations{max-height:24dvh}.workspace-proof .workspace-save-picker button{min-height:44px}}
/* Size decisions use the workspace after both navigation rails. */
.workspace-proof.viewer-active #proof-body{position:relative;flex-direction:row}.workspace-proof.viewer-active.viewer-collection-yielded #proof-collection{display:none!important}.workspace-proof.viewer-active.viewer-rail-open #proof-collection{display:flex!important;position:absolute;inset:0 auto 0 0;width:min(320px,100%);max-width:100%;max-height:100%;flex:none;z-index:48;background:var(--surface);box-shadow:10px 0 40px #0004}.viewer-rail-open #proof-collection>[data-viewer-collection-close]{margin:12px;flex:none}
.workspace-proof.viewer-active.viewer-inspector-overlay #proof-inspector{position:absolute;z-index:46;inset:0 0 0 auto;height:100%;max-width:100%;transform:translateX(100%)}.workspace-proof.viewer-active.viewer-inspector-overlay.viewer-panel-open #proof-inspector{width:min(380px,100%);flex-basis:auto;transform:translateX(0);box-shadow:-10px 0 40px #0003}
.workspace-proof .viewer-header{flex-wrap:wrap;gap:6px 12px}.viewer-header .viewer-return{flex:1;min-width:140px;flex-wrap:nowrap}.workspace-proof .viewer-header .viewer-title{display:block;font-size:12px;min-width:0}.viewer-header .viewer-actions{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:5px}.viewer-header .viewer-position{display:inline;font-size:11px}.viewer-more{position:relative;flex:none}.viewer-more>summary{cursor:pointer;display:grid;place-items:center;width:30px;height:30px;list-style:none;border-radius:8px}.viewer-more>summary::-webkit-details-marker{display:none}.viewer-more>div>button{display:block;width:100%;white-space:nowrap;text-align:left}.viewer-more svg{width:16px;height:16px}
.workspace-proof .consumer-details-logo{display:block;width:36px;height:36px;object-fit:contain;margin-bottom:12px}.consumer-source-facts{font-size:11px;color:var(--subtle)}.consumer-moment-thumbnails{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.consumer-moment-thumbnails article{min-width:0}.workspace-proof .consumer-moment-thumbnails button{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:0;width:100%;border:0;background:transparent;gap:5px}.consumer-moment-thumbnails img,.consumer-moment-thumbnails video{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border-radius:8px;background:#171717}.consumer-moment-thumbnails strong{font-size:11px}.consumer-moment-thumbnails span{font-size:11px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.workspace-proof .workspace-player .proof-preview-stage{background:transparent;color:var(--ink);border-radius:var(--radius-md)}.workspace-proof .workspace-player-controls button,.workspace-proof .workspace-player-controls input{background:var(--surface);color:var(--ink)}.workspace-proof .gallery-card>.gallery-logo{min-height:0;place-items:start;height:42px}.workspace-proof .gallery-logo>img{width:36px;height:36px;max-height:36px;object-fit:contain}
@media(max-width:600px){.workspace-proof .viewer-header .viewer-return{flex-basis:100%}.workspace-proof .viewer-header .viewer-actions{width:100%;justify-content:flex-start;margin-left:0}.viewer-header .viewer-actions button{min-height:38px}.workspace-proof .workspace-player{padding:8px}.workspace-player-controls{gap:5px}.workspace-player-range{flex-wrap:wrap}}
/* Operational moment review keeps readable columns at inspector widths. */
.workspace-proof.viewer-active .moment-controls{container-type:inline-size}.workspace-proof.viewer-active .moment-controls>.table-wrap{max-width:100%;overflow:auto}.workspace-proof.viewer-active .moment-controls table{min-width:490px;table-layout:auto}.workspace-proof.viewer-active .moment-controls :is(th,td):first-child{min-width:106px;white-space:nowrap}.workspace-proof.viewer-active .moment-controls :is(th,td):nth-child(2){min-width:130px}.workspace-proof.viewer-active .moment-controls :is(th,td):last-child{min-width:110px}.workspace-proof.viewer-active .moment-controls button{white-space:nowrap;word-break:normal;overflow-wrap:normal}
/* All five admitted identity marks are verified white SVGs. */
.workspace-proof[data-theme=light] .gallery-logo>img,.workspace-proof[data-theme=light] .consumer-details-logo{filter:invert(1)}
/* Details owns its compact collapse control and rounded progressive disclosures. */
.workspace-proof.viewer-active .viewer-panel-close{position:absolute;top:10px;right:12px;z-index:3;display:grid;place-items:center;margin:0;width:30px;height:30px;padding:6px;border:0;border-radius:999px;background:transparent;color:var(--subtle)}.viewer-panel-close svg{width:16px;height:16px}@media(hover:hover){.workspace-proof.viewer-active .viewer-panel-close:hover{background:var(--hover);color:var(--ink)}}
.workspace-proof.viewer-active .consumer-moment-list{padding:14px;background:var(--hover);border-radius:12px;margin:16px 0}.consumer-moment-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}.consumer-moment-thumbnails button>.sr-only{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}.consumer-moment-thumbnails strong{font-size:10px;font-weight:400;color:var(--subtle)}.workspace-proof.viewer-active .consumer-analysis-group{border:1px solid var(--rule);border-radius:var(--radius-md);overflow:hidden;margin:12px 0}.workspace-proof.viewer-active .consumer-analysis-group>summary{background:var(--hover);padding:14px;font-size:12px;line-height:1.5}.workspace-proof.viewer-active .consumer-analysis-values{padding:14px}.workspace-proof.viewer-active .consumer-source-record{padding:14px;border-radius:12px;background:var(--hover)}
.workspace-proof.viewer-active:not(.viewer-collection-yielded) #proof-collection{flex:0 0 300px;min-width:300px;max-width:300px}.workspace-proof.viewer-active.viewer-panel-open #proof-inspector{flex-basis:min(360px,40%);width:min(360px,40%)}.workspace-proof.viewer-active.viewer-inspector-overlay.viewer-panel-open #proof-inspector{width:min(360px,100%);flex-basis:auto}
.workspace-proof .workspace-player-controls{align-items:center;gap:7px;padding:12px 0 4px}.workspace-proof .workspace-player-controls button,.workspace-proof .workspace-player-controls>details>summary{border:1px solid var(--rule);border-radius:999px;background:transparent;color:var(--ink);font-size:11px;line-height:1.4;min-height:32px;padding:6px 10px;white-space:nowrap}.workspace-player-controls>details>summary{cursor:pointer;list-style:none}.workspace-player-controls>details>summary::-webkit-details-marker{display:none}.workspace-proof .viewer-seek-row{display:flex;align-items:center;gap:12px;flex:1 0 100%;width:100%;min-width:0;margin-bottom:2px}.workspace-proof .viewer-seek-row>input[type=range]{flex:1;min-width:0;width:0;margin:0;accent-color:var(--ink)}.workspace-proof .viewer-seek-row>output{flex:none;min-width:0;font-size:10px;white-space:nowrap}.workspace-player-controls .viewer-precise-controls{position:relative}.viewer-precise-controls[open]{display:flex;flex-wrap:wrap;gap:5px}.viewer-precise-controls[open]>summary{flex-basis:100%}.workspace-proof .viewer-range-editor{width:100%;flex:1 0 100%;border:0}.workspace-proof .viewer-range-editor[hidden]{display:none}.workspace-proof .viewer-range-editor>summary{display:inline-flex}.workspace-proof .viewer-range-editor .workspace-player-range{padding:8px 0;flex-wrap:wrap;gap:12px}.workspace-proof .viewer-range-editor label{display:flex;align-items:center;gap:6px;margin:0}.workspace-proof .viewer-range-editor input{margin:0;width:90px;padding:5px 8px;border-radius:8px}.workspace-player-controls [aria-label="Full screen"],.workspace-player-controls [aria-label="Exit full screen"]{margin-left:auto}

/* Destination rows own content height; shared compact-button height is inapplicable. */
.workspace-proof .workspace-save-picker .save-picker-destinations>button{height:auto;min-height:56px;max-height:none;flex:none;align-items:stretch;justify-content:center;padding:10px 12px;gap:4px;line-height:1.4;white-space:normal;overflow:visible}.save-picker-destinations>button>strong,.save-picker-destinations>button>small{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
/* The picker owns one scrolling surface. A discard guard is a full-width row. */
.workspace-proof .workspace-save-picker>header{position:sticky;top:-16px;z-index:4;box-sizing:border-box;min-height:44px;height:auto;max-height:none;padding:8px 0;background:var(--surface);align-items:center}.workspace-save-picker>header>h2{flex:1;min-width:0;line-height:1.4;white-space:normal}.workspace-save-picker>header>button{flex:none;height:auto}.workspace-proof .save-picker-guard-host{display:block;width:100%;min-width:0}.workspace-proof .save-picker-guard-host>.company-exit-prompt{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:12px 0;padding:14px;border-radius:12px;overflow-wrap:anywhere}.workspace-proof .save-picker-guard-host>.company-exit-prompt>div{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}.workspace-proof .save-picker-guard-host>.company-exit-prompt button{flex:0 1 auto;height:auto;min-height:36px;white-space:normal}

/* Anchored content may grow; its scroll box ends above the viewport edge. */
@media(min-width:601px){.workspace-proof dialog.workspace-save-picker{max-height:calc(100dvh - var(--picker-top,12px) - 12px)}}

/* Shared media surface owns its foreground in both themes and fullscreen. */
.workspace-proof{--player-bg:#141414;--player-fg:#f5f5f5;--player-muted:#cfcfcf;--player-control-bg:#242424;--player-rule:#777}.workspace-proof :is(#proof-preview,.workspace-player,.feed-media-player) .workspace-player-controls{background:var(--player-bg);color:var(--player-fg);padding:12px}.workspace-proof :is(#proof-preview,.workspace-player,.feed-media-player) .workspace-player-controls :is(button,summary,input){background:var(--player-control-bg);color:var(--player-fg);border-color:var(--player-rule)}.workspace-proof :is(#proof-preview,.workspace-player,.feed-media-player) .workspace-player-controls input[type=range]{accent-color:var(--player-fg)}.workspace-proof :is(.workspace-player-status,.proof-playback-caption){color:var(--player-muted);background:var(--player-bg)}.workspace-proof :is(#proof-preview,.workspace-player,.feed-media-player):fullscreen{background:var(--player-bg);color:var(--player-fg)}.workspace-proof .viewer-header{color:var(--ink);background:var(--nav)}.workspace-proof .viewer-header button,.workspace-proof .viewer-header .viewer-more>summary{height:auto;min-height:32px;border-radius:999px;border:1px solid var(--rule);padding:6px 10px;background:transparent;color:var(--ink);font-size:11px}.workspace-proof .viewer-header .viewer-more>summary{width:32px;padding:7px}.workspace-proof .viewer-header [data-viewer-collection]{border-color:transparent}.workspace-proof .viewer-header .viewer-return>button{border-color:transparent;padding-left:0}.workspace-proof .viewer-header [data-viewer-save],.workspace-proof .viewer-header [data-viewer-panel=save]{background:var(--ink);color:var(--surface)}

/* Capture context belongs to the dark media surface in either page theme. */
.workspace-proof :is(#proof-preview,.workspace-player,.feed-media-player) .workspace-media-provenance{background:var(--player-bg);color:var(--player-fg)}.workspace-proof :is(#proof-preview,.workspace-player,.feed-media-player) .workspace-media-provenance summary{color:var(--player-fg)}.workspace-proof :is(#proof-preview,.workspace-player,.feed-media-player) .workspace-media-provenance p{color:var(--player-muted)}
/* R1 exact reference save and rail contracts. */
.workspace-proof .viewer-header{background:transparent;border-bottom:0}.workspace-proof #proof-preview>.viewer-header{background:transparent}.workspace-proof .workspace-player:focus-visible,.workspace-proof #proof-preview:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--rule)}.workspace-proof .workspace-player :is(button,input,summary,a):focus-visible{outline:2px solid var(--focus);outline-offset:2px}.workspace-proof .consumer-source-context{display:flex;gap:12px;flex-wrap:wrap}
.workspace-proof.viewer-active:not(.viewer-collection-yielded) #proof-collection{position:relative;flex:0 0 var(--viewer-collection-width,var(--viewer-collection-preferred,300px))/* audit-first B3: the width that fits (sync) */;min-width:60px;max-width:960px}.viewer-collection-resizer{position:absolute;inset:0 -4px 0 auto;width:8px;z-index:40;cursor:col-resize;touch-action:none}.viewer-collection-resizer:focus-visible{outline:2px solid var(--focus)}.viewer-collection-resizer:after{content:'';position:absolute;top:45%;left:3px;width:2px;height:32px;background:var(--subtle)}.workspace-proof.viewer-active.viewer-panel-open:not(.viewer-inspector-overlay) #proof-inspector{width:var(--inspector-width);flex-basis:var(--inspector-width)}
.workspace-proof .workspace-save-picker{max-width:min(440px,calc(100vw - 24px));padding:16px}.workspace-save-picker .save-picker-preview{margin:8px 0;display:grid;gap:6px}.workspace-save-picker .save-picker-preview img{width:100%;height:128px;object-fit:contain;background:var(--media)}.workspace-save-picker .save-picker-preview figcaption{font-size:13px}.workspace-save-picker .save-picker-precision{margin:10px 0;font-size:12px}.workspace-save-picker>label{display:block;margin:12px 0;font-size:12px}.workspace-save-picker>label textarea{display:block;width:100%;box-sizing:border-box;min-height:52px;resize:vertical}.workspace-save-picker .save-picker-destinations{max-height:200px;overflow:auto}.workspace-save-picker .save-picker-precision p{overflow-wrap:anywhere}
@media(max-width:600px){.viewer-collection-resizer{display:none}.workspace-proof .workspace-save-picker{padding:12px}.workspace-save-picker .save-picker-preview img{height:104px}}
.workspace-proof .workspace-player:focus-visible,.workspace-proof #proof-preview:focus-visible{outline:none;box-shadow:none}.workspace-player :is(.consumer-source-context,.consumer-source-links){gap:12px}.workspace-player-moments h2{display:flex;align-items:center;justify-content:space-between}

/* Viewer chrome belongs to the dark media surface in either application theme.
   Local tokens also follow a native header popover without recoloring inspectors. */
.workspace-proof :is(#proof-preview,.workspace-player)>:is(.viewer-header,.viewer-actions-bar){--ink:var(--player-fg);--subtle:var(--player-muted);--rule:var(--player-rule);--surface:var(--player-bg);--focus:var(--player-fg);--hover:var(--player-control-bg);--selected:var(--player-control-bg);color:var(--player-fg);background:transparent}

.workspace-player-moments{flex:none;display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.workspace-player-moments h2{flex-basis:100%;margin:0;font-size:13px}.workspace-proof .workspace-player-moments button{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:140px;max-width:100%;height:auto;min-height:44px;padding:5px;white-space:normal;text-align:left}.workspace-player-moments button img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:var(--media)}.workspace-player-moments button span{font-size:11px;line-height:1.5}.workspace-player-moments .rich-media-unavailable{min-height:60px;font-size:11px}

/* Review UX v2 (Joe, 2026-11-03): the media surface follows the page theme. Dark mode keeps the dark media surface; in light mode the viewer
   chrome (header, transport, captions, capture details) uses the light tokens and the stage is a light frame, so only the picture itself
   carries colour (object-fit letterbox shows the frame, not black). Fullscreen stays a dark cinema surface in both themes.
   These variables replace the hard-coded dark player tokens above (ID-level :is() rules read them, so overriding the variables is enough). */
body.workspace-proof.consumer-viewer #proof-preview{background:var(--surface)}
body.workspace-proof:not([data-theme=dark]) :is(#proof-preview,.workspace-player){--player-bg:var(--surface);--player-fg:var(--ink);--player-muted:var(--subtle);--player-control-bg:var(--surface);--player-rule:var(--input-border,#858585)}
body.workspace-proof:not([data-theme=dark]) .workspace-player .proof-preview-stage{background:var(--hover)}
body.workspace-proof[data-theme=dark] .workspace-player .proof-preview-stage{background:var(--media)}
body.workspace-proof :is(#proof-preview,.workspace-player):fullscreen{--player-bg:#141414;--player-fg:#f5f5f5;--player-muted:#cfcfcf;--player-control-bg:#242424;--player-rule:#777}
body.workspace-proof :is(#proof-preview,.workspace-player):fullscreen .proof-preview-stage{background:#000}
.workspace-proof .workspace-player .proof-preview-stage .proof-media-empty,.workspace-proof .workspace-player .proof-preview-stage>p{color:var(--ink)}

/* S2-C: detail in and out. The header is the title, Back as text and one × (top right). The actions bar sits below the video: play,
   Save frame, In, Out, Save clip on the left; collection, ←/→, Details, Save, ⋯ on the right (mute, frame steps and full screen inside ⋯).
   The save picker opens as a sheet under the bar. The rail is draggable at any width (60–480). */
.workspace-proof .viewer-header{align-items:center;padding:10px 0 6px}
.workspace-proof .viewer-header .viewer-return{flex:1;min-width:0;align-items:baseline;gap:12px}
.workspace-proof .viewer-header .viewer-return>button{border:0;background:transparent;padding:0;min-height:0;font-size:12px;color:var(--subtle);white-space:nowrap}
@media(hover:hover){.workspace-proof .viewer-header .viewer-return>button:hover{color:var(--ink);text-decoration:underline}}
.workspace-proof .viewer-header .viewer-title{font-size:14px;font-weight:500;line-height:20px}
.workspace-proof .viewer-header>.viewer-close{margin-left:auto}
.workspace-proof .viewer-actions-bar{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 12px;flex:none;min-width:0;padding:8px 0 4px}
.workspace-proof .viewer-actions-left,.workspace-proof .viewer-actions-bar .viewer-actions{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;margin:0}
.workspace-proof .viewer-actions-bar .viewer-actions{margin-left:auto;justify-content:flex-end}
.workspace-proof .viewer-actions-bar :is(button,summary){border:1px solid var(--rule);border-radius:999px;background:transparent;color:var(--ink);font-size:12px;line-height:16px;min-height:32px;padding:6px 10px;white-space:nowrap}
.workspace-proof .viewer-actions-bar [aria-pressed=true]{background:var(--selected)}
.workspace-proof .viewer-actions-bar .viewer-more>summary{width:32px;height:32px;padding:0;display:grid;place-items:center}
.workspace-proof .viewer-actions-bar .viewer-more>div{position:absolute;right:0;bottom:calc(100% + 6px);z-index:30;min-width:180px;display:flex;flex-direction:column;gap:4px;padding:6px;background:var(--surface);border:1px solid var(--rule);border-radius:12px;box-shadow:0 8px 28px #0004}
.workspace-proof .viewer-actions-bar .viewer-more>div>button{border:0;border-radius:8px;text-align:left;width:100%}
.workspace-proof .viewer-save-sheet{flex:none;min-width:0}
.workspace-proof .viewer-save-sheet:empty{display:none}
.workspace-proof .viewer-save-sheet dialog.workspace-save-picker.save-picker-inline{position:static;inset:auto;display:block;width:100%;max-width:none;max-height:none;margin:4px 0 8px;box-shadow:none;border-radius:12px}
.workspace-proof .viewer-save-sheet dialog.workspace-save-picker.save-picker-inline:not([open]){display:none}
@media(max-width:600px){.workspace-proof .viewer-save-sheet dialog.workspace-save-picker.save-picker-inline{position:static!important;left:auto!important;right:auto;bottom:auto;top:auto!important;width:100%;max-height:none;border-radius:12px;padding:12px}.workspace-proof .viewer-actions-bar :is(button,summary){min-height:40px}.workspace-proof .viewer-actions-bar .viewer-more>summary{width:40px;height:40px}}
.workspace-proof .viewer-header h1.viewer-title{margin:0}
/* W12: the save sheet's Board · Tracker · Reel tabs and presets; a compact preview (Joe 11-10: the save-frame image was "way too big") */
.workspace-save-picker .save-picker-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.workspace-save-picker .save-picker-tabs>button{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.2;padding:6px 12px;border-radius:12px}
.workspace-save-picker .save-picker-tabs>button>small{font-size:10px;color:var(--subtle)}
.workspace-save-picker .save-picker-presets{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px}.workspace-save-picker .save-picker-presets>p{flex-basis:100%;margin:0;font-size:12px;color:var(--subtle)}
.workspace-save-picker .save-picker-preview img,.workspace-save-picker .save-picker-preview video{display:block;max-width:100%;max-height:140px;width:auto;object-fit:contain;border-radius:8px}

/* RUL-386: the text card on the viewer stage (nothing stored for this piece) */
.workspace-proof .proof-preview-stage>.viewer-text-card{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:320px;padding:24px;box-sizing:border-box}
.workspace-proof .proof-preview-stage>.viewer-text-card>.gallery-title-card{width:min(760px,100%);height:auto;aspect-ratio:16/9;padding:clamp(20px,4vw,44px);border-radius:16px;gap:10px}
.workspace-proof .proof-preview-stage>.viewer-text-card>.bt-cover{flex:none;width:min(760px,100%)}/* Joe 14 Nov (image 238): an article with no picture showed an empty stage; the type cover had no width inside the centered card */
.workspace-proof .viewer-text-card .gallery-title-card>strong{font-size:clamp(20px,2.4vw,34px);line-height:1.12;-webkit-line-clamp:4}
.workspace-proof .viewer-text-card .gallery-title-card>small{font-size:14px;line-height:1.45;white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.workspace-proof .viewer-text-card .gallery-title-card>.gallery-title-kicker{font-size:11px}
/* walk r257: the shared title-card look is scoped to gallery cards; the stage card carries its own surface so it reads as a card, not text on black */
.workspace-proof .proof-preview-stage>.viewer-text-card>.gallery-title-card{box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(160deg,var(--selected),var(--hover));overflow:hidden}
.workspace-proof .viewer-text-card .gallery-title-card>strong{font-weight:650;color:var(--ink);letter-spacing:-.01em;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.workspace-proof .viewer-text-card .gallery-title-card>small{color:var(--subtle);overflow:hidden}
.workspace-proof .viewer-text-card .gallery-title-card>.gallery-title-kicker{order:-1;margin-bottom:auto;text-transform:uppercase;letter-spacing:.06em}

/* RUL-387 (decided.md#website-page-pipeline): a web page's full-page screenshot fills the stage width and scrolls top to bottom */
.workspace-proof .proof-preview-stage.viewer-page-shot{overflow-y:auto;overscroll-behavior:contain;align-items:flex-start;justify-content:center;display:flex}
.workspace-proof .proof-preview-stage.viewer-page-shot :is(img,.gallery-media){width:min(100%,1100px);max-width:100%;height:auto;max-height:none;object-fit:initial;aspect-ratio:auto;flex:none}
.workspace-proof .proof-preview-stage.viewer-page-shot .gallery-media img{width:100%;height:auto}

/* RUL-426: the panel stays while the next item loads; its current details dim instead of being replaced */
.workspace-proof #proof-detail.is-pending{opacity:.55;transition:opacity .15s ease}
@media (prefers-reduced-motion:reduce){.workspace-proof #proof-detail.is-pending{transition:none}}

/* RUL-426: the outgoing media sits over the stage while the next one loads, then fades */
.workspace-proof .proof-preview-stage{position:relative}
.workspace-proof .proof-preview-stage>.stage-outgoing{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain;pointer-events:none;transition:opacity 140ms ease}
.workspace-proof .proof-preview-stage>.stage-gone{opacity:0}
@media (prefers-reduced-motion:reduce){.workspace-proof .proof-preview-stage>.stage-outgoing{transition:none}}
.workspace-proof .moments-all>summary{font-size:13px}

/* 13 Nov (Joe: scrolling a full page was not obvious): the stage fades at its foot until the page is scrolled to the end; no label over the picture */
.workspace-proof .proof-preview-stage.viewer-page-shot[data-scroll-cue]{-webkit-mask-image:linear-gradient(to bottom,currentColor calc(100% - 64px),transparent);mask-image:linear-gradient(to bottom,currentColor calc(100% - 64px),transparent)}
/* RUL-442: the next item's tile picture while its record loads, fitted like the media it stands for */
.workspace-proof .proof-preview-stage>.stage-provisional{width:100%;height:100%;object-fit:contain}
/* RUL-441 (Joe 13 Nov: the old app's compact save pop-out): on desktop the viewer's save sheet is a pop-out at the right under the player's
   actions, 320 px wide; the piece's picture and title give way to the destinations; on a phone it stays the full-width sheet */
@media(min-width:601px){.workspace-proof .viewer-save-sheet{position:relative}
 .workspace-proof .viewer-save-sheet dialog.workspace-save-picker.save-picker-inline{position:absolute;top:4px;right:0;left:auto;width:320px;max-height:min(70vh,560px);overflow:auto;margin:0;z-index:30;padding:12px;border:1px solid var(--rule);background:var(--surface)}
 .workspace-proof .viewer-save-sheet .save-picker-inline>h3{font-size:12px;font-weight:500;color:var(--subtle);margin:0 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .workspace-proof .viewer-save-sheet .save-picker-inline .save-picker-preview img{display:none}
 .workspace-proof .viewer-save-sheet .save-picker-inline>header>h2{font-size:14px}
 .workspace-proof .viewer-save-sheet .save-picker-inline>label textarea{min-height:0;height:34px}}

/* UI audit 13 Nov PM (pipeline thread, with the UI thread's yes; Joe image 208 at 572 px: the Details sheet covered half the picture).
   When the viewer lays Details over the stage (viewer-inspector-overlay: the stage is inert behind it), the stage's own controls cannot
   be used, so they step aside. The sheet's head is one row: Back on the left, close on the right. At 720 px and below the overlay is a
   bottom sheet the width of the screen with the picture kept above it (an iOS sheet; its close already slides down and drags down);
   wider, it stays at the right and the picture centres in the space the sheet leaves. */
.workspace-proof.viewer-active.viewer-inspector-overlay.viewer-panel-open #proof-preview .workspace-player>:is(.viewer-header,.workspace-player-controls,.viewer-actions-bar,.viewer-save-sheet,.workspace-media-provenance,.workspace-player-attachments){display:none}
.workspace-proof.viewer-active.viewer-inspector-overlay #proof-inspector>.viewer-sheet-handle{order:-2}
.workspace-proof.viewer-active.viewer-inspector-overlay #proof-inspector>[data-viewer-session-return]{order:-1;flex:none;align-self:stretch;display:flex;align-items:center;justify-content:flex-start;min-height:44px;margin:0;padding:0 52px 0 18px;border:0;border-bottom:1px solid var(--rule);border-radius:0;background:transparent;color:var(--subtle);font-size:12px}
@media(hover:hover){.workspace-proof.viewer-active.viewer-inspector-overlay #proof-inspector>[data-viewer-session-return]:hover{color:var(--ink)}}
.workspace-proof.viewer-active.viewer-inspector-overlay #proof-inspector:has(>[data-viewer-session-return])>.viewer-panel-close{top:4px;width:36px;height:36px;min-height:36px}/* a 36 px target, centred on the 44 px Back row */
.workspace-proof.viewer-active.viewer-inspector-overlay #proof-inspector:has(>[data-viewer-session-return]) .hosted-head-row{padding-right:0}
@media(min-width:721px){.workspace-proof.viewer-active.viewer-inspector-overlay.viewer-panel-open #proof-preview .workspace-player{box-sizing:border-box;padding-right:min(360px,100%)}}
@media(max-width:720px){
 .workspace-proof.viewer-active #proof-preview .workspace-player{box-sizing:border-box;height:100%;transition:height var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1)}
 .workspace-proof.viewer-active.viewer-inspector-overlay #proof-inspector{inset:auto 0 0 0;top:auto;width:100%;height:68%;max-width:none;border-left:0;border-radius:16px 16px 0 0;transform:translateY(100%);transition:transform var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),opacity var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),visibility 0s linear var(--dur-panel)}
 .workspace-proof.viewer-active.viewer-inspector-overlay.viewer-panel-open #proof-inspector{width:100%;flex-basis:auto;transform:translateY(0);box-shadow:none;border-top:1px solid var(--rule);transition:transform var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1),opacity var(--dur-panel) cubic-bezier(0.22,0.8,0.25,1)}
 .workspace-proof.viewer-active.viewer-inspector-overlay.viewer-panel-open #proof-preview .workspace-player{height:32%;padding:8px}
 .workspace-proof.viewer-active.viewer-inspector-overlay #proof-inspector:has(>[data-viewer-session-return])>.viewer-panel-close{top:17px}
}
@media (max-width:720px) and (prefers-reduced-motion:reduce){.workspace-proof.viewer-active #proof-preview .workspace-player{transition:none}}

/* Release 323 (Joe 15 Nov, P-20261115T125632, pictures 304-309 and 312): the story on a phone is ONE scrolling column, not an iOS card over the picture
   (workspace-viewer.js phoneColumn sets body[data-viewer-column] under 601 px with Details open). The inspector, its detail host and the panel step out of
   the box tree, so the panel's head comes first, then the picture or video at its own aspect ratio (at most 56% of the screen height, no empty bands),
   then the rest of the panel; no handle, no rounded sheet, no close-details icon, no Back row at the top; a compact Back at the bottom. */
@media(max-width:600px){
 body.workspace-proof.viewer-active[data-viewer-column] #proof-body{display:flex;flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
 body.workspace-proof.viewer-active[data-viewer-column] :is(#proof-inspector,#proof-detail,#proof-detail>*){display:contents}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-inspector>:is(.viewer-panel-close,.viewer-sheet-handle,.proof-panel-close,.proof-resizer,[data-viewer-session-return]){display:none}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-detail>*>*{box-sizing:border-box;min-width:0;margin-inline:16px;order:3}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-detail>*>:first-child{order:1}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-inspector .hosted-head-row{padding-right:0}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-preview{order:2;flex:none;height:auto;min-height:0;overflow:visible;border:0}
 body.workspace-proof.viewer-active.viewer-panel-open[data-viewer-column] #proof-preview .workspace-player{height:auto;min-height:0;padding:0 16px;transition:none}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-preview .proof-preview-stage{flex:none;height:auto;min-height:0;max-height:56dvh;overflow:hidden;background:transparent}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-preview .proof-preview-stage :is(img,video):not(.stage-outgoing){display:block;width:auto;max-width:100%;height:auto;max-height:56dvh;margin-inline:auto;object-fit:contain}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-body>[data-viewer-phone-back]{position:fixed;left:max(16px,env(safe-area-inset-left,0px));bottom:max(16px,env(safe-area-inset-bottom,0px));z-index:45;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 16px 0 10px;border:1px solid var(--rule);border-radius:999px;background:var(--surface);color:var(--ink);font-size:15px}
 body.workspace-proof.viewer-active[data-viewer-column] #proof-body>[data-viewer-phone-back]>svg{width:18px;height:18px}

}

/* Release 323 (Joe 15 Nov, pictures 309 and 310): Join the beta is its own dialog. Desktop keeps the browser's modal centering (no inset or margin
   override), at most 420 px wide; under 601 px it is a bottom sheet with the save picker's phone values. */
.workspace-proof dialog.beta-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;overflow:auto;border:1px solid var(--rule);border-radius:20px;background:var(--surface);color:var(--ink)}
.workspace-proof .beta-dialog>header{position:static;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0;border:0;background:transparent}
.workspace-proof .beta-dialog>header>h2{margin:0;font-size:16px;text-wrap:balance}/* release 330: never one word alone on a second line */
.workspace-proof .beta-dialog>p{margin:12px 0;font-size:14px;line-height:1.5}
.workspace-proof .beta-dialog>p.public-gate-status{margin:8px 0;font-size:13px;color:var(--subtle)}
.workspace-proof .beta-dialog>p.public-gate-status:empty{display:none}
.workspace-proof .beta-dialog>form{display:flex;flex-direction:row;align-items:center;gap:8px;margin:12px 0}
.workspace-proof .beta-dialog>form input[type=email]{flex:1;min-width:0;height:40px;padding:0 14px;border-radius:999px}
.workspace-proof .beta-dialog>form>button{flex:none;white-space:nowrap}
/* Release 330 (design critique findings 2 and 4): the one sign-up component, in the dialog and in the gate card (consumer-ui.js betaJoinHTML). Join the beta is
   the kit's primary button (ink, the one obvious next step), as tall as the email field beside it; the sentence's link back to the Briefing is plain ink */
.workspace-proof .beta-dialog>form>button.bt-btn{height:40px;min-height:40px;padding:0 16px}
.workspace-proof .beta-dialog>p[data-beta-sentence] a{color:inherit}
.workspace-proof .beta-dialog>p[data-beta-signin]{display:flex;align-items:center;gap:8px;color:var(--subtle);font-size:13px}
.workspace-proof .beta-dialog>p[data-beta-signin][hidden],.workspace-proof .beta-dialog>p[data-beta-done-row][hidden]{display:none}
@media(max-width:600px){.workspace-proof dialog.beta-dialog{inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:92dvh;border-radius:20px 20px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}}
@media(max-width:379px){.workspace-proof .beta-dialog>form{flex-direction:column;align-items:stretch}}

/* Release 323 (Joe 15 Nov): the rail's Sign in never wraps; in the collapsed rail it is the sign-in icon (its name and tooltip "Sign in"). Release 330 (design
   critique finding 5): one Sign in everywhere, the kit's secondary button with the sign-in icon and the word, so the wide rail shows both (as the dialog, the
   gate and the phone menu do) */
body.bt-public #proof-user-footer>.proof-signin{white-space:nowrap;display:flex;align-items:center;gap:10px;min-width:0;height:30px;padding:0 8px;border-radius:8px;color:var(--ink);font-size:13px;text-decoration:none}
body.bt-public #proof-user-footer>.proof-signin>svg{flex:none;width:18px;height:18px}
@media(hover:hover){body.bt-public #proof-user-footer>.proof-signin:hover{background:var(--hover)}}
.workspace-proof.proof-main-collapsed #proof-user-footer>.proof-signin{justify-content:center;width:32px;padding:0}/* release 336: a rail row (the same height, padding, gap, icon and type as Home), no border */
/* Release 325: a signed-in member's account. The rail's foot: "Signed in as …" on one line, cut with an ellipsis (the whole value in its tooltip), then the Sign out icon; the collapsed rail shows the icon only. The phone menu, the Sections list and the gate card: the name row, then Sign out. */
#proof-user-footer>[data-account]{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--subtle)}
.workspace-proof.proof-main-collapsed #proof-user-footer>[data-account]{display:none}
#proof-user-footer>[data-sign-out],[data-account-row]>[data-sign-out],[data-sheet-rows]>[data-sign-out],[data-sections-rows]>[data-sign-out]{display:flex;flex:none;margin:0}
[data-account]>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-account][data-sheet-row],[data-account][data-section-row]{cursor:default;color:var(--subtle)}
[data-account-row]{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}
[data-account-row]>[data-account]{display:block;min-width:0;max-width:60%}
