.screen-capture-dialog {
  box-sizing: border-box; width: min(1060px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; margin: auto; overflow: auto; border: 1px solid #dce6f5; border-radius: 18px;
  background: #f8fbff; color: #172033; box-shadow: 0 24px 100px #0006; font-family: inherit;
  visibility: visible; pointer-events: auto;
}
.screen-capture-dialog::backdrop { background: #050914c9; }
.screen-capture-dialog * { box-sizing: border-box; }
.screen-capture-dialog button, .screen-capture-dialog input, .screen-capture-dialog textarea, .screen-capture-dialog select { font: inherit; }
.screen-capture-dialog button { min-height: 44px; padding: 8px 12px; border: 1px solid #cdd9e9; border-radius: 9px; background: #fff; color: #263c5d; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.screen-capture-dialog button:hover:not(:disabled) { background: #eaf1fc; }
.screen-capture-dialog button:disabled, .screen-capture-dialog fieldset:disabled { opacity: .55; }
.screen-capture-dialog button:disabled { cursor: default; }
.screen-capture-dialog :is(button, input, textarea, select, summary):focus-visible { outline: 3px solid #3978ef; outline-offset: 3px; }
.capture-header { padding: 18px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #dce6f5; }
.capture-header > div { display: flex; align-items: flex-start; gap: 12px; }
.capture-header svg { flex-shrink: 0; }
.capture-header h2 { margin: 0; font-size: 1.15rem; }
.capture-header p { margin: 6px 0 0; font-size: .84rem; line-height: 1.5; color: #51627a; }
.capture-header > button { border: 0; min-width: 44px; background: transparent; }
.capture-body { padding: 18px 24px 24px; }
.capture-steps { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .85rem; margin-bottom: 16px; color: #617086; }
.capture-steps strong[aria-current] { color: #174ea6; }
.capture-destination { display: flex; gap: 9px; border: 1px solid #dce6f5; background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.capture-destination > svg { flex-shrink: 0; margin-top: 3px; color: #174ea6; }
.capture-destination > div { min-width: 0; }
.capture-destination small, .capture-destination strong { display: block; overflow-wrap: anywhere; }
.capture-destination small { color: #51627a; margin-bottom: 3px; font-size: .72rem; }
.capture-destination strong { font-size: .9rem; }
.capture-destination p { margin: 0 0 8px; font-size: .85rem; }
.capture-destination details { margin-top: 8px; font-size: .75rem; }
.capture-destination summary, .capture-keyboard summary { cursor: pointer; min-height: 28px; }
.capture-destination dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.capture-destination dd { margin: 0; overflow-wrap: anywhere; font-family: monospace; }
.capture-source-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.capture-source-row label { display: grid; gap: 5px; min-width: 0; max-width: 100%; font-size: .8rem; }
.capture-source-row select { max-width: 100%; }
.capture-hint { color: #51627a; font-size: .8rem; line-height: 1.5; margin: 12px 0; }
.capture-image-area { display: flex; justify-content: center; padding: 18px; border-radius: 10px; background: #172033; overflow: hidden; }
.capture-image-area canvas { display: block; max-width: 100%; max-height: 42dvh; width: auto; height: auto; touch-action: none; cursor: crosshair; }
.capture-crop-surface { position: relative; display: inline-block; max-width: 100%; user-select: none; touch-action: none; }
.capture-crop-selection { position: absolute; border: 2px solid #77baff; box-shadow: 0 0 0 9999px #08122199; cursor: move; }
.capture-crop-handle { position: absolute; width: 22px; height: 22px; border: 2px solid #174ea6; border-radius: 4px; background: #fff; transform: translate(-50%, -50%); }
.capture-crop-handle.nw { top: 0; left: 0; cursor: nwse-resize; }
.capture-crop-handle.ne { top: 0; left: 100%; cursor: nesw-resize; }
.capture-crop-handle.sw { top: 100%; left: 0; cursor: nesw-resize; }
.capture-crop-handle.se { top: 100%; left: 100%; cursor: nwse-resize; }
.capture-crop-size { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: #081221de; color: #fff; border-radius: 4px; padding: 3px 6px; font-size: 11px; white-space: nowrap; pointer-events: none; }
.capture-coordinates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; border: 0; padding: 12px 0 0; margin: 0; }
.capture-coordinates legend { font-size: .72rem; color: #51627a; padding-top: 10px; }
.capture-pixel-field { display: grid; gap: 4px; font-size: .75rem; flex: 1 1 85px; max-width: 150px; min-width: 0; }
.capture-pixel-field input { width: 100%; }
.screen-capture-dialog :is(input[type=number], textarea, select) { border: 1px solid #cdd9e9; border-radius: 7px; padding: 9px 10px; background: #fff; color: #172033; min-height: 44px; }
.capture-annotation-editor { margin: 0; padding: 0; border: 0; min-width: 0; }
.capture-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.capture-tools button { font-size: .78rem; }
.capture-tools button[aria-pressed=true] { background: #174ea6; color: #fff; border-color: #174ea6; }
.capture-tools .capture-color input { padding: 2px; width: 42px; height: 42px; border: 1px solid #cdd9e9; border-radius: 7px; cursor: pointer; }
.capture-stroke { display: flex; gap: 6px; align-items: center; font-size: .72rem; }
.capture-stroke select { padding: 6px; }
.capture-keyboard { margin-top: 12px; font-size: .8rem; color: #263c5d; }
.capture-comment, .capture-text { display: grid; gap: 6px; font-size: .8rem; margin: 14px 0; }
.capture-text small { color: #51627a; line-height: 1.5; }
.capture-comment textarea, .capture-text textarea { width: 100%; resize: vertical; min-height: 65px; }
.capture-footer { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid #dce6f5; background: #f8fbff; z-index: 1; }
.capture-footer > button:first-child { margin-right: auto; }
.screen-capture-dialog .capture-primary { border-color: #174ea6; background: #174ea6; color: #fff; font-weight: 700; }
.screen-capture-dialog .capture-primary:hover:not(:disabled) { background: #113c82; }
.capture-error, .capture-pending { font-size: .85rem; line-height: 1.5; padding: 12px; border-radius: 8px; background: #fff1ee; color: #9b2c21; }
.capture-pending { background: #fff7df; color: #765000; }
.capture-success { display: flex; gap: 10px; padding: 16px; border: 1px solid #b6dfce; background: #eaf8f1; color: #196b49; border-radius: 10px; }
.capture-success small { display: block; margin-top: 5px; }
.capture-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.capture-control-notice { position: fixed; z-index: 100; bottom: 100px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #cdd9e9; border-radius: 12px; background: #fff; color: #172033; box-shadow: 0 10px 40px #0003; font-size: .85rem; line-height: 1.5; }
.capture-control-notice button { min-width: 44px; min-height: 44px; background: transparent; color: inherit; border: 0; cursor: pointer; }
.meeting-control-button[aria-disabled=true] { opacity: .5; }
@media (max-width: 600px) {
  .screen-capture-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; }
  .capture-body { padding: 14px; }
  .capture-header { padding: 14px; gap: 8px; }
  .capture-header h2 { font-size: 1rem; }
  .capture-header p { font-size: .75rem; }
  .capture-footer { padding: 12px; }
  .capture-footer button { font-size: .8rem; }
  .capture-image-area { padding: 12px; }
  .capture-tools button { flex: 1 1 auto; }
}

.capture-control-notice { margin: 0; top: auto; }
.capture-control-notice p { margin: 0; }
.capture-control-notice::backdrop { background: #02061780; }
