/* Fig. 1: one request, followed through.
   The page around the figure is the book (paper, Newsreader). The screens inside it are the product:
   Right Hand is dark only, set in Inter, one muted-teal accent (~/ai-assistant/web/src/index.css). */

.demo {
  --app: #0f1114;
  --app1: #15181c;
  --app2: #1b1f25;
  --app3: #252a32;
  --app-line: #22262d;
  --app-line2: #2e343d;
  --app-text: #e6e8eb;
  --app-text2: #9aa1ab;
  --app-text3: #7a8290;
  --app-acc: #5b9a96;
  --app-acc2: #7bb8b4;
  --ui: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* the drawing's own size; tour.js scales it to fit the screen (--s) */
  --stage-w: 820;
  --stage-h: 580;
  --s: 1;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- The player around the drawing (paper) ---------- */

.demo-top, .demo-bottom {
  margin-left: calc((100% - var(--colgap)) / 4 + var(--colgap));
  display: flex;
  align-items: center;
}

.demo-top {
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  border-block: 1px solid var(--line-2);
  font-size: 16px;
}

.lang { display: flex; gap: 2px; }
.lang button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--mute);
  font-size: 16px;
}
.lang button.on { color: var(--acc); text-decoration: underline; text-underline-offset: 5px; }

.demo-body {
  display: grid;
  grid-template-columns: 3fr 9fr;
  column-gap: var(--colgap);
  align-items: center;
  padding-block: 14px;
}

.scene-notes { grid-column: 1; align-self: center; }

.chapter-count {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.chapter-count > span:first-child { font-size: 48px; font-weight: 300; line-height: 1; }
.chapter-count > span:last-child { font-size: 16px; color: var(--mute); }

.caption h3 { font-size: 28px; line-height: 1.15; font-weight: 400; margin-bottom: 14px; max-width: 12ch; }
.caption p { font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 24ch; }

.stage-wrap {
  grid-column: 2;
  position: relative;
  height: calc(var(--stage-h) * var(--s) * 1px);
  min-width: 0;
}

.stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--stage-w) * 1px);
  height: calc(var(--stage-h) * 1px);
  transform: translateX(-50%) scale(var(--s));
  transform-origin: top center;
}

.demo-bottom {
  gap: 22px;
  min-height: 56px;
  border-bottom: 1px solid var(--line-2);
}

.playback { display: flex; align-items: center; flex: none; }
.playback button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: none;
  font-size: 16px;
}
.playback button:first-child { padding-left: 0; justify-content: flex-start; min-width: 56px; }
.playback button:disabled { color: var(--mute); cursor: default; }
.playback svg { width: 14px; height: 14px; }

.still-note { display: none; font-size: 15px; color: var(--mute); white-space: nowrap; }
.demo.still .playback { display: none; }
.demo.still .still-note { display: block; }

.timeline {
  display: flex;
  flex: 1;
  position: relative;
  padding: 20px 0;
  gap: 5px;
  touch-action: none;
  cursor: ew-resize;
  min-width: 0;
}
.timeline > span { height: 3px; position: relative; background: var(--line); overflow: hidden; }
.timeline > span:nth-child(1) { flex: 13.5; }
.timeline > span:nth-child(2) { flex: 8.5; }
.timeline > span:nth-child(3) { flex: 5; }
.timeline > span:nth-child(4) { flex: 7; }
.timeline > span:nth-child(5) { flex: 6; }
.timeline i { position: absolute; inset: 0; background: var(--acc); transform: scaleX(0); transform-origin: left; }

#thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--acc);
  pointer-events: none;
}

#readout {
  position: absolute;
  bottom: 100%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  background: var(--paper);
  padding: 2px 6px;
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  line-height: 1.3;
}
.timeline.scrubbing #readout, .timeline:focus-visible #readout { opacity: 1; }

.timecode { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--mute); }

