/* The screen check card and the live screen viewer (screen.js). Colours are
   the existing tokens from tokens.css only, so light and dark both follow
   them; no new token is needed. */

.bubble.has-screen { width: min(340px, 86vw); }
.screen-check p { margin: 0 0 6px; overflow-wrap: anywhere; }
.screen-check-state { font-size: 13px; color: var(--theirs-muted); }
.screen-open, .screen-send, .screen-take, .screen-close {
  font: inherit; min-height: 44px; padding: 8px 16px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.screen-open, .screen-send, .screen-take { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

.screen-viewer {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  padding: env(safe-area-inset-top, 0) 16px env(safe-area-inset-bottom, 0);
}
.screen-status { margin: 10px 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.screen-frame {
  flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.screen-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 12px; }
.screen-code {
  flex: 1 1 140px; min-width: 0; min-height: 44px; font: inherit; font-size: 18px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text);
}
.screen-close { margin-left: auto; }
