/* Local screenshot review uses the incumbent APP colours and form rhythm. */
.screenshot-dialog { box-sizing: border-box; width: min(960px, calc(100vw - 24px)); max-width: calc(100vw - 20px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 0; border-radius: 18px; color: var(--ink); background: var(--bg); overflow-x: hidden; overflow-y: auto; }
.screenshot-dialog *, .screenshot-dialog *::before, .screenshot-dialog *::after { box-sizing: border-box; }
.screenshot-dialog::backdrop { background: rgba(0,0,0,.5); }
.screenshot-head, .screenshot-actions, .screenshot-message-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.screenshot-head { justify-content: space-between; margin-bottom: 12px; }
.screenshot-head h2 { font-size: 22px; line-height: 1.4; margin: 0; }
.screenshot-dialog p { margin: 12px 0; line-height: 1.65; overflow-wrap: anywhere; }
.screenshot-note { color: var(--sub); font-size: 14px; }
.screenshot-status { min-height: 24px; color: var(--ink); font-size: 15px; }
.screenshot-dialog label { display: grid; gap: 8px; font-size: 14px; }
.screenshot-dialog input[type=file] { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; font: inherit; color: var(--ink); }
.screenshot-dialog :is(button,select,textarea) { font: inherit; color: var(--ink); }
.screenshot-dialog button { min-height: 44px; padding: 9px 14px; border-radius: 10px; }
.screenshot-secondary { border: 1px solid var(--border); background: var(--panel); }
.screenshot-primary { background: var(--brand-deep); color: #fff !important; }
.screenshot-text-button { text-decoration: underline; text-underline-offset: 3px; background: transparent; }
.screenshot-dialog button:disabled { color: var(--sub); opacity: .65; }
.screenshot-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.screenshot-preview-wrap, .screenshot-editor { min-width: 0; }
.screenshot-preview { display: block; max-width: 100%; height: auto; max-height: 58dvh; margin-inline: auto; object-fit: contain; }
.screenshot-message { padding: 16px 0; border-bottom: 1px solid var(--border); }
.screenshot-message-head { margin-bottom: 10px; }
.screenshot-message-head label { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.screenshot-dialog select, .screenshot-dialog textarea { border: 1px solid var(--border); border-radius: 8px; background: var(--bg); padding: 10px; min-height: 44px; font-size: 16px; }
.screenshot-dialog textarea { display: block; width: 100%; resize: vertical; line-height: 1.6; }
.screenshot-dialog .screenshot-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin-top: 12px; line-height: 1.6; }
.screenshot-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand-deep); }
.screenshot-actions { justify-content: flex-end; padding-top: 12px; }
.screenshot-dialog :is(button,input,textarea,select):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.screenshot-dialog :is(input,textarea) { caret-color: var(--brand-deep); }
.screenshot-dialog ::selection { background: var(--brand-soft); color: var(--ink); }
.screenshot-dialog .screenshot-check[hidden], .screenshot-dialog [hidden] { display: none !important; }
@media (max-width: 680px) { .screenshot-dialog { box-sizing: border-box; padding: 14px; width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); inset-inline: 0; margin: auto; } .screenshot-columns { grid-template-columns: minmax(0,1fr); gap: 14px; } .screenshot-preview { max-height: 210px; } .screenshot-head h2 { font-size: 19px; } .screenshot-message-head { gap: 4px; } .screenshot-message-head button { padding-inline: 8px; } }