.figure-note { padding-top: 18px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.figure-note .main { max-width: 70ch; }

/* ---------- The phone ---------- */

.device {
  position: absolute;
  top: 10px;
  left: calc(50% - 148px);
  width: 296px;
  height: 560px;
  padding: 7px;
  background: #0b0d0f;
  border: 1px solid var(--ink);
  border-radius: 36px;
}
.device:before, .device:after {
  content: "";
  position: absolute;
  right: -4px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--ink);
}
.device:before { top: 108px; height: 46px; }
.device:after { top: 168px; height: 30px; }

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 29px;
  background: var(--app);
  color: var(--app-text);
  font: 400 12.5px/1.45 var(--ui);
  letter-spacing: -.003em;
}

.phone-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  height: 31px;
  padding: 4px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.camera { position: absolute; left: calc(50% - 4px); top: 11px; width: 8px; height: 8px; border-radius: 50%; background: #000; border: 1px solid #23272c; }
.status-icons svg { width: 36px; height: 12px; stroke-width: 1.5; }

.gesture-bar {
  position: absolute;
  z-index: 9;
  bottom: 7px;
  left: calc(50% - 44px);
  width: 88px;
  height: 3px;
  border-radius: 3px;
  background: #c9ced4;
}

.phone-scene { position: absolute; inset: 31px 0 0; overflow: hidden; opacity: 0; visibility: hidden; }

/* Scene 1: another app (a messenger) with Right Hand's bubble. */
.other-scene { opacity: 1; visibility: visible; background: #121417; color: #e4e6e8; }

.msgr-head {
  height: 50px;
  padding: 0 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #181b1f;
  border-bottom: 1px solid #23272c;
}
.msgr-back { font-size: 24px; line-height: 1; color: #b4bac1; width: 18px; text-align: center; }
.msgr-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #3a4552; color: #dfe4ea; font-size: 13px; font-weight: 500; }
.msgr-name { flex: 1; font-size: 14px; font-weight: 500; }
.msgr-more { font-size: 18px; color: #b4bac1; }

.msgr-thread { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 7px; }
.msgr-date { align-self: center; font-size: 11px; color: #8a9097; margin-bottom: 3px; }
.m { max-width: 80%; margin: 0; padding: 8px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.42; }
.m.in { align-self: flex-start; background: #262a30; border-bottom-left-radius: 5px; }
.m.out { align-self: flex-end; background: #2f3d4d; border-bottom-right-radius: 5px; }
.m-link { display: flex; flex-direction: column; gap: 1px; border-left: 3px solid #4b5b6d; }
.m-link b { font-weight: 500; }
.m-link span { font-size: 11px; color: #9aa3ad; }

.msgr-compose {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 24px;
  height: 40px;
  padding: 0 6px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  background: #1d2125;
  color: #858c94;
  font-size: 12.5px;
}
.msgr-compose i { width: 28px; height: 28px; border-radius: 50%; background: #2f3d4d; }

/* Right Hand's floating bubble: a dark disc at the screen edge (docs/bubble-design.md). */
.floating-bubble {
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 412px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16191e;
  border: 1px solid rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.floating-bubble .glyph { width: 24px; height: 24px; stroke-width: 2; }
.glyph path { stroke: #c9ced4; transition: stroke .15s; }
.glyph .dot { fill: #7bb8b4; stroke: none; }
.floating-bubble.think .glyph path { stroke: #6b737d; }
.floating-bubble.think-1 .s1, .floating-bubble.think-2 .s2, .floating-bubble.think-3 .s3 { stroke: #e6e8eb; }

.ring { position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--app-acc2); opacity: 0; pointer-events: none; }
.ring.hair { border-width: 1px; opacity: 0; }

/* The bubble's reading window: above the disc, never covering it. */
.bubble-panel {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 125px;
  padding: 14px 15px 0;
  border-radius: 12px;
  background: #16191e;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 10px 24px rgba(0, 0, 0, .45);
  opacity: 0;
}
.bp-you { display: grid; grid-template-columns: 34px 1fr; gap: 4px; }
.bp-label { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7f8791; padding-top: 2px; }
.dictated { margin: 0; min-height: 18px; color: #a9b3bb; font-size: 12.5px; line-height: 18px; }
.bp-reply { list-style: none; margin: 12px 0 0; padding: 0; display: none; flex-direction: column; gap: 6px; }
.bp-reply li, .bullets li { position: relative; padding-left: 13px; }
.bp-reply li { color: #e6e8eb; font-size: 12.5px; line-height: 18px; }
.bp-reply li:before, .bullets li:before {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b737d;
}
.bp-foot {
  margin: 12px -15px 0;
  padding: 0 12px 0 15px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
#bubble-state { flex: 1; font-size: 11px; color: #7f8791; }
.bp-open { font-size: 11.5px; color: #9aa1ab; opacity: 0; }
.bp-x { font-size: 12px; color: #9aa1ab; }

/* Scenes 2 and 4: Right Hand itself. */
.app-scene { background: var(--app); }

.app-topbar {
  height: 46px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--app-line);
}
.app-topbar strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.app-topbar > span { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--app-text3); }
.app-topbar i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-acc); }
.refresh { font-size: 14px; }

.tasks-content { padding: 14px 12px; }
.awake-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 14px; font-size: 11.5px; line-height: 1.55; color: var(--app-text2); }
.awake-row > span:first-child > span { color: var(--app-text3); }

.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--app-line2);
  border-radius: 6px;
  background: var(--app1);
  color: var(--app-text);
  font-size: 11.5px;
  white-space: nowrap;
}
.ui-button.primary { background: var(--app-acc); border-color: var(--app-acc); color: var(--app); font-weight: 500; }

.horizons {
  display: flex;
  padding: 2px;
  border: 1px solid var(--app-line2);
  border-radius: 6px;
  background: var(--app1);
  color: var(--app-text3);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.horizons > span { flex: 1; padding: 6px 3px; text-align: center; border-radius: 4px; }
.horizons .selected { background: var(--app3); color: var(--app-text); }

.filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 12px;
  padding: 5px 9px;
  border: 1px solid var(--app-line2);
  border-radius: 6px;
  color: var(--app-text3);
  font-size: 11px;
}
.filter svg { width: 12px; height: 12px; }

.task-list { padding: 0 10px; border: 1px solid var(--app-line); border-radius: 6px; background: var(--app1); }
.task-row { position: relative; display: flex; align-items: center; gap: 9px; min-height: 56px; font-size: 13px; }
.task-row + .task-row { border-top: 1px solid var(--app-line); }
.task-row small { display: block; margin-top: 2px; color: var(--app-text3); font-size: 11px; }
.task-row:first-child:after {
  content: "";
  position: absolute;
  inset: 3px -7px;
  border: 1px solid var(--app-acc);
  border-radius: 5px;
  opacity: var(--task-flash, 0);
  pointer-events: none;
}
.check-ring { flex: none; width: 15px; height: 15px; border: 1.4px solid var(--app-text3); border-radius: 50%; }
.topic-dot { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--app-acc); }
.topic-dot.neutral { background: var(--app-text2); }
.topic-dot.other { background: #8f86c9; }

.app-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-top: 1px solid var(--app-line);
  background: var(--app1);
}
.app-bottom > span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--app-text3); }
.app-bottom > span.active { color: var(--app-acc2); }
.app-bottom svg { width: 18px; height: 18px; }
.app-scene:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--app1); }

.sheet-shade { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; }

.task-sheet {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 15px 30px;
  border-top: 1px solid var(--app-line2);
  border-radius: 12px 12px 0 0;
  background: var(--app1);
  transform: translateY(105%);
}
.sheet-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-heading h3 { font-size: 15px; font-weight: 500; }
.sheet-heading > span { font-size: 18px; color: var(--app-text2); }
.sheet-task-title { font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.topic-path { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 6px; color: var(--app-text); }
.topic-path > span { color: var(--app-text3); }
.task-facts, .source-line { font-size: 11px; color: var(--app-text2); }
.source-line { position: relative; display: inline-block; margin-top: 3px; }
.source-line:after { content: ""; position: absolute; inset: -3px -5px; border: 1px solid var(--app-acc2); border-radius: 4px; opacity: var(--src-flash, 0); }
.task-note { margin: 14px 0; font-size: 13px; line-height: 1.5; }
.form-label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--app-text2); }
.sheet-horizons { margin-bottom: 8px; }
.asap { display: inline-block; padding: 5px 9px; border: 1px solid var(--app-line2); border-radius: 6px; color: var(--app-text2); font-size: 11px; }
.history { margin: 14px 0 18px; font-size: 11.5px; color: var(--app-text2); }
.sheet-actions { display: flex; align-items: center; gap: 7px; }
.sheet-actions > span:first-child { margin-right: auto; font-size: 16px; color: var(--app-text2); }

/* The chat: history scrolled to the latest message. */
.chat-content {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  bottom: 122px;
  padding: 10px 13px;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  overflow: hidden;
}
.day-marker { align-self: center; font-size: 10.5px; color: var(--app-text3); }
.msg-user {
  align-self: flex-end;
  max-width: 85%;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: var(--app2);
  font-size: 12.5px;
  line-height: 18px;
}
.msg-assistant { margin: 0; font-size: 12.5px; line-height: 18px; }
.msg-assistant p { margin: 0; }
.bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-q { display: flex; flex-direction: column; align-items: flex-end; }
.chat-q .msg-user { max-width: 85%; }
.message-time { display: block; margin-bottom: 3px; font-size: 10px; color: var(--app-text3); font-variant-numeric: tabular-nums; }

.composer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 80px;
  height: 36px;
  display: none;
  align-items: center;
  gap: 11px;
}
.composer-field {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--app-line2);
  border-radius: 6px;
  background: var(--app1);
  color: var(--app-text3);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer-field.typing { color: var(--app-text); }
.composer svg { width: 17px; height: 17px; color: var(--app-text2); }
.send-arrow { font-size: 18px; color: var(--app-text2); padding-right: 3px; }

/* Scene 3: the lock screen the next morning. */
.lock-scene { text-align: center; background: #0c0e11; color: #e6e8eb; }
.lock-symbol { padding-top: 24px; color: #9aa1ab; }
.lock-symbol svg { width: 16px; height: 16px; }
.lock-date { display: block; margin-top: 18px; font-size: 12.5px; color: #c9ced4; }
.lock-time { font-size: 68px; font-weight: 300; line-height: 1.25; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.notification {
  margin: 26px 10px 0;
  padding: 12px 14px;
  border: 1px solid var(--app-line2);
  border-radius: 16px;
  background: #1b1f25;
  text-align: left;
  opacity: 0;
}
.notification-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 11px; color: #9aa1ab; }
.notification-head > span:last-child { margin-left: auto; color: #7a8290; }
.notification-icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #16191e; color: #c9ced4; }
.notification-icon svg { width: 12px; height: 12px; stroke-width: 2.2; }
.notification h3 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.notification > p { font-size: 12.5px; color: #c9ced4; }
.lock-shortcuts { position: absolute; left: 22px; right: 22px; bottom: 34px; display: flex; justify-content: space-between; }
.lock-shortcuts span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #1b1f25; color: #c9ced4; }
.lock-shortcuts svg { width: 18px; height: 18px; }

/* ---------- The laptop (scene 5) ---------- */

.laptop {
  position: absolute;
  top: 38px;
  left: 10px;
  right: 10px;
  visibility: hidden;
  opacity: 0;
}
.lid { padding: 14px 12px 12px; background: #0b0d0f; border: 1px solid var(--ink); border-radius: 14px 14px 4px 4px; position: relative; }
.lid:before { content: ""; position: absolute; top: 5px; left: calc(50% - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: #23272c; }
.lap-screen {
  height: 452px;
  display: grid;
  grid-template-columns: 172px 1fr;
  overflow: hidden;
  border-radius: 3px;
  background: var(--app);
  color: var(--app-text);
  font: 400 13.5px/1.45 var(--ui);
}
.lap-base { position: relative; height: 13px; margin: 0 -34px; background: #c6cfd6; border: 1px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px; }
.lap-base:before { content: ""; position: absolute; top: 0; left: calc(50% - 50px); width: 100px; height: 4px; background: #9aa7b0; border-radius: 0 0 4px 4px; }

.lap-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--app-line); background: var(--app1); color: var(--app-text2); font-size: 13px; font-weight: 500; }
.lap-side span { padding: 6px 10px; border-radius: 6px; }
.lap-side .lap-brand { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; color: var(--app-text); font-weight: 600; }
.lap-brand svg { width: 16px; height: 16px; stroke-width: 2.2; color: #c9ced4; }
.lap-side .on { background: var(--app3); color: var(--app-text); }

.lap-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.lap-head { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 22px; border-bottom: 1px solid var(--app-line); font-weight: 600; font-size: 14.5px; }
.lap-head span { font-weight: 400; font-size: 12px; color: var(--app-text3); }
.lap-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 22px; }
.lap-msgs .msg-user, .lap-msgs .msg-assistant { font-size: 13.5px; line-height: 20px; max-width: 70%; }
.lap-msgs .msg-assistant { max-width: 82%; }
.lap-msgs .bullets li:before { top: 8px; }
.lap-composer { display: flex; justify-content: space-between; margin: 0 22px 16px; padding: 9px 12px; border: 1px solid var(--app-line2); border-radius: 6px; background: var(--app1); color: var(--app-text3); font-size: 12.5px; }

.demo.lap .laptop { visibility: visible; opacity: 1; }
.demo.lap .device { visibility: hidden; }

/* ---------- Without JavaScript: the task and its source, still ---------- */
.no-js .playback, .no-js .demo-bottom, .no-js .lang { display: none; }
.no-js .other-scene { visibility: hidden; opacity: 0; }
.no-js .app-scene { visibility: visible; opacity: 1; }
.no-js .task-sheet { transform: none; }
.no-js .sheet-shade { opacity: 1; visibility: visible; }

@media (max-height: 820px) { .demo { --s: .9; } }
@media (max-height: 740px) { .demo { --s: .8; } }

@media (max-width: 1100px) {
  .caption h3 { font-size: 25px; }
  .caption p { font-size: 16px; }
}

/* ---------- Phones: notes above, the drawing, controls below; all in one screen ---------- */
@media (max-width: 600px) {
  .demo { --stage-w: 320; --stage-h: 580; }

  .demo-top, .demo-bottom { margin-left: 0; }
  .demo-top { min-height: 48px; font-size: 15px; }
  .lang button { font-size: 15px; }

  .demo-body { grid-template-columns: 1fr; row-gap: 8px; padding-block: 10px 8px; }
  .scene-notes {
    grid-column: 1;
    height: 52px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0 12px;
    align-items: center;
    overflow: hidden;
  }
  .chapter-count { display: block; margin: 0; }
  .chapter-count > span:first-child { display: block; font-size: 30px; }
  .chapter-count > span:last-child { display: block; font-size: 12px; }
  .caption h3 { font-size: 21px; line-height: 1.15; margin: 0; max-width: none; }
  .caption p { display: none; }
  .stage-wrap { grid-column: 1; }

  .demo-bottom { gap: 12px; min-height: 52px; }
  .playback button { font-size: 15px; min-width: 50px; }
  .playback button:first-child { min-width: 52px; }
  .playback svg { display: none; }
  .timecode { display: none; }

  .device { left: calc(50% - 148px); top: 10px; }

  .laptop { top: 70px; left: 0; right: 0; }
  .lid { padding: 12px 6px 6px; border-radius: 12px 12px 3px 3px; }
  .lap-screen { height: 400px; grid-template-columns: 74px 1fr; font-size: 12px; }
  .lap-side { padding: 10px 4px; font-size: 11px; }
  .lap-side span { padding: 5px 6px; }
  .lap-side .lap-brand { padding-bottom: 10px; font-size: 11px; gap: 4px; }
  .lap-brand svg { display: none; }
  .lap-side .lap-brand { white-space: nowrap; font-size: 10.5px; padding-inline: 4px; }
  .lap-head { height: 38px; padding: 0 12px; font-size: 13px; }
  .lap-msgs { padding: 10px 12px; gap: 8px; }
  .lap-msgs .msg-user, .lap-msgs .msg-assistant { font-size: 12px; line-height: 17px; max-width: 92%; }
  .lap-msgs .bullets li:before { top: 7px; }
  .lap-composer { margin: 0 12px 12px; padding: 7px 10px; font-size: 11.5px; }
  .lap-base { margin: 0 -10px; }
  .figure-note { font-size: 15px; }
}
