/* The present view (present.js). Colours come from tokens.css; light and dark
   follow the same variables as the thread. */

.present {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  background: var(--bg); color: var(--text);
}
.present-top, .present-bar, .present-room { display: flex; align-items: center; gap: 8px; flex: none; }
.present-title {
  flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.present-clock { color: var(--muted); font-variant-numeric: tabular-nums; }
.present-stage {
  flex: 1; min-height: 0; overflow: hidden; contain: strict;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.present-frame { display: block; width: 100%; height: 100%; border: 0; }
.present-count { flex: 1; text-align: center; color: var(--muted); }
.present-next-title { margin: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.present-notes { margin: 0; max-height: 30vh; overflow-y: auto; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.present-room-note { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.present button {
  min-height: 44px; min-width: 64px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
}
.present button:disabled { opacity: 0.4; }
.present button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.canvas-present {
  min-height: 32px; padding: 0 10px; border: 0; background: none;
  color: var(--link); font: inherit; font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .present { animation: present-in 120ms ease-out; }
}
@keyframes present-in { from { opacity: 0; } to { opacity: 1; } }
