/* Floating widgets: the shared shell, with notebook cells and videos. */

/* notebook cells and videos: floating widgets */
.widget { position: absolute; background: var(--surface); border: 1.5px solid var(--ink-2); border-radius: var(--r2); box-shadow: var(--shadow); overflow: hidden; cursor: grab; }
.widget[data-author="agent"] { border-color: var(--agent); }
.widget-head { display: flex; align-items: center; gap: var(--s2); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cell-code {
  display: block; width: 100%; padding: var(--s3) var(--s4); border: 0; resize: none;
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6; tab-size: 4;
}
.widget[data-author="agent"] .cell-code { color: var(--agent-ink); }
.cell-code:focus { outline: none; box-shadow: inset 3px 0 0 var(--you); }
.cell-out { max-height: 420px; overflow: auto; padding: var(--s2) var(--s4); border-top: 1px dashed var(--line-strong); font-family: var(--font-mono); font-size: 13px; cursor: text; user-select: text; -webkit-user-select: text; }
.video-title { font-size: 13px; font-weight: 600; }
.video-screen { aspect-ratio: 16 / 9; background: var(--ink); }
.video-screen iframe, .video-screen .poster { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; padding: 0; }
.video-screen .poster { background: var(--ink) center / cover no-repeat; }
.video-screen .poster span { display: inline-block; width: 62px; height: 44px; line-height: 44px; border-radius: var(--r3); background: rgba(20, 24, 29, .78); color: #fff; font-size: 20px; }
a.btn { text-decoration: none; }
[data-zoom="far"] .widget, [data-zoom="far"] .shape { opacity: .5; }
