/* Screen-sized staff workspaces. The shell never scrolls; lists and canvases do. */
body.reviewing{height:100dvh;overflow:hidden}body.reviewing #app{height:100%;display:grid;grid-template-rows:64px minmax(0,1fr)}
.focus-header{padding:8px 16px;gap:14px;min-width:0}.focus-header h1{font-size:18px;white-space:nowrap;margin:0}.focus-header nav{margin-left:auto;gap:0}.owner-state{font-size:12px;white-space:nowrap;color:var(--muted)}.focus-header .order-menu{display:inline-flex}.focus-main{min-height:0;min-width:0;padding:12px 16px 16px;overflow:hidden}
.review-workbench{height:100%;display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;min-height:0}.review-index{overflow:auto;min-height:0}.index-title{font-size:12px;padding:8px;color:var(--muted)}.review-index button{display:flex;width:100%;text-align:start;justify-content:start;padding:8px;border-color:transparent;background:transparent;margin-bottom:4px;gap:8px}.review-index button.active{background:#e5ebdc;border-color:#9bac8b}.review-index img{width:42px;height:54px;object-fit:contain;flex:none}.review-index span{font-size:12px;line-height:1.4;min-width:0;overflow-wrap:anywhere}.review-index small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.review-desk{min-height:0;min-width:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px}.scene-bar{display:flex;gap:12px;align-items:center;min-width:0}.scene-bar select{flex:1;min-width:0;max-width:600px;margin:0;padding:8px;font-size:14px}.scene-status{font-size:12px;color:var(--muted)}.view-bar{display:flex;gap:6px;min-width:0}.view-bar button{padding:8px 12px}.view-bar [aria-pressed=true]{background:#e2ead5;border-color:#819b6c}.view-bar [data-do=photos]{margin-left:auto}
.review-content{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:14px}.illustration-panel{min-width:0;min-height:0;display:flex;flex-direction:column;gap:8px}.review-image,.image-canvas{position:relative;min-width:0;min-height:0;overflow:hidden;background:#e8e9e1;border:1px solid var(--line);border-radius:8px;touch-action:none;display:flex;align-items:center;justify-content:center;flex:1}.image-canvas>img{width:100%;height:100%;object-fit:contain;user-select:none;transform-origin:center;pointer-events:none;max-width:none}
.reference-panel{min-height:0;min-width:0;display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:12px;gap:8px}.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.reference-heading h2{font-size:15px;margin:0}.reference-heading button{font-size:12px;padding:5px 10px}.reference-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#f2f1e9;border-radius:6px;overflow:hidden}.reference-stage>img{width:100%;height:100%;object-fit:contain}.image-expand{position:absolute;bottom:8px;right:8px}.reference-switch{display:flex;align-items:center;gap:6px;justify-content:space-between}.reference-switch span{font-size:12px;text-align:center;overflow-wrap:anywhere}.reference-switch button{padding:8px;min-width:44px}.reference-person{font-size:12px;margin:0;color:var(--muted)}
.page-use{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.page-use select{font-size:13px;padding:8px;max-width:55%}.proof-state{font-size:12px;color:var(--muted)}.proof-state.outdated{color:var(--amber)}.decision-bar{border-top:1px solid var(--line);padding-top:8px;min-width:0}.decision-bar p{font-size:12px;color:var(--muted);margin:0 0 8px;line-height:1.35}.decision-actions{display:flex;gap:8px}.decision-actions .primary{min-width:210px}.decision-actions .feedback-action{margin-left:auto}.version-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:auto;min-height:0;flex:1}.version-grid figure{display:flex;flex-direction:column;min-height:0;align-items:stretch}.version-grid img{width:100%;height:240px;object-fit:contain;background:#e8e9e1;border-radius:8px}.version-grid figcaption{padding:8px 0}.fix-options{display:grid;gap:10px;margin-top:20px}.fix-options button,.fix-options .button{justify-content:start}.enlarged{height:55dvh;min-height:200px;flex:none}.order-menu-dialog{max-width:480px}
.proof-workbench{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px}.proof-controls{display:flex;gap:10px;align-items:center;min-width:0}.proof-controls select{min-width:0;max-width:420px;flex:1;padding:8px}.proof-controls [data-do=reading-mode]{margin-left:auto}.proof-canvas{min-height:0;min-width:0;display:flex;overflow:hidden;justify-content:center}.proof-canvas>.image-canvas{height:100%}.proof-canvas.continuous{display:block;overflow:auto;overscroll-behavior:contain}.proof-canvas article{max-width:800px;margin:0 auto 24px;scroll-margin-top:0}.proof-canvas article img{width:100%;height:auto;aspect-ratio:4/5;display:block}.proof-canvas article button{margin-top:8px}.proof-footer{display:flex;justify-content:space-between;gap:12px;align-items:center}.page-navigation,.proof-decisions{display:flex;align-items:center;gap:6px}.page-navigation label{display:flex;align-items:center;gap:6px;margin:0}.page-navigation input{width:68px;margin:0;padding:8px}.page-navigation>span{font-size:12px}.proof-decisions{margin-left:auto}#confirm-delivery{margin-top:12px}.reviewing #notice{bottom:110px;right:16px;pointer-events:none}
.crop-preview{touch-action:none;cursor:grab}.crop-preview:active{cursor:grabbing}.crop-preview img{pointer-events:none;user-select:none}
@media(max-width:1150px){.focus-header nav,.focus-header nav[aria-label=Order]{display:none}.focus-header .order-menu{margin-left:auto}.focus-header .owner-state{display:none}.focus-header nav a{padding-inline:10px}.review-workbench{grid-template-columns:130px minmax(0,1fr);gap:10px}.review-index img{width:30px;height:42px}.review-content{grid-template-columns:minmax(0,1.3fr) minmax(200px,1fr)}.scene-status{display:none}.reference-panel{padding:8px}}
@media(max-width:800px){
 body.reviewing #app{grid-template-rows:58px minmax(0,1fr)}.focus-header{flex-wrap:nowrap;padding:6px 10px;gap:10px}.focus-header h1{font-size:16px}.focus-header nav,.focus-header nav[aria-label=Order],.focus-header .owner-state{display:none}.focus-header .order-menu{display:inline-flex;margin-left:auto}.focus-main{padding:8px 10px max(8px,env(safe-area-inset-bottom))}.review-workbench{display:block}.review-index{display:none}.review-desk{height:100%;gap:8px}.scene-bar{gap:6px}.scene-bar select{font-size:16px}.scene-bar button{font-size:12px;padding:8px}.view-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.view-bar:has([data-view=compare]){grid-template-columns:repeat(4,minmax(0,1fr))}.view-bar button{font-size:12px;padding:6px;line-height:1.2;min-width:0}.view-bar [data-do=photos]{margin:0}.review-content{display:flex}.illustration-panel{width:100%;height:100%}.reference-panel{display:none;width:100%;height:100%}.show-photos .illustration-panel{display:none}.show-photos .reference-panel{display:flex}.reference-heading h2{font-size:16px}.decision-actions{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:6px}.decision-actions .primary{min-width:0}.decision-actions button{font-size:12px;padding:8px}.decision-actions .feedback-action{margin:0;padding:8px}.decision-bar p{font-size:12px;margin-bottom:6px}.page-use select{font-size:16px;max-width:52%}.page-use .proof-state{flex:1}.proof-controls{gap:6px;flex-wrap:wrap}.proof-controls select{font-size:16px;max-width:none}.proof-controls .proof-state{order:3;flex-basis:100%}.proof-controls button{font-size:12px;padding:8px}.proof-footer{flex-wrap:wrap;gap:8px}.page-navigation{flex:1;justify-content:space-between}.page-navigation button{padding:8px;min-width:38px}.page-navigation input{font-size:16px;width:58px}.proof-decisions{width:100%;margin:0}.proof-decisions .primary{flex:1}.version-grid{grid-template-columns:1fr 1fr}.version-grid img{height:200px}.version-grid button{font-size:12px;padding:6px}
}
@media(max-width:360px){.focus-header{gap:6px}.decision-actions{grid-template-columns:1.25fr 1fr 1fr}.decision-actions .feedback-action{grid-column:1/-1;min-height:32px}.view-bar button{font-size:11px}.scene-bar button{font-size:11px}.decision-bar p{font-size:11px}.page-navigation label{font-size:12px}}
@media(max-height:500px){.focus-main{padding:4px 8px}.review-desk{gap:4px}.decision-bar p{display:none}.illustration-panel{position:relative}.proof-controls .proof-state{order:0;flex-basis:auto}.proof-footer{flex-wrap:nowrap}.proof-decisions{width:auto}.reviewing #notice{bottom:65px}}
@media(max-height:500px){
 .review-workbench{grid-template-columns:minmax(0,1fr)}.review-index{display:none}
 .reference-panel{position:relative;padding:0;gap:0}.reference-person{display:none}.reference-stage{min-height:0}
 .reference-heading{position:absolute;top:4px;left:4px;right:4px;z-index:1}.reference-heading h2{display:none}.reference-heading button{margin-left:auto;min-height:28px;padding:4px 8px;font-size:11px}
 .reference-switch{position:absolute;bottom:4px;left:4px;right:94px}.reference-switch span{background:#fffef8e6;padding:3px;font-size:10px}.reference-switch button{background:#fffef8e6}
 .reference-stage .image-expand{bottom:4px;right:4px}
}
@media(min-width:801px){.view-bar [data-do=photos]{display:none}}

/* Quiet controls: compact shape, generous hit area, one emphasized decision. */
.reviewing button,.reviewing .button,.reviewing select{border-radius:5px}
.focus-header>.button,.focus-header .order-menu{border-color:transparent;background:transparent;padding-inline:8px}
.scene-bar{gap:6px}.scene-bar select{max-width:none;border-color:transparent;background:transparent;padding-left:0}
.scene-navigation{display:flex;gap:0;flex:none}.icon-button{width:44px;height:44px;min-height:44px;flex:none;padding:0!important;border:0;background:transparent}.icon-button svg{flex:none}.scene-info-button{margin-left:2px}
.scene-bar .ready-replacement{border:0;background:transparent;padding:4px 8px;white-space:nowrap;font-size:12px}
.view-bar{gap:18px;border-bottom:1px solid var(--line)}
.view-bar button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:8px 0;min-height:40px;color:var(--muted)}
.view-bar [aria-pressed=true]{background:transparent;border-color:var(--green);color:var(--ink)}
.view-bar button:hover{background:transparent;color:var(--ink)}
.decision-actions .primary{min-width:0}.decision-actions button{padding:8px 14px;font-size:13px}
.decision-actions>button:not(.primary){background:transparent;border-color:transparent}
.decision-actions>button:not(.primary):hover{background:#e8eddf}
.reference-heading button{border:0;background:transparent;padding-inline:4px}.reference-switch button{border:0;background:transparent}
.image-expand{width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:4px;background:#fffef8e6}
.image-canvas{cursor:grab;overscroll-behavior:contain;-webkit-user-select:none;user-select:none}
.image-canvas:active{cursor:grabbing}.image-canvas:focus-visible,.crop-preview:focus-visible{outline:2px solid #b88134;outline-offset:-3px}
.version-grid .image-canvas{min-height:150px}.version-grid .image-canvas>img{height:100%;border-radius:0}
.reviewing dialog{border-radius:8px;padding:20px;overflow:auto}.reviewing dialog h2{font:500 20px/1.3 Arial,Helvetica,sans-serif;letter-spacing:0;margin-bottom:16px}
.reviewing dialog .dialog-actions{margin-top:18px}.reviewing dialog .cancel{border-color:transparent;background:transparent}
.crop-preview{width:min(100%,calc(45dvh * var(--crop-ratio)));max-height:none;margin-inline:auto;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
@media(max-width:800px){
 .scene-bar .scene-status{display:none}.scene-bar select{font-size:16px}.scene-bar{gap:0}
 .view-bar,.view-bar:has([data-view=compare]){display:flex;gap:12px;justify-content:flex-start}
 .view-bar button{font-size:12px;white-space:nowrap;min-height:40px;padding-inline:0}.view-bar [data-do=photos]{margin-left:auto}
 .decision-actions{grid-template-columns:1.35fr 1fr 1fr;gap:2px}.decision-actions button{padding:8px 6px;font-size:12px}
}
@media(max-width:360px){.view-bar,.view-bar:has([data-view=compare]){gap:8px}.view-bar button{font-size:11px}.scene-bar select{font-size:16px}.scene-bar .ready-replacement{font-size:10px;padding:4px}}
@media(max-height:500px){.crop-preview{width:min(100%,calc(40dvh * var(--crop-ratio)))}.reviewing dialog{padding:12px 20px}.reviewing dialog h2{margin-bottom:8px}.reviewing dialog .muted{margin-bottom:8px}.reviewing dialog .dialog-actions{margin-top:8px}}

@media(max-height:500px) and (min-width:600px){
 .reviewing dialog.crop-dialog{width:min(720px,calc(100vw - 24px))}
 .crop-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}
 .crop-dialog .crop-preview{grid-column:1;grid-row:1/3;width:min(100%,calc(58dvh * var(--crop-ratio)))}
 .crop-context{grid-column:2;grid-row:1}.crop-context>label{margin-top:0}
 .crop-dialog .dialog-actions{grid-column:2;grid-row:2;align-self:end}
}

/* Current scene and page are labels; navigation stays in the list and arrows. */
.scene-title{flex:1;min-width:0;margin:0;font:500 15px/1.35 Arial,Helvetica,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-use{min-height:28px;font-size:13px}.page-use #page-label{margin-right:auto}
.illustration-window{position:relative;display:flex;flex:1;min-width:0;min-height:0}
.illustration-window>.scene-info-button{position:absolute;top:8px;right:8px;z-index:2;margin:0;background:#fffef8e8}
.illustration-window>.scene-info-button:hover{background:var(--paper)}
.scene-page-links{display:flex;gap:8px;flex-wrap:wrap}

/* Explicit, evenly divided review tabs. */
.view-bar,.view-bar:has([data-view=compare]){display:flex;gap:0;padding:3px;background:#e6e9e1;border:1px solid #c3ccbd;border-radius:6px}
.view-bar [role=tab]{flex:1 1 0;min-width:0;margin:0!important;padding:8px 6px;min-height:40px;border:1px solid transparent;border-radius:3px;color:#53604f;font-size:13px;line-height:1.2;white-space:normal}
.view-bar [role=tab][aria-selected=true]{background:var(--paper);border-color:#acbba3;color:var(--ink);font-weight:600}
.view-bar [role=tab]:hover{background:#f4f5ee}
.view-bar [role=tab][aria-selected=true]:hover{background:var(--paper)}
.illustration-window>.scene-info-button,.illustration-window>.scene-info-button:hover{background:transparent}
.decision-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:460px}
.decision-actions button{min-height:44px;font-size:14px;padding:8px 16px}
.decision-actions>button:not(.primary){border:1px solid #bac5b5;background:transparent}
.framed-stage{flex:1;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;padding:30px 12px 12px;background:#e8e9e1;border-radius:6px;overflow:hidden}
.frame-wrap{position:relative;border:3px solid #345b45;flex:none}
.frame-dimensions{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);font-size:12px;line-height:16px;white-space:nowrap;letter-spacing:.2px}
.approval-frame{position:relative;overflow:hidden;touch-action:none;overscroll-behavior:contain;cursor:grab;user-select:none;-webkit-user-select:none}
.approval-frame:active{cursor:grabbing}.approval-frame:focus-visible{outline:2px solid #b88134;outline-offset:-3px}
.approval-frame img{position:absolute;max-width:none;pointer-events:none;user-select:none}
@media(max-width:800px){.decision-actions{max-width:none}.view-bar [role=tab]{font-size:12px;padding:8px 4px}.scene-title{font-size:14px}}
@media(max-width:360px){.view-bar [role=tab]{font-size:11px}.view-bar,.view-bar:has([data-view=compare]){gap:0}}
@media(min-width:801px){.view-bar [data-do=photos]{display:none}}
@media(max-height:500px) and (min-width:600px){
 .review-desk{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) auto;column-gap:16px}
 .scene-bar{grid-column:1;grid-row:1}.view-bar{grid-column:2;grid-row:1}
 .review-content{grid-column:1/-1;grid-row:2}.decision-bar{grid-column:1/-1;grid-row:3}
 .view-bar [role=tab]{font-size:11px;min-height:36px;padding:4px}
 .decision-actions{max-width:400px;margin-left:auto}.page-use{min-height:24px}
}

/* A crop decision asks once; the ordinary review has no instructional footer. */
.decision-bar .crop-confirmation{display:block;font-size:14px;color:var(--ink);font-weight:600}
.regeneration-prompt{display:block;margin-top:8px;height:260px;min-height:min(180px,35dvh);max-height:45dvh;font-size:16px}

/* Simultaneous comparison: full width above/below on phones, columns in landscape. */
.page-use{flex-wrap:nowrap;min-height:22px}
.review-save-status{margin-inline-start:auto;min-width:76px;display:inline-flex;justify-content:flex-end;align-items:center;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap;pointer-events:none}
.review-save-status:empty{visibility:hidden}
.review-save-spinner{width:11px;height:11px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:review-spin .7s linear infinite}
.review-save-status[data-phase=saved]{animation:review-save-fade 150ms ease-out 250ms forwards}
@keyframes review-spin{to{transform:rotate(360deg)}}
@keyframes review-save-fade{to{opacity:0}}
@media(prefers-reduced-motion:reduce){.review-save-spinner{animation:none}.review-save-status[data-phase=saved]{animation:none}}
@media(max-width:800px){
 .review-content{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,3fr) minmax(0,2fr);gap:10px}
 .illustration-panel,.show-photos .illustration-panel{display:flex;width:auto;height:auto}
 .reference-panel,.show-photos .reference-panel{display:flex;width:auto;height:auto;padding:6px;gap:4px}
 .reference-heading{position:static;flex:none}.reference-heading h2{display:block;font-size:13px}.reference-heading button{font-size:12px;min-height:32px;padding:4px}
 .reference-switch{position:static;flex:none}.reference-person{display:none}
 .reference-panel[data-reference-count="1"] .reference-switch{display:none}
 .reference-stage{flex:1;min-height:0}.reference-stage .image-expand{bottom:4px;right:4px}
 .version-grid .image-canvas{min-height:0}.version-grid img{min-height:0;height:100%}
}
@media(max-width:1000px) and (orientation:landscape){
 .review-content{grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:minmax(0,1fr)}
 .reference-panel,.show-photos .reference-panel{display:flex;width:auto;height:auto}
}

/* Version browsing is local to the illustration; replacing it remains explicit. */
.page-use #page-label{margin-right:0}
.page-use .scene-info-button{width:32px;height:32px;min-height:32px;margin:0;background:transparent}
.page-use .scene-info-button:hover{background:transparent;color:var(--green)}
.reference-heading .reference-toggle{position:relative;width:44px;height:32px;min-height:32px;flex:none;padding:0;background:transparent;border:0}
.reference-toggle::before{content:"";position:absolute;inset:6px 2px;background:#a0ab9b;border-radius:12px}
.reference-toggle span{position:absolute;top:9px;left:5px;width:14px;height:14px;border-radius:50%;background:var(--paper);transition:transform .15s}
.reference-toggle[aria-checked=true]::before{background:var(--green)}
.reference-toggle[aria-checked=true] span{transform:translateX(20px)}
.reference-stage .image-expand,.reference-stage .image-expand:hover{background:transparent}
.illustration-window.has-versions{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:minmax(0,1fr) auto;gap:4px 0}
.has-versions>.version-previous{grid-column:1;grid-row:1;align-self:center}
.has-versions>.framed-stage,.has-versions>.review-image,.has-versions>.empty{grid-column:2;grid-row:1}
.has-versions>.version-next{grid-column:3;grid-row:1;align-self:center}
.version-caption{grid-column:1/-1;grid-row:2;text-align:center;font-size:11px;line-height:16px;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.reference-toggle span{transition:none}}
@media(max-height:500px){
 .reference-heading{position:static;flex:none;padding:0 4px}
 .reference-heading h2{display:block;font-size:12px}
}

/* The shell header, nav and header account control are owned by app.css. */
.workspace-header .brand{display:inline-flex;align-items:baseline;gap:.4em;font-size:12px;letter-spacing:2.2px;font-weight:600;text-decoration:none;color:var(--ink);white-space:nowrap}
/* The book frame fills the viewport under the shared header, which no longer carries a fixed
   corner control, so no footer shelf is reserved. */
main.wrap:has(> .book-frame){padding:0}
.book-frame{border:0;border-radius:0;display:block;height:calc(100dvh - 56px)}
@media(max-width:720px){main.wrap:has(> .book-frame){padding:0}.book-frame{height:calc(100dvh - 52px)}}
.order-queue{max-width:1100px;margin:auto;padding:0 24px 24px}
.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:28px 0 16px}
.queue-heading h1{font:600 26px/1.25 Arial,Helvetica,sans-serif;letter-spacing:-0.01em;margin:0}
.queue-heading button{background:transparent;font-size:13px;padding:8px 12px}
.queue-tools{margin-bottom:20px}
/* Order rows are a hairline list: a fixed icon column, quiet meta, one ghost action. */
.queue-orders{min-width:0}
.queue-order{display:grid;grid-template-columns:20px minmax(0,1fr) auto;column-gap:12px;row-gap:3px;align-items:start;padding:14px 0;border:0;border-bottom:1px solid var(--line)}
.order-status-icon{grid-column:1;grid-row:1;align-self:start;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:var(--muted)}
.order-status-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.order-status-icon[data-tone=muted]{color:var(--muted)}
.order-status-icon[data-tone=amber]{color:var(--amber)}
.order-status-icon[data-tone=ink]{color:var(--ink)}
.order-status-icon[data-tone=green]{color:var(--green)}
.order-status-icon[data-tone=error]{color:#8e4033}
.order-status-icon[data-icon=spinner] svg{animation:queue-spin 1s linear infinite}
.order-status-icon[data-icon=check-filled] svg{fill:currentColor}
.order-status-icon[data-icon=check-filled] svg [data-check]{fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@keyframes queue-spin{to{transform:rotate(360deg)}}
.queue-order-title{grid-column:2;grid-row:1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.queue-order-title h2{font-size:15px;font-weight:600;line-height:20px;margin:0}
.order-status-label{font-size:12.5px;font-weight:400;color:var(--muted)}
.queue-order-meta{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;color:var(--muted);font-size:12.5px}
.order-countdown{font-variant-numeric:tabular-nums}
.order-countdown[data-state=soon],.order-countdown.is-soon{color:var(--amber)}
.order-countdown[data-state=overdue],.order-countdown.is-overdue{color:#9b3b2f}
.queue-order-progress{grid-column:2;grid-row:3;font-size:12.5px;color:var(--muted);max-width:190px}
.queue-order-progress .progress{width:100%;height:3px;margin-top:6px;border-radius:3px}
.queue-order>.button{grid-column:3;grid-row:1/4;align-self:center;min-height:0;padding:6px 12px;font-size:13px;background:transparent;border:1px solid var(--line);border-radius:8px}
.queue-order>.button:hover{background:var(--paper)}
@media(max-width:720px){
 .order-queue{padding:0 12px 24px}
 .queue-tools{margin-bottom:16px}
 .order-queue .queue-filters button{padding-inline:9px}
 .queue-order{column-gap:10px;padding:14px 0}
 .queue-order-progress{max-width:150px}
 .order-status-label{font-size:12px}
}
/* Stacked rows: only a live countdown earns the middle dot before the assignee. */
@media(max-width:899px){
 .queue-order-countdown:empty{display:none}
 .queue-order-countdown:not(:empty)+.queue-order-assignee::before{content:'\00B7';margin:0 6px;color:var(--muted)}
}
/* Wide rows: six aligned cells, with the empty countdown cell still reserving its column. */
@media(min-width:900px){
 .order-queue .queue-order{grid-template-columns:20px minmax(180px,1.6fr) minmax(120px,1fr) minmax(120px,1fr) minmax(150px,1.2fr) auto;column-gap:24px;row-gap:0;align-items:center;padding:14px 0}
 .order-queue .order-status-icon{grid-column:1;grid-row:1;align-self:center}
 .order-queue .queue-order-title{grid-column:2;grid-row:1;display:block;min-width:0}
 .order-queue .queue-order-meta{display:contents}
 .order-queue .queue-order-countdown{grid-column:3;grid-row:1;min-width:0}
 .order-queue .queue-order-assignee{grid-column:4;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .order-queue .queue-order-progress{grid-column:5;grid-row:1;max-width:none;width:100%}
 .order-queue .queue-order>.button{grid-column:6;grid-row:1;align-self:center;justify-self:end;justify-content:center;min-width:96px}
}

/* Canvas controls overlay the artwork without consuming image width. */
.illustration-window.has-versions{display:flex;padding-bottom:20px;gap:0}
.has-versions>.version-previous,.has-versions>.version-next{position:absolute;top:calc(50% - 32px);z-index:2;align-self:auto;background:transparent;text-shadow:0 1px 3px var(--paper)}
.has-versions>.version-previous{left:4px}.has-versions>.version-next{right:4px}
.has-versions>.version-previous svg,.has-versions>.version-next svg{filter:drop-shadow(0 0 2px var(--paper))}
.version-caption{position:absolute;bottom:0;left:0;right:0;pointer-events:none}
.version-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#e8e9e1;color:var(--muted);font-size:13px}
.review-desk{grid-template-rows:auto auto auto minmax(0,1fr) auto}
.review-queue-controls{display:flex;gap:16px;min-height:32px}
.review-queue-controls button{padding:4px 0;min-height:32px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;font-size:12px;color:var(--muted)}
.review-queue-controls button[aria-pressed=true]{border-color:var(--green);color:var(--ink);font-weight:600}
.review-empty{height:100%}.review-empty .empty h2{font-size:18px}
.proof-canvas article>[data-proof-review]{margin:0 0 8px;background:transparent}
@media(max-height:500px) and (min-width:600px){
 .review-desk{grid-template-rows:28px 44px minmax(0,1fr) auto;row-gap:4px}
 .review-queue-controls{grid-column:1/-1;grid-row:1;min-height:28px}.review-queue-controls button{min-height:28px}
 .scene-bar{grid-row:2}.view-bar{grid-row:2}.review-content{grid-row:3}.decision-bar{grid-row:4}
}
@media(max-width:800px){.proof-decisions{gap:8px}.proof-decisions button{font-size:12px;padding:8px}}

/* Compact review navigation: state symbols, collapsible list, quiet order menu. */
.review-workbench{grid-template-columns:180px minmax(0,1fr)}
.review-workbench.index-collapsed{grid-template-columns:minmax(0,1fr)}
.index-collapsed .review-index{display:none}
.review-index{display:flex;flex-direction:column;overflow:hidden}
.review-queue-controls [data-index-toggle]{width:32px;height:32px;min-height:32px;border:0;margin:0;color:var(--muted)}
.review-queue-controls [data-index-toggle]:hover{color:var(--ink)}
#illustration-list{overflow:auto;min-height:0;scrollbar-width:thin}
#illustration-list[hidden]{display:none}
.review-index [data-scene]{min-height:36px;margin:0 0 2px;padding:7px 8px;gap:9px;border:0;border-radius:4px;align-items:center}
.review-index [data-scene].active{background:#e2e9d9;box-shadow:inset 2px 0 var(--green)}
.review-index .scene-symbol{width:18px;height:18px;display:flex;flex:none;color:#8b9485}
.review-index .scene-symbol[data-status=modified]{color:#826327}
.review-index .scene-symbol[data-status=approved]{color:var(--green)}
.review-index .scene-symbol[data-status=attention]{color:#a65b37}
.review-index .scene-symbol[data-status=generating]{color:#826327}
.review-index .scene-symbol[data-status=generating] svg{animation:review-spin 1.5s linear infinite}
.review-index .index-label{font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.decision-actions{width:100%;max-width:none;margin:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.order-dropdown{position:relative;flex:none}
.order-dropdown summary{display:flex;align-items:center;min-height:44px;cursor:pointer;list-style:none;border-radius:4px}
.order-dropdown summary::-webkit-details-marker{display:none}
.desktop-order-title{display:flex;align-items:center;gap:7px;font-size:18px;font-weight:600}
.desktop-order-title svg{width:14px;height:14px;color:var(--muted)}
.mobile-order-title,.mobile-menu-icon{display:none}
.order-dropdown-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:20;min-width:220px;padding:6px;display:grid;background:var(--paper);border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 22px #0002}
.order-dropdown:not([open]) .order-dropdown-panel{display:none}
.order-dropdown-panel a,.order-dropdown-panel button{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;padding:8px 12px;font-size:13px;text-decoration:none;color:var(--ink);background:transparent;border:0;border-radius:3px}
.order-dropdown-panel a:hover,.order-dropdown-panel button:hover{background:#e5ebdc}
.order-dropdown-panel .disabled{display:flex;align-items:center;min-height:40px;padding:8px 12px;font-size:13px;color:var(--muted);opacity:.55;cursor:default}
.order-dropdown-panel a:first-child{border-bottom:1px solid var(--line);border-radius:0;margin-bottom:4px}
@media(max-width:800px){
 .review-workbench,.review-workbench.index-collapsed{display:block}.review-index{display:none}
 .focus-header .mobile-order-title{display:block;order:0}.order-dropdown{order:2;margin-left:auto}
 .desktop-order-title{display:none}.mobile-menu-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px}
 .order-dropdown-panel{left:auto;right:0;min-width:230px}
}
@media(max-height:500px){.review-workbench,.review-workbench.index-collapsed{grid-template-columns:minmax(0,1fr)}.review-index{display:none}}
@media(prefers-reduced-motion:reduce){.review-index .scene-symbol[data-status=generating] svg{animation:none}}

@media(max-width:800px),(max-height:500px){.review-queue-controls [data-index-toggle]{display:none}}

/* One breakpoint switches from desktop links to the visible navigation menu. */
.focus-header .owner-state{max-width:180px;overflow:hidden;text-overflow:ellipsis}
/* Book Studio stays one click away from every order page, never behind the Order menu. */
.focus-header>.book-studio-link{display:inline-flex;align-items:center;gap:7px;flex:none;min-height:36px;padding:5px 12px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);font-size:13px;font-weight:600;white-space:nowrap;text-decoration:none}
.focus-header>.book-studio-link:hover{background:#e8eddf;border-color:#bac5b5}
.focus-header>.book-studio-link svg{width:16px;height:16px;flex:none;color:var(--green)}
@media(max-width:1150px){
 .focus-header .mobile-order-title{display:block;order:0;min-width:0;overflow:hidden;text-overflow:ellipsis}
 .focus-header>.book-studio-link{padding:4px 10px;font-size:12px;min-height:32px}
 .focus-header .order-dropdown{order:2;margin-left:auto}
 .focus-header .desktop-order-title{display:none}
 .focus-header .mobile-menu-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px}
 .focus-header .order-dropdown-panel{left:auto;right:0}
}
/* Notes and exceptions share the review header; longer records scroll below it. */
.focus-main.support-main{overflow:auto;overscroll-behavior:contain;padding:24px}
.support-page{max-width:960px;margin:0 auto;padding-bottom:24px}
.support-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.support-title h1{font:600 20px/1.3 Arial,Helvetica,sans-serif;letter-spacing:0;margin:0}
.support-title button{background:transparent;flex:none}
.support-section{padding:20px 0;border-top:1px solid var(--line)}
.support-section h2,.support-section>summary{font:600 14px/1.4 Arial,Helvetica,sans-serif;margin:0 0 14px}
.support-section>summary{margin:0;min-height:24px;cursor:pointer}
.support-section[open]>summary{margin-bottom:18px}
.support-section h3{font-size:12px;color:var(--muted);font-weight:400;margin:0 0 8px}
.support-empty,.support-meta{font-size:12px;color:var(--muted);margin:0;line-height:1.5}
.support-meta{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}
.support-note{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.support-note:last-child{border-bottom:0}.support-note p{margin:6px 0 12px;white-space:pre-wrap}
.support-note .note-response{padding-left:12px;border-left:2px solid var(--line);color:var(--muted)}
.support-note button{background:transparent;font-size:12px;min-height:36px;padding:6px 10px}
.support-note details>summary{font-size:12px}
.support-tool-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px}
.support-tool-groups section{display:flex;flex-direction:column;align-items:stretch}
.support-tool-groups button{justify-content:flex-start;text-align:left;border:0;background:transparent;font-size:13px;padding:8px 0}
.support-tool-groups button:hover{text-decoration:underline}
.support-timeline{list-style:none;padding:0;margin:0;font-size:13px}
.support-timeline li{display:flex;gap:12px;justify-content:space-between;padding:9px 0;line-height:1.4}
.support-timeline small{font-size:11px;color:var(--muted);text-align:right;flex:none}
.support-section details{margin-top:14px}.support-section details>summary{font-size:12px;min-height:28px;cursor:pointer}
.support-alert{padding:16px;background:#efe5cc;border-radius:5px;margin-bottom:20px;font-size:14px}.support-alert p{margin:8px 0}
.support-details dl{display:grid;grid-template-columns:180px 1fr;gap:10px;font-size:12px;line-height:1.5}.support-details dt{color:var(--muted)}.support-details dd{margin:0}
@media(max-width:600px){
 .focus-main.support-main{padding:20px 14px}.support-title{align-items:flex-start;gap:10px}.support-title h1{font-size:18px;align-self:center}
 .support-title button{font-size:12px;padding:8px 12px}
 .support-tool-groups{grid-template-columns:1fr 1fr;gap:20px 12px}
 .support-timeline li{display:block}.support-timeline small{display:block;text-align:left;margin-top:4px}
 .support-details dl{grid-template-columns:1fr;gap:4px}.support-details dd{margin-bottom:8px}
}

/* Quiet search: a compact input with a single baseline. */
.queue-search{display:flex;align-items:center;gap:8px;min-width:0;border-bottom:1px solid var(--line);color:var(--muted)}
.queue-search svg{flex:none;margin-left:2px}
.queue-tools .queue-search input{width:100%;min-width:0;min-height:40px;margin:0;padding:8px 4px;border:0;border-radius:0;background:transparent;font-size:14px;line-height:1.4}
.queue-search:focus-within{border-color:var(--green)}
.queue-tools .queue-search input:focus-visible{outline:2px solid #b88134;outline-offset:2px;border-radius:3px}
@media(max-width:720px){.queue-search{width:100%;margin-bottom:12px}.order-queue .queue-search input{font-size:16px;min-height:44px}}

/* Settings shares the support page's section rhythm and optional details. */
.settings-main{padding:24px}
.settings-page{max-width:960px;margin:0 auto;padding-bottom:24px}
.settings-page>h1{margin:0 0 20px}
.settings-page .settings-account{border-top:0;padding-top:0}
.settings-page .support-section h2{font-size:14px}
.settings-identity{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;font-size:14px;line-height:1.5}
.settings-identity>span{font-size:12px;color:var(--muted);text-transform:capitalize}
.settings-page button,.settings-page .button{border-radius:5px;background:transparent;font-size:12px;padding:8px 12px}
.settings-account .button{margin-top:12px}
.settings-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.settings-section-title h2{margin:0}
.settings-members,.settings-notifications{list-style:none;padding:0;margin:0}
.settings-members li,.settings-notifications li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 0;font-size:13px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.settings-members li:last-child,.settings-notifications li:last-child{border-bottom:0}
.settings-members .support-meta{flex:none;text-transform:capitalize}
.settings-notifications small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.settings-page .config-list{display:block}
.settings-page .config-list>.settings-service-group{padding:0;margin-bottom:24px}
.settings-service-group:last-child{margin-bottom:0}
.settings-service-group h3{font-weight:600;color:var(--ink);font-size:12px;margin-bottom:12px}
.settings-service-group dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 24px;font-size:13px;line-height:1.5;margin:0}
.settings-service-group dt,.settings-service-group dd{margin:0;overflow-wrap:anywhere}
.settings-service-group dd{color:var(--muted)}
@media(max-width:600px){
 .settings-main{padding:20px 14px}.settings-section-title{gap:12px;align-items:center}
 .settings-section-title button{max-width:160px;font-size:12px}
 .settings-service-group dl{grid-template-columns:minmax(0,1fr);gap:4px}
 .settings-service-group dd{margin-bottom:12px}
 .settings-members li{gap:12px}.settings-members .support-meta{max-width:44%;text-align:right}
}

/* The effective illustration instructions stay on the review. Full text and editing
   are one click away, so no part of the prompt hides behind nested disclosures. */
.instruction-summary{flex:none;display:flex;align-items:center;gap:10px;padding:7px 10px;background:var(--paper);border:1px solid var(--line);border-radius:6px}
.instruction-lines{flex:1;min-width:0;display:grid;gap:2px}
.instruction-line{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:12px;line-height:1.35}
.instruction-label{flex:none;color:var(--muted)}
.instruction-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.instruction-origin{flex:none;font-size:11px;font-weight:600;padding:1px 8px;border-radius:20px;background:#f1e6c9;color:#765018;white-space:nowrap}
.instruction-edit{flex:none;gap:6px;min-height:36px;padding:6px 9px;border:0;background:transparent;color:var(--green);font-size:13px;font-weight:600}
.instruction-edit:hover{background:#e8eddf;border-radius:5px}
.instruction-edit svg{width:16px;height:16px;flex:none}
.regen-instructions{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.regen-instructions-head{display:flex;align-items:baseline;gap:8px;min-width:0}
.regen-instructions-title{flex:none;font-size:12px;font-weight:600}
.regen-instructions-excerpt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.regen-instructions-toggle{flex:none;min-height:32px;padding:4px 8px;border:0;background:transparent;color:var(--green);font-size:12px;font-weight:600}
.regen-instructions-toggle:hover{background:#e8eddf;border-radius:5px}
.regen-instructions .prompt-preview-text{margin-top:8px;max-height:22dvh}
.prompt-editor{padding-bottom:4px}
.prompt-note{margin:0 0 14px;font-size:12px;color:var(--muted);line-height:1.5}
.prompt-lock{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:#f1e6c9;color:#765018;font-size:12px;line-height:1.5}
.prompt-field{margin-bottom:18px}
.prompt-field-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px}
.prompt-field-label{font-size:13px;font-weight:600}
.prompt-origin{font-size:11px;color:var(--muted)}
.prompt-origin[data-origin=order]{color:#765018;font-weight:600}
.prompt-input{display:block;font-size:13px;line-height:1.5;min-height:96px;max-height:32dvh}
.prompt-input[readonly]{background:#f4f3ec;color:var(--muted)}
.prompt-field-actions{display:flex;gap:8px;margin-top:8px}
.prompt-field-actions button{min-height:36px;padding:7px 13px;font-size:13px}
.prompt-field-actions button[hidden]{display:none}
.prompt-preview{margin:0;padding-top:4px;border-top:1px solid var(--line)}
.prompt-preview-label{margin:14px 0 8px;font-size:13px;font-weight:600}
.prompt-preview-text{margin:10px 0 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f4f3ec;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:32dvh;overflow:auto}
.prompt-placeholder{background:#f1e6c9;color:#765018;border-radius:4px;padding:1px 3px;font-weight:600}
.prompt-status{margin:12px 0 0;min-height:16px;font-size:12px;color:var(--muted)}
.prompt-status[data-phase=error]{color:#8e4033}
.prompt-status[data-phase=saved]{color:#3f5f33}
.prompt-source{margin:6px 0 0;font-size:11px;color:var(--muted)}
@media(max-width:800px){.instruction-line{font-size:11px}}
@media(max-height:500px){.instruction-summary{display:none}.prompt-input{min-height:64px}}

/* One reviewer decision for the whole illustration set, reviewed before it is queued. */
.batch-strip{display:flex;align-items:center;gap:10px;margin-left:auto;min-width:0;font-size:12px;color:var(--muted)}
.batch-strip>span{white-space:nowrap}
.batch-start{margin-left:auto;min-height:32px;padding:6px 12px;border-radius:6px;font-size:12px}
.batch-strip .primary{min-height:32px;padding:6px 12px;border-radius:6px;font-size:12px}
.batch-strip progress{width:96px;height:6px;border:0;border-radius:3px;accent-color:var(--green)}
.batch-blocked{padding:12px 14px;background:#f3ded8;border:1px solid #dfc0b8;border-radius:8px;color:#7c3a2d;font-size:13px;line-height:1.5;margin:0 0 14px}
.batch-blocked ul{margin:6px 0 0;padding-left:18px}
.batch-summary{margin:0 0 6px;font-size:14px}
.batch-cost-note,.batch-family,.batch-plan-note{margin:0 0 6px}
.batch-plan-note{color:var(--amber);font-size:13px}
.order-cost{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0;flex:none;color:var(--muted);font-size:11px;line-height:1.3}
.order-cost-track{height:4px;border-radius:2px;overflow:hidden;background:var(--line)}
.order-cost-track>span{display:block;height:100%;background:var(--green)}
.order-cost-warning .order-cost-track>span{background:var(--amber)}
@media(max-width:800px){.review-queue-controls:has(.order-cost){flex-wrap:wrap;gap:8px 16px}.order-cost{flex-basis:100%}}
.batch-photos{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px;max-height:min(280px,38dvh);overflow:auto}
.batch-photo-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:8px;min-width:0}
.batch-photo-media{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.batch-photo-media img{width:44px;height:56px;object-fit:cover;border-radius:4px;border:1px solid var(--line);background:#e8e9e1}
.batch-photo-tag,.batch-photo-missing{font-size:11px;color:var(--muted)}
.batch-photo-missing{border:1px dashed #c3c9b8;border-radius:4px;padding:8px 10px;display:inline-block}
.batch-photo-who{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:12px}
.batch-photo-who strong{font-size:13px}
.batch-photo-who span{color:var(--muted);overflow-wrap:anywhere}
.batch-confirm{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;font-size:13px;line-height:1.4}
.batch-confirm input{width:18px;height:18px;min-height:0;margin:1px 0 0;padding:0;flex:none}
@media(max-width:800px){.batch-strip{margin:0;flex-wrap:wrap;gap:8px}.batch-start{min-height:36px}}

/* Photo check: each face by role label only, before any illustration is made. */
.focus-main.photo-main{display:block;overflow:auto;overscroll-behavior:contain;padding:20px 16px 0}
.photo-check{display:flex;flex-direction:column;gap:24px;max-width:1120px;min-height:100%;margin:0 auto}
.photo-check-heading h1{font-size:22px;margin:0 0 6px}
.photo-check-heading p.muted{margin:0;max-width:70ch}
.photo-requested{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#f1e6c9;border:1px solid #dfcea6;border-radius:8px;color:#765018;font-size:13px;line-height:1.5}
.photo-requested button{margin-left:auto;font-size:13px}
.photo-member-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:18px;align-items:start}
.photo-member{display:flex;flex-direction:column;gap:14px;min-width:0;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:8px}
.photo-member h2{font-size:17px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.photo-member.approved{border-color:color-mix(in srgb,var(--green) 45%,var(--line));background:color-mix(in srgb,var(--green) 4%,var(--paper))}
/* Large enough to judge a face at a glance; one photo fills the card, several share it. */
.photo-member-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;min-width:0}
.photo-member-images button.photo-thumbnail{width:100%;height:280px;min-height:0;flex:none;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#e8e9e1}
.photo-member-images button.photo-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.photo-missing{margin:0;padding:30px 16px;text-align:center;color:var(--muted);font-size:13px;background:#f7f7f1;border:1px dashed #c3c9b8;border-radius:8px}
.photo-approve{align-self:flex-start;min-height:44px}
.photo-approve[aria-pressed=true]{background:color-mix(in srgb,var(--green) 12%,var(--paper));border-color:var(--green);color:var(--green)}
.photo-approve-check{font-size:15px;line-height:1}
.photo-problems{display:flex;flex-wrap:wrap;gap:8px}
.photo-chip{min-height:44px;padding:8px 14px;border-radius:22px;border-color:var(--line);background:#fbfbf6;color:var(--muted);font-size:13px}
.photo-chip[aria-pressed=true]{background:#f3ded8;border-color:#bb857a;color:#8e4033;font-weight:600}
.photo-check-footer{position:sticky;bottom:0;z-index:1;display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap;margin-top:auto;padding:14px 0 calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
.photo-check-summary{margin:0;font-size:14px;font-weight:600;color:var(--muted)}
.photo-check-actions{display:flex;gap:10px;flex-wrap:wrap;margin-left:auto}
#photo-generate-reason{flex-basis:100%;margin:0;font-size:12px;line-height:1.5}
#photo-generate-reason:empty{display:none}
.photo-email-body{white-space:pre-wrap;overflow-wrap:anywhere;max-height:38dvh;overflow:auto;margin:8px 0 12px;padding:12px;background:#f4f3ec;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.6}
.photo-email-preview{display:block;width:100%;height:min(58dvh,540px);margin:8px 0 12px;border:1px solid var(--line);border-radius:8px;background:#F2ECDF}
@media(max-width:520px){.photo-email-preview{height:min(64dvh,460px)}}
.photo-chip:focus-visible,.photo-thumbnail:focus-visible,.photo-check-footer button:focus-visible,.photo-requested button:focus-visible{outline:3px solid #b88134;outline-offset:2px}
@media(max-width:800px){
 .focus-main.photo-main{padding:14px 12px 0}
 .photo-check{gap:18px}
 .photo-member-grid{grid-template-columns:1fr;gap:12px}
 .photo-member{padding:16px}
 .photo-member-images{gap:8px}
 .photo-member-images button.photo-thumbnail{height:240px}
 .photo-requested button{margin-left:0;width:100%}
 .photo-check-footer{flex-direction:column;align-items:stretch;gap:10px}
 .photo-check-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-left:0}
 .photo-check-actions button{width:100%}
}
@media(max-height:560px){
 .focus-main.photo-main{padding-top:10px}
 .photo-check{gap:14px}
 .photo-member-images button.photo-thumbnail{height:200px}
}
