.snapshot-surface { position: absolute; inset: 0; overflow: hidden; background: #000; }
.snapshot-image, .snapshot-drawing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.snapshot-drawing { z-index: 1; }
.snapshot-image-error { position: absolute; z-index: 2; inset: auto 12px 38px; padding: 10px; background: #292929; color: #fff; font: 13px/1.4 Inter, sans-serif; }
.snapshot-image-error[hidden] { display: none; }
.snapshot-card .stream-live-indicator, .snapshot-card .volume-stabilization-trim-badge { display: none !important; }
.snapshot-draw-button { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 100%; padding: 0 8px; color: #eee; background: #303030; border: 1px solid #555; border-left: 0; border-radius: 0 5px 5px 0; font: 600 11px/1 Inter, sans-serif; cursor: pointer; pointer-events: auto; }
.snapshot-card .team-header-controls > .snapshot-draw-button { order: 3; }
.snapshot-card .team-header-controls > .team-expand-button { border-radius: 0; }
.snapshot-draw-button:hover { background: #494949; }
.snapshot-capture-controls { box-sizing: border-box; min-width: 0; padding: 8px; border: 1px solid var(--cc-border-soft, #3b3b3b); border-radius: 8px; background: #211f20; }
body.left-nav-layout .control-row-group--stream-actions > .snapshot-capture-controls {
  margin: 8px;
  border-color: var(--left-rail-divider, #454545);
  background: #202020;
}
.snapshot-capture-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.snapshot-capture-copy { min-width: 0; }
.snapshot-capture-title { display: block; color: #f2efed; font: 600 12px/1.4 Inter, sans-serif; }
.snapshot-capture-copy p { margin: 2px 0 0; color: #b5b1b0; font: 11px/1.4 Inter, sans-serif; }
.snapshot-capture-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 6px 9px; border: 1px solid #666666; border-radius: 6px; color: #fff; background: #3d3d3d; box-shadow: inset 0 1px #ffffff24, 0 2px 4px #0003; font: 600 11px/1 Inter, sans-serif; cursor: pointer; transition: background-color 120ms, border-color 120ms; }
.snapshot-capture-button svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snapshot-capture-button:hover:not(:disabled) { background: #505050; border-color: #888888; }
.snapshot-capture-button:active:not(:disabled) { background: #333333; }
.snapshot-capture-button:focus-visible { outline: 2px solid #dddddd; outline-offset: 3px; }
.snapshot-capture-button:disabled { opacity: .5; cursor: default; }
.snapshot-capture-button[aria-busy="true"] { cursor: wait; }
.snapshot-capture-status { margin: 7px 0 0; color: #aaaaaa; font-size: 12px; line-height: 1.45; }
.snapshot-capture-status:empty { display: none; }
.snapshot-editor { --snapshot-ink: #ffdf38; box-sizing: border-box; width: min(1360px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; color: #eeeeee; background: #1b1b1b; border: 1px solid #484848; border-radius: 12px; box-shadow: 0 28px 80px #000a; font-family: Inter, "Segoe UI", sans-serif; }
.snapshot-editor::backdrop { background: #000000bb; backdrop-filter: blur(5px); }
.snapshot-editor-header, .snapshot-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; background: #202020; }
.snapshot-editor-header { border-bottom: 1px solid #3b3b3b; }
.snapshot-editor-heading { min-width: 0; padding-left: 12px; border-left: 3px solid #777; }
.snapshot-eyebrow { display: block; margin-bottom: 7px; color: #bbb; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.snapshot-frame-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; }
.snapshot-editor-header h2 { margin: 0; font-size: 15px; font-weight: 650; }
.snapshot-editor-header p { margin: 0; color: #aaaaaa; font-size: 11px; }
.snapshot-editor-header .snapshot-source { margin-top: 6px; color: #d0d0d0; line-height: 1.4; overflow-wrap: anywhere; }
.snapshot-header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 16px; }
.snapshot-frame-badge { display: flex; align-items: center; gap: 6px; color: #b5b5b5; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.snapshot-editor svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snapshot-frame-badge svg { width: 15px; height: 15px; stroke-width: 3; color: #bbb; }
.snapshot-editor button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 1px solid #494949; border-radius: 6px; color: #dddddd; background: #2b2b2b; font: 600 12px/1.2 Inter, "Segoe UI", sans-serif; cursor: pointer; transition: background-color 120ms, border-color 120ms, color 120ms; }
.snapshot-editor button:hover:not(:disabled) { background: #444444; color: #fff; }
.snapshot-editor button:focus-visible, .snapshot-draw-button:focus-visible { outline: 2px solid #ddd; outline-offset: 3px; }
.snapshot-editor button[aria-pressed="true"] { color: #ffffff; background: #484848; border-color: #aaaaaa; }
.snapshot-editor button:disabled { opacity: .32; cursor: default; }
.snapshot-editor button[hidden] { display: none; }
.snapshot-editor [data-snapshot-close] { width: 32px; min-height: 32px; padding: 6px; border-color: transparent; background: transparent; }
.snapshot-editor-workspace { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
.snapshot-tool-rail { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 10px; border-right: 1px solid #3b3b3b; background: #202020; }
.snapshot-control-label { display: block; color: #aaaaaa; font-size: 9px; font-weight: 750; letter-spacing: .13em; line-height: 1; text-transform: uppercase; }
.snapshot-tools-label { margin: 0 0 5px; text-align: center; }
.snapshot-tool-rail button { position: relative; min-height: 56px; flex-direction: column; gap: 6px; padding: 10px 3px 8px; border-color: transparent; background: transparent; font-size: 10px; }
.snapshot-tool-rail button svg { width: 27px; height: 27px; stroke-width: 2; }
.snapshot-tool-rail button[aria-pressed="true"] { background: #4b4b4b; border-color: #999; color: #fff; }
.snapshot-tool-rail button[aria-pressed="true"]:hover { background: #555; color: #fff; }
.snapshot-tool-rail kbd { position: absolute; top: 5px; right: 6px; color: inherit; opacity: .5; font: 9px/1 Inter, sans-serif; }
.snapshot-editor-workarea { min-width: 0; display: flex; flex-direction: column; }
.snapshot-editor-canvas-area { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 20px; background: #101010; }
.snapshot-editor-stage { --snapshot-aspect: 1.777778; position: relative; width: min(100%, calc((100dvh - 330px) * var(--snapshot-aspect))); aspect-ratio: var(--snapshot-aspect); background: #000; box-shadow: 0 0 0 1px #3b3b3b; }
.snapshot-editor-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.snapshot-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 14px 20px; border-top: 1px solid #3b3b3b; background: #202020; }
.snapshot-control-section { display: flex; flex-direction: column; gap: 8px; }
.snapshot-toolbar-group { display: flex; align-items: center; gap: 6px; }
.snapshot-control-section[hidden], .snapshot-control-note[hidden] { display: none; }
.snapshot-control-note { color: #aaa; font-size: 10px; }
.snapshot-shapes { gap: 3px; }
.snapshot-shapes button { width: 32px; min-height: 32px; padding: 5px; }
.snapshot-line-styles { gap: 3px; }
.snapshot-line-styles button { flex-direction: column; gap: 4px; min-height: 38px; padding: 5px 8px; font-size: 10px; }
.snapshot-line-styles svg { width: 32px; height: 10px; }
.snapshot-colors { gap: 9px; }
.snapshot-colors button { position: relative; width: 30px; height: 30px; min-height: 30px; padding: 5px; border: 3px solid #202020; outline: 1px solid transparent; border-radius: 50%; background: var(--ink) !important; color: #1b1b1b !important; }
.snapshot-colors button[aria-pressed="true"] { border-color: #202020; outline-color: #eeeeee; }
.snapshot-colors button svg { width: 17px; height: 17px; stroke-width: 2.4; opacity: 0; }
.snapshot-colors button[aria-pressed="true"] svg { opacity: 1; }
.snapshot-colors button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.snapshot-weights { gap: 2px; padding: 2px; border: 1px solid #454545; border-radius: 6px; }
.snapshot-weights button { width: 39px; min-height: 28px; padding: 4px; border: 0; background: transparent; }
.snapshot-weights button svg { width: 30px; height: 16px; }
.snapshot-weights button[aria-pressed="true"] { color: #fff; background: #444444; }
.snapshot-history-section { margin-left: auto; }
.snapshot-history button { min-height: 34px; padding: 6px 9px; background: transparent; border-color: transparent; }
.snapshot-history [data-snapshot-clear] { margin-left: 4px; border-left-color: #444444; border-radius: 0 5px 5px 0; }
.snapshot-editor-footer { border-top: 1px solid #3b3b3b; }
.snapshot-editor-messages { min-width: 0; }
.snapshot-tool-hint { margin: 0 0 4px; color: #dddddd; font-size: 12px; line-height: 1.45; }
.snapshot-editor-status { margin: 0; color: #aaaaaa; font-size: 11px; line-height: 1.5; }
.snapshot-editor-status.is-error { color: #ffacb4; }
.snapshot-editor-actions { display: flex; flex-shrink: 0; gap: 8px; }
.snapshot-editor-actions button { min-height: 42px; }
.snapshot-editor button.snapshot-go-live { padding-inline: 17px; background: #484848; border-color: #777777; color: #fff; font-weight: 750; }
.snapshot-editor button.snapshot-go-live:hover { background: #555555; }
.snapshot-go-live svg { width: 16px; fill: currentColor; stroke-width: 0; }
.snapshot-shortcut-panel { padding: 20px 24px; border-top: 1px solid #3b3b3b; background: #1b1b1b; }
.snapshot-shortcut-panel[hidden] { display: none; }
.snapshot-shortcut-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.snapshot-shortcut-heading h2 { margin: 0; font-size: 19px; }
.snapshot-shortcut-panel > p { margin: 10px 0 18px; color: #aaa; font-size: 13px; line-height: 1.6; }
.snapshot-shortcut-group { margin: 24px 0; }
.snapshot-shortcut-group h3 { margin: 0 0 8px; }
.snapshot-shortcut-panel [data-snapshot-shortcut-status] { color: #b8dcc0; }
.snapshot-shortcut-panel [data-snapshot-shortcut-status]:empty { display: none; }
.snapshot-shortcut-panel [data-snapshot-shortcut-status].is-error { color: #ffb4a8; }
@media (max-width: 680px) {
  .snapshot-editor { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 9px; }
  .snapshot-editor-header, .snapshot-editor-footer, .snapshot-toolbar { padding: 12px; }
  .snapshot-editor-header { gap: 8px; }
  .snapshot-header-actions { gap: 5px; }
  .snapshot-editor [data-snapshot-shortcuts-toggle] { padding: 7px; }
  .snapshot-editor [data-snapshot-shortcuts-toggle] span { display: none; }
  .snapshot-shortcut-panel { padding: 16px 12px; }
  .snapshot-frame-badge { display: none; }
  .snapshot-editor-header h2 { font-size: 13px; }
  .snapshot-editor-workspace { display: flex; flex-direction: column; }
  .snapshot-tool-rail { flex-direction: row; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid #3b3b3b; }
  .snapshot-tools-label { display: none; }
  .snapshot-tool-rail button { flex: 1; min-width: 0; min-height: 62px; }
  .snapshot-tool-rail button svg { width: 23px; height: 23px; }
  .snapshot-tool-rail kbd { display: none; }
  .snapshot-toolbar { gap: 12px 20px; }
  .snapshot-history-section { flex-direction: row; align-items: center; justify-content: space-between; flex: 1 0 100%; margin-left: 0; padding-top: 10px; border-top: 1px solid #3b3b3b; }
  .snapshot-editor-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .snapshot-editor-actions { justify-content: flex-end; }
  .snapshot-editor-stage { width: 100%; }
  .snapshot-editor-canvas-area { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .snapshot-editor button { transition: none; } }
