/* Overlook demo stage.
   A drawn copy of the product: the desktop at 100%, and canvas mode around it.
   Sizes inside .ol-viewport are logical screen pixels (1600 x 1000); the stage scales them.
   Values follow the app's renderer: cards keep the window's own 8 px radius and an 18 px shadow,
   the highlight is a 2 px accent border, key pills are 24 px tall with a 6 px radius, and the
   minimap is a dark 8 px panel. The page sets --ol-accent through the stage's options. */

.ol-stage {
  --ol-accent: #0078d4;
  --ol-accent-text: #ffffff;
  --ol-pill: rgba(20, 23, 28, 0.88);
  --ol-card-fill: #292b33;
  --ol-ui: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ol-code: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  position: relative;
  width: 100%;
  font-family: var(--ol-ui);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

.ol-bezel {
  position: relative;
  z-index: 1;
}

.ol-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101114;
  contain: strict;
}

.ol-viewport {
  position: absolute;
  left: 0;
  top: 0;
  width: 1600px;
  height: 1000px;
  transform-origin: 0 0;
}

.ol-wall,
.ol-wall-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ol-wall-blur {
  inset: -60px;
  filter: blur(26px) brightness(0.62) saturate(1.15);
  opacity: 0;
}

.ol-dots {
  position: absolute;
  inset: 0 0 48px 0;
  opacity: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1.6px, transparent 2.2px);
}

.ol-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

.ol-world.is-moving { will-change: transform; }

/* ---------- windows ---------- */

.ol-win {
  position: absolute;
  box-sizing: border-box;
  transform-origin: 0 0;
  border-radius: 8px;
  background: var(--ol-card-fill);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  color: #e6e7ea;
  font-size: 13px;
  line-height: 1.45;
  contain: layout paint;
}

.ol-win__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 0 solid var(--ol-accent);
  pointer-events: none;
  z-index: 5;
}

