/* Shared window chrome for the five service videos (lab). Fonts, design values and the window frame: title bar, panes, log line, cursor.
   Each video adds its own parts in <name>.css, scoped under its root class (.ou--office, .ao, .sq, .cc, .cs).
   No html or body rules here: the page around the video sets those (lab-page.css in the lab, site.css on the site). */
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../assets/fonts/IBMPlexSansHebrew-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0020-0022, U+0027-002F, U+003A-003B, U+003F, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

.ou {
  /* the site's design values, set on the window itself (not on :root) so the site page's own :root values are never overridden */
  --bg: #050505;
  --accent: #14b8a6;
  --accent-deep: #0f766e;
  --accent-soft: #5eead4;
  --text: #e3e8e8;
  --muted: #a6b0b0;
  --font-he: "IBM Plex Sans Hebrew", "JetBrains Mono", ui-monospace, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-mono-he: "JetBrains Mono", "IBM Plex Sans Hebrew", ui-monospace, monospace;  /* Hebrew and the shekel sign fall back to Plex */
  color-scheme: dark;
}
.ou, .ou *, .ou *::before, .ou *::after { box-sizing: border-box; }
.ou {
  --win: #0b0e0f;
  --win-2: #0e1213;
  --line: #1f2627;
  --line-2: #2a3233;
  --dim: #8a9595;
  --paper: #f6f8f7;
  --ink: #101816;
  --ink-2: #5a6764;
  --amber: #d9a441;
  --red: #e0645c;
  container-type: inline-size;
  font-family: var(--font-he);
  color: var(--text);
}
.ou-view {
  position: relative;
  aspect-ratio: 720 / 460;
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: clip;
  font-size: clamp(11px, 1.95cqi, 14px);
}
.ou-win {
  position: relative;
  width: 100%; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto;
  line-height: 1.45;
  background: var(--win);
  transform-origin: 0 0;
  user-select: none;
}
.ou svg { flex: none; }
.ou-fade { opacity: 0; }

.ou-bar {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 0.9em;
  height: 2.6em; padding: 0 1em;
  background: var(--win-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ou-app { font-size: 0.93em; }
.ou-when { display: inline-flex; align-items: center; gap: 0.5em; color: var(--dim); font-size: 0.84em; }
.ou-date { padding: 0 0.45em; border: 1px solid var(--line-2); border-radius: 4px; font-family: var(--font-mono); }
.ou-clock { font-family: var(--font-mono); color: var(--muted); }
.ou-status {
  position: relative; margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.2em 0.6em;
  font-size: 0.84em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 6px;
}
.ou-status > svg { width: 1.1em; height: 1.1em; color: var(--accent); }
.ou-status-hl {
  position: absolute; inset: -1px; border-radius: 6px;
  border: 1px solid var(--accent); background: rgba(20, 184, 166, 0.12);
  opacity: 0;
}

.ou-body { position: relative; display: grid; min-height: 0; }
.ou-pane { display: grid; grid-template-rows: auto 1fr; min-height: 0; min-width: 0; }
.ou-pane-h {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  height: 2.4em; padding: 0 1em;
  border-bottom: 1px solid var(--line);
  font-size: 0.9em; color: var(--muted);
}
.ou-tag { font-size: 0.75em; color: var(--accent-soft); border: 1px solid rgba(20, 184, 166, 0.4); border-radius: 4px; padding: 0 0.45em; white-space: nowrap; }
.ou-cur { display: inline-block; width: 1px; height: 1.1em; margin-inline-start: 1px; background: var(--accent-soft); opacity: 0; vertical-align: middle; }

.ou-log {
  display: flex; align-items: center; gap: 0.5em;
  height: 2.5em; padding: 0 1em;
  background: #060808; border-top: 1px solid var(--line);
  font-family: var(--font-mono-he); font-size: 0.88em; color: var(--accent);
  white-space: nowrap; overflow: hidden;
  transition: background-color 150ms ease, color 150ms ease;
}
.ou-log.is-hl { background: rgba(20, 184, 166, 0.09); color: var(--accent-soft); }
.ou-prompt { display: inline-flex; color: var(--dim); }
.ou-prompt svg { width: 1em; height: 1em; }
.ou[dir="rtl"] .ou-prompt svg { transform: scaleX(-1); }  /* Hebrew: the prompt chevron points left, like every direction icon */
.ou-caret { display: inline-block; width: 0.55em; height: 1.05em; background: currentColor; opacity: 0.8; }
.ou-caret.is-off { opacity: 0; }

.ou-ripple {
  position: absolute; top: 0; left: 0; width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em;
  border: 1.5px solid var(--accent-soft); border-radius: 50%;
  opacity: 0; pointer-events: none;
}
.ou-cursor { position: absolute; top: 0; left: 0; width: 30px; height: 30px; opacity: 0; pointer-events: none; transform-origin: 0 0; z-index: 10; }

.ou-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* narrow window: one column, natural height */
@container (max-width: 480px) {
  .ou-view { aspect-ratio: auto; font-size: 12px; }
  .ou-win { height: auto; }
  .ou-app { display: none; }
  .ou-status { font-size: 0.78em; }
}

@media (prefers-reduced-motion: reduce) {
  .ou * { transition: none !important; }
}

/* the narration button (demos.js): sits on the video's root, outside the zooming window, so the camera never moves it */
.ou-voice {
  position: absolute; inset-block-end: 10px; inset-inline-end: 10px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border: 1px solid #2a3233; border-radius: 999px; background: rgba(5, 5, 5, 0.82); color: #e3e8e8;
  font: 500 12px/1 "IBM Plex Sans Hebrew", "JetBrains Mono", ui-monospace, monospace; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.ou-voice:hover, .ou-voice.is-on { border-color: #14b8a6; color: #5eead4; }
.ou-voice:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
.ou-voice svg { width: 14px; height: 14px; flex: none; }
/* a 44px tall touch area around the small pill, without changing its look (round 5) */
.ou-voice::after { content: ""; position: absolute; inset-inline: -4px; top: 50%; height: 44px; transform: translateY(-50%); }

/* >>> phone text floor (tools/floor-demo-text.py, generated) */
@container (max-width: 480px) {
  .ou-app { font-size: max(11px, 0.93em); }
  .ou-when { font-size: max(11px, 0.84em); }
  .ou-status { font-size: max(11px, 0.84em); }
  .ou-pane-h { font-size: max(11px, 0.9em); }
  .ou-tag { font-size: max(11px, 0.75em); }
  .ou-log { font-size: max(11px, 0.88em); }
  @container (max-width: 480px) { .ou-status { font-size: max(11px, 0.78em); } }
}
/* <<< phone text floor */