.ol-win__live {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.ol-bar {
  flex: none;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.ol-bar__title { flex: 1; overflow: hidden; text-overflow: ellipsis; opacity: 0.86; }

.ol-bar__ctl {
  display: flex;
  align-self: stretch;
}

.ol-bar__ctl svg {
  width: 46px;
  height: 32px;
  padding: 11px 17px;
  box-sizing: border-box;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  opacity: 0.8;
}

.ol-glyph {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 4px;
}

.ol-body {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.ol-dark { background: #1f2026; color: #d9dbe1; }
.ol-dark .ol-bar { background: #1a1b20; }
.ol-light { background: #f7f7f8; color: #1e1f24; }
.ol-light .ol-bar { background: #eceef1; }

.ol-shield {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Placeholder card: a saved window whose app is not open. */
.ol-win__ph {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-sizing: border-box;
  border: 1.25px solid rgba(255, 255, 255, 0.32);
  background: rgba(20, 21, 24, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  color: rgba(217, 222, 235, 0.92);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 0 24px;
}

.ol-win__ph small {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.7;
}

/* ---------- Windows' own Alt+Tab panel (for comparison) ---------- */

.ol-strip-bg,
.ol-strip-fg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.ol-strip-bg { background: rgba(0, 0, 0, 0.22); }

.ol-strip-panel {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 8px;
  background: rgba(40, 41, 46, 0.9);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ol-strip-fg { z-index: 2; }

.ol-strip-label {
  position: absolute;
  left: 0;
  top: 0;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f2f5;
  font: 400 13px/26px var(--ol-ui);
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
}

.ol-strip-label span { overflow: hidden; text-overflow: ellipsis; }

.ol-strip-sel {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px #ffffff;
  opacity: 0;
}

/* A real recording, when one is supplied, covers the drawing. */
.ol-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
}

/* ---------- key pills and titles (screen space) ---------- */

.ol-pills {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ol-pill {
  position: absolute;
  left: 0;
  top: 0;
  height: 24px;
  min-width: 24px;
  box-sizing: border-box;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--ol-pill);
  color: #fff;
  font: 700 13px/24px var(--ol-ui);
  text-align: center;
  white-space: nowrap;
  transform-origin: 0 0;
  opacity: 0;
}

.ol-pill.is-hot { background: var(--ol-accent); color: var(--ol-accent-text); }

.ol-pill--title {
  font-weight: 600;
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ebedf4;
}

/* ---------- minimap ---------- */

.ol-minimap {
  position: absolute;
  right: 16px;
  bottom: 64px;
  border-radius: 8px;
  background: rgba(18, 20, 26, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  overflow: hidden;
}

.ol-mm-card {
  position: absolute;
  box-sizing: border-box;
  border-radius: 2px;
  background: rgba(205, 211, 225, 0.32);
}

.ol-mm-card.is-ph { background: transparent; box-shadow: inset 0 0 0 1px rgba(205, 211, 225, 0.4); }
.ol-mm-card.is-hot { background: var(--ol-accent); }

.ol-mm-key {
  position: absolute;
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 4px;
  background: var(--ol-pill);
  color: #fff;
  font: 700 10px/16px var(--ol-ui);
  text-align: center;
  transform: translate(-50%, -50%);
}

.ol-mm-key.is-hot { background: var(--ol-accent); color: var(--ol-accent-text); }

.ol-mm-view {
  position: absolute;
  box-sizing: border-box;
  border-radius: 2px;
  border: 1.25px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- taskbar ---------- */

.ol-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: #1c1e24;  /* opaque: the canvas stops at the work area, as the app's overlay does */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #e9ebf0;
}

.ol-tb-app {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.ol-tb-app.is-active { background: rgba(255, 255, 255, 0.08); }

.ol-tb-app::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 6px;
  height: 3px;
  margin-left: -3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.ol-tb-app.is-start::after { display: none; }
.ol-tb-app.is-active::after { width: 16px; margin-left: -8px; background: var(--ol-accent); }

.ol-tb-app .ol-glyph { width: 24px; height: 24px; border-radius: 6px; }

.ol-tb-clock {
  position: absolute;
  right: 14px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  font-size: 12px;
  line-height: 16px;
}

.ol-tb-tray {
  position: absolute;
  right: 104px;
  top: 12px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 6px;
}

.ol-tray-desk {
  min-width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  font: 700 12px/20px var(--ol-ui);
  text-align: center;
}

/* ---------- pointer ---------- */

.ol-pointer {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  opacity: 0;
  transform-origin: 0 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.ol-pointer svg { width: 100%; height: 100%; display: block; }

.ol-pointer__press {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  opacity: 0;
  transform: scale(0.4);
}

/* ---------- app contents ---------- */

.ol-code {
  display: flex;
  height: 100%;
  font: 13px/20px var(--ol-code);
}

.ol-code__act { width: 48px; flex: none; background: #18191d; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 14px; }
.ol-code__act i { width: 22px; height: 22px; border-radius: 5px; background: #3a3d47; }
.ol-code__act i:first-child { background: #9aa1b5; }
.ol-code__side { width: 200px; flex: none; background: #1c1d22; padding: 12px 0; font: 12px/24px var(--ol-ui); color: #a9adba; }
.ol-code__side div { padding-left: 16px; white-space: nowrap; overflow: hidden; }
.ol-code__side .is-on { background: #2b2e38; color: #fff; }
.ol-code__main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #1f2026; }
.ol-code__tabs { height: 36px; flex: none; display: flex; background: #18191d; font: 12px/36px var(--ol-ui); }
.ol-code__tabs span { padding: 0 18px; color: #8d91a0; }
.ol-code__tabs span.is-on { background: #1f2026; color: #e8e9ee; box-shadow: inset 0 2px 0 var(--ol-accent); }
.ol-code__lines { flex: 1; padding: 10px 0; white-space: pre; overflow: hidden; }
.ol-code__lines div { display: flex; }
.ol-code__lines em { font-style: normal; width: 52px; flex: none; text-align: right; padding-right: 18px; color: #5a5e6c; }
.ol-code__status { height: 22px; flex: none; background: #2a2c35; font: 11px/22px var(--ol-ui); padding: 0 12px; color: #b9bdc9; }
.ol-code .k { color: #c792ea; } .ol-code .f { color: #82aaff; } .ol-code .s { color: #c3e88d; } .ol-code .c { color: #6b7088; font-style: italic; } .ol-code .t { color: #ffcb6b; } .ol-code .n { color: #f78c6c; }

.ol-term { height: 100%; background: #0f1014; font: 13px/20px var(--ol-code); color: #cfd3dc; }
.ol-term__tabs { height: 34px; background: #1a1b20; display: flex; align-items: flex-end; padding-left: 8px; font: 12px/30px var(--ol-ui); }
.ol-term__tabs span { padding: 0 16px; border-radius: 6px 6px 0 0; color: #9da2b0; }
.ol-term__tabs span.is-on { background: #0f1014; color: #fff; }
.ol-term__out { padding: 12px 16px; white-space: pre; overflow: hidden; }
.ol-term__out .p { color: #78c6ff; }
.ol-term__out .ok { color: #8be28b; }
.ol-term__out .dim { color: #7c8191; }
.ol-caret { display: inline-block; width: 8px; height: 16px; background: #cfd3dc; vertical-align: -3px; }

.ol-doc { padding: 26px 32px; font-size: 14px; line-height: 1.6; }
/* Titles inside the drawn windows: bold blocks, not headings, so the page outline stays the page's. */
.ol-h { display: block; font-weight: 700; }
.ol-doc .ol-h { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.ol-doc p { margin: 0 0 10px; }
.ol-check { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
.ol-check i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #8b90a0; flex: none; }
.ol-check.is-done i { background: var(--ol-accent); border-color: var(--ol-accent); }
.ol-check.is-done span { color: #8b90a0; text-decoration: line-through; }

.ol-greek { display: flex; flex-direction: column; gap: 9px; }
.ol-greek i { height: 8px; border-radius: 4px; background: currentColor; opacity: 0.16; }

.ol-browser { height: 100%; display: flex; flex-direction: column; background: #fff; color: #1d1f25; }
.ol-browser__chrome { flex: none; background: #e8eaee; padding: 8px 10px; display: flex; gap: 10px; align-items: center; }
.ol-browser__url { flex: 1; height: 26px; border-radius: 13px; background: #fff; font: 12px/26px var(--ol-ui); padding: 0 14px; color: #555b68; white-space: nowrap; overflow: hidden; }
.ol-browser__page { flex: 1; padding: 22px 28px; overflow: hidden; }
.ol-browser__page .ol-h { margin: 0 0 4px; font-size: 21px; }
.ol-meta { font-size: 12px; color: #6a7080; margin-bottom: 16px; }
.ol-diff { font: 12px/19px var(--ol-code); border: 1px solid #dfe2e8; border-radius: 6px; overflow: hidden; white-space: pre; }
.ol-diff div { padding: 0 10px; }
.ol-diff .h { background: #f1f3f6; color: #59606f; }
.ol-diff .a { background: #e6f6ea; }
.ol-diff .d { background: #fbe9eb; }

.ol-chat { display: flex; height: 100%; }
.ol-chat__rail { width: 64px; flex: none; background: #15161a; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
.ol-chat__rail i { width: 40px; height: 40px; border-radius: 12px; }
.ol-chat__chan { width: 180px; flex: none; background: #1b1c21; padding: 14px 0; font-size: 13px; color: #9a9fae; }
.ol-chat__chan div { padding: 3px 16px; }
.ol-chat__chan .is-on { color: #fff; background: #2b2d36; }
.ol-chat__main { flex: 1; min-width: 0; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; background: #202127; }
.ol-msg { display: flex; gap: 12px; }
.ol-msg > i { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: #111; }
.ol-msg b { display: block; font-size: 13px; color: #fff; }
.ol-msg span { font-size: 13px; color: #c5c8d2; }
.ol-chat__input { margin-top: auto; height: 40px; border-radius: 8px; background: #2c2e37; font-size: 13px; line-height: 40px; padding: 0 14px; color: #a3a8b6; }

.ol-music { height: 100%; display: flex; gap: 22px; padding: 22px; box-sizing: border-box; background: linear-gradient(160deg, #2a1f3d, #121218 70%); }
.ol-music__art { width: 46%; flex: none; aspect-ratio: 1; border-radius: 8px; position: relative; overflow: hidden; }
.ol-music__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ol-music__info .ol-h { margin: 0; font-size: 24px; color: #fff; }
.ol-music__info p { margin: 2px 0 14px; color: #b7b2c8; }
.ol-bar-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); margin: 6px 0 4px; position: relative; }
.ol-bar-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 2px; background: #fff; }
.ol-tracks { margin-top: 14px; font-size: 13px; color: #c9c4d8; display: flex; flex-direction: column; gap: 7px; }
.ol-tracks div { display: flex; justify-content: space-between; }
.ol-tracks .is-on { color: #fff; font-weight: 600; }

.ol-sheet { height: 100%; display: flex; flex-direction: column; background: #fff; color: #222; font-size: 12px; }
.ol-sheet__ribbon { height: 44px; flex: none; background: #f0f2f4; border-bottom: 1px solid #dde0e5; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.ol-sheet__ribbon i { width: 26px; height: 20px; border-radius: 4px; background: #d7dbe1; }
.ol-sheet__grid { flex: 1; display: grid; grid-template-columns: 34px 2.2fr 1fr 1fr 1fr 1fr; grid-auto-rows: 26px; overflow: hidden; }
.ol-sheet__grid span { border-right: 1px solid #e4e6ea; border-bottom: 1px solid #e4e6ea; padding: 0 8px; line-height: 26px; white-space: nowrap; overflow: hidden; }
.ol-sheet__grid .hd { background: #f5f6f8; color: #6b7180; text-align: center; padding: 0; }
.ol-sheet__grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.ol-sheet__grid .bold { font-weight: 700; }

.ol-files { height: 100%; display: flex; background: #f7f8fa; color: #222; }
.ol-files__side { width: 170px; flex: none; padding: 12px 0; font-size: 13px; border-right: 1px solid #e3e5ea; color: #4b5160; }
.ol-files__side div { padding: 4px 16px; }
.ol-files__side .is-on { background: #e3e8f2; color: #111; }
.ol-files__grid { flex: 1; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; align-content: start; }
.ol-file { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; }
.ol-file i { width: 54px; height: 62px; border-radius: 5px; }

.ol-design { height: 100%; display: flex; background: #1e1f24; }
.ol-design__layers { width: 170px; flex: none; background: #26272d; padding: 12px; font-size: 12px; color: #a9adba; display: flex; flex-direction: column; gap: 6px; }
.ol-design__canvas { flex: 1; position: relative; background: #2b2c33; overflow: hidden; }
.ol-design__props { width: 160px; flex: none; background: #26272d; padding: 12px; }
.ol-board { position: absolute; background: #fafafa; border-radius: 3px; overflow: hidden; }

.ol-monitor { height: 100%; display: flex; flex-direction: column; background: #1b1c21; padding: 16px 18px; box-sizing: border-box; gap: 12px; font-size: 13px; }
.ol-monitor__graph { height: 42%; flex: none; border-radius: 6px; background: #121317; position: relative; overflow: hidden; }
.ol-monitor__graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ol-procs { display: flex; flex-direction: column; font-size: 12.5px; }
.ol-procs div { display: flex; justify-content: space-between; padding: 5px 4px; border-bottom: 1px solid #2a2c33; color: #c6c9d3; }
.ol-procs div:first-child { color: #7f8494; font-weight: 600; }

.ol-video { height: 100%; display: flex; flex-direction: column; background: #0d0d10; }
.ol-video__frame { flex: 1; position: relative; overflow: hidden; }
.ol-video__ctl { height: 44px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; color: #e6e6ea; font-size: 12px; }
.ol-video__ctl .ol-bar-track { flex: 1; margin: 0; }

.ol-mail { height: 100%; display: flex; background: #fff; color: #1f2128; }
.ol-mail__list { width: 46%; flex: none; border-right: 1px solid #e5e7eb; overflow: hidden; }
.ol-mail__item { padding: 10px 16px; border-bottom: 1px solid #eef0f3; font-size: 12.5px; }
.ol-mail__item b { display: block; font-size: 13px; }
.ol-mail__item span { color: #6b7180; }
.ol-mail__item.is-on { background: #eaf1fb; box-shadow: inset 3px 0 0 var(--ol-accent); }
.ol-mail__read { flex: 1; padding: 20px 24px; font-size: 13px; line-height: 1.6; }
.ol-mail__read .ol-h { margin: 0 0 6px; font-size: 18px; }

/* ---------- live (playground) ---------- */

.ol-stage.is-live .ol-screen { cursor: default; touch-action: none; }
.ol-stage.is-live .ol-screen.is-panning { cursor: grabbing; }
.ol-stage.is-live .ol-win { cursor: pointer; }

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