/* Taskflow demo: a fictional task manager, not a real product. Coordinates
   are stage pixels (1200x675). Palette: teal #0d9488 accent, charcoal
   #23272f / #383d47 chrome, ink #1e1f21 / #6d6e6f, canvas #f9f8f8, board grey
   #edeae9, green #4c9b68, amber #e8a33d. */
html, body { margin: 0; height: 100%; background: #fff; }
.ud-frame { height: 100%; }
.ud-stage { --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, ui-sans-serif, sans-serif; background: #f4f2f2; font-family: var(--font); color: #1e1f21; }
.ud-cursor__ring { border-color: #0d9488; }
.ud-stage .hidden { display: none; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--fill { fill: currentColor; stroke: none; }
.av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font: 600 9px/1 var(--font); color: #fff; flex: none; }
.av--m { background: #8d6cd6; } .av--d { background: #3f8fd2; } .av--s { background: #4c9b68; }
.av--empty { background: transparent; border: 1.5px dashed #b9b6b5; color: #8a8886; }
.av--empty .ic { width: 12px; height: 12px; stroke-width: 2.2; }

/* Captions sit next to whatever the cursor is doing rather than in a banner
   above the app, so the eye doesn't have to leave the action to read them.
   1 and 6 are the opening/closing titles and stay centred over the stage. */
/* z-index: the anchored captions sit inside the app window's box and .app is a
   later, opaque sibling, so without this they paint behind it. Below the
   cursor's z-index 50 so the pointer still passes over the text. */
.caption { position: absolute; z-index: 40; text-align: center; font: 600 28px/1.2 var(--font); color: #1e1f21; letter-spacing: -0.01em; opacity: 0; }
.caption .dot { color: #0d9488; }
.caption--title { left: 0; right: 0; top: 22px; }
/* Anchored captions are solid teal cards with white text: a card on the
   app's white surface needs to own its surface to read as a callout rather
   than as page furniture. Deepened from the #0d9488 used elsewhere so white
   text clears AA (4.5:1).
   Each card straddles an app edge, bleeding ~40px onto the stage backdrop, so
   it reads as an overlay on the demo rather than a panel inside the product.
   The bleed side gets extra padding so text clears the app boundary. */
.caption--anchor { position: absolute; text-align: left; font: 600 19px/1.35 var(--font); color: #fff;
  box-sizing: border-box; padding: 16px 18px; border-radius: 10px; background: #0f766e;
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.40); }
/* App edge is x60; a left-bleed card starts at x20 and pads 58 so the first
   glyph sits just inside the window. */
.caption--left { left: 20px; padding-left: 58px; }
/* 2: the assignee cell is at 848,278 on the right, so the card hugs the far
   left edge, low, well clear of the picker that opens at x768..1008. */
.caption--assign { top: 470px; width: 400px; }
/* 2b: the board columns fill the width; the card hugs the left edge below
   them (columns end y433). */
.caption--board { top: 508px; width: 430px; }
/* 3: the AI panel and its button are on the right (x760+), so the card hugs
   the left edge under the scaled-back board. */
.caption--ai { top: 470px; width: 400px; }
/* 4 and 5: the range picker sits top-right at 1042,161, so the card hugs the
   left edge low, far from the menu that opens beneath it. */
.caption--dash { top: 400px; width: 430px; font-size: 18px; }

/* App window: 60,80 → 1140,635 */
.app { position: absolute; left: 60px; top: 80px; width: 1080px; height: 555px; border-radius: 12px; background: #fff; overflow: hidden; opacity: 0;
  box-shadow: 0 30px 60px rgba(30, 31, 33, 0.22), 0 0 0 1px rgba(30, 31, 33, 0.08); }

/* Icon rail, width 60 */
.rail { position: absolute; left: 0; top: 0; width: 60px; bottom: 0; background: #23272f; padding-top: 62px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3; }
.logo { position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; }
.logo svg { width: 28px; height: 28px; fill: #0d9488; } .logo__tick { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail i { display: flex; align-items: center; justify-content: center; width: 36px; height: 34px; border-radius: 6px; color: #a9a7a6; opacity: 0; }
.rail__active { background: #383d47; color: #fff !important; }
.rail__bottom { position: absolute; bottom: 10px; }

/* Top bar, height 48 */
.top { position: absolute; left: 60px; top: 0; right: 0; height: 48px; background: #fff; border-bottom: 1px solid #e8e6e5; display: flex; align-items: center; }
.top__crumb { display: flex; align-items: center; gap: 10px; padding-left: 20px; font: 600 15px/1 var(--font); color: #1e1f21; white-space: nowrap; }
.crumb__ic { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; color: #fff; background: #4573d2; }
.crumb__ic .ic { width: 15px; height: 15px; }
.crumb__ic--board { background: #0d9488; } .crumb__ic--portfolio { background: #8d6cd6; }
.top__tabs { display: flex; gap: 22px; margin-left: 34px; }
.top__tab { font: 400 13px/1 var(--font); color: #6d6e6f; }
.top__tab--active { color: #1e1f21; font-weight: 600; }
.top__icons { margin-left: auto; display: flex; align-items: center; gap: 18px; padding-right: 18px; color: #6d6e6f; }
.top__user { width: 30px; height: 30px; margin-right: 14px; border-radius: 50%; background: #8d6cd6; color: #fff; font: 600 11px/30px var(--font); text-align: center; }

/* ---- Scenes: app x 60..1080, y 48..555 ---------------------------------- */
.scene { position: absolute; left: 60px; top: 48px; right: 0; bottom: 0; }
.scene--hidden { opacity: 0; }

/* ---- Scene 1: My Tasks list --------------------------------------------- */
.list { position: absolute; left: 0; right: 0; top: 0; bottom: 0; padding: 10px 24px 0; box-sizing: border-box; }
.lrow { display: grid; grid-template-columns: 1fr 210px 160px 92px 96px; align-items: center; height: 46px; border-bottom: 1px solid #f0eeed; opacity: 0; }
.lrow--head { height: 34px; border-bottom: 1px solid #e8e6e5; font: 600 11px/1 var(--font); color: #6d6e6f; text-transform: uppercase; letter-spacing: 0.04em; opacity: 1; }
.lrow--head span { padding-left: 2px; }
.lrow--focus { border-radius: 6px; }
.cell { display: flex; align-items: center; gap: 9px; font: 400 13px/1 var(--font); color: #1e1f21; }
.cell--name { font-weight: 500; }
.cell--assign { position: relative; }
/* The revealed assignee is wrapped so it can be toggled as one unit; give the
   wrapper the same layout as .cell so the avatar and name keep the row's gap. */
[data-assigned] { display: flex; align-items: center; gap: 9px; }
.tick { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #cfcbca; flex: none; }
.lsection { padding: 16px 2px 8px; font: 600 13px/1 var(--font); color: #1e1f21; opacity: 0; }
.chip { padding: 4px 9px; border-radius: 4px; font: 500 11px/1 var(--font); }
.chip--pink { background: #fce6e6; color: #b8474b; }
.chip--blue { background: #e2ecfb; color: #3a63a8; }
.chip--green { background: #e2f0e7; color: #3d7d54; }
.pill { display: inline-block; padding: 4px 9px; border-radius: 4px; font: 500 11px/1 var(--font); }
.pill--high { background: #fbe4dd; color: #b4553a; }
.pill--med { background: #fdf2d9; color: #98701f; }
.pill--low { background: #eceaf9; color: #6a5aa8; }
.pill--track { background: #e2f0e7; color: #3d7d54; }
.pill--risk { background: #fdf2d9; color: #98701f; }

/* Assignee picker: hangs under the focused row's assignee cell.
   Panel spans stage x 768..1008, y 318..494; the cell it belongs to is
   stage 768..928, y 255..301. "Rowan Achebe" row centre ≈ stage 888,384. */
.picker { position: absolute; left: 648px; top: 190px; width: 240px; box-sizing: border-box; padding: 6px 0; border-radius: 8px; background: #fff; border: 1px solid #e8e6e5; box-shadow: 0 14px 34px rgba(30, 31, 33, 0.18); opacity: 0; z-index: 8; }
.picker__search { height: 34px; margin: 0 10px 4px; padding: 0 10px; border-bottom: 1px solid #f0eeed; font: 400 12px/34px var(--font); color: #8a8886; }
.picker__item { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; }
.picker__item b { display: block; font: 500 13px/1.3 var(--font); color: #1e1f21; }
.picker__item small { display: block; font: 400 11px/1.3 var(--font); color: #8a8886; }

/* ---- Scene 2: project board --------------------------------------------- */
/* The scene carries the canvas colour so the board can scale without
   shrinking the grey backdrop with it. */
[data-scene="board"] { background: #f9f8f8; }
.board { position: absolute; transform-origin: left top; left: 0; top: 0; right: 0; bottom: 0; padding: 16px 20px; box-sizing: border-box; display: flex; gap: 12px; }
.col { width: 236px; flex: none; box-sizing: border-box; padding: 10px; border-radius: 8px; background: #edeae9; opacity: 0; align-self: flex-start; max-height: 100%; }
.col__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font: 600 13px/1 var(--font); color: #1e1f21; }
.col__head em { font: 500 11px/1 var(--font); font-style: normal; color: #6d6e6f; }
.card { margin-bottom: 8px; padding: 11px 12px; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(30, 31, 33, 0.12); opacity: 0; }
.card b { display: block; font: 500 12.5px/1.35 var(--font); color: #1e1f21; }
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.card__meta .av { width: 20px; height: 20px; font-size: 8px; }
.due { padding: 3px 7px; border-radius: 4px; background: #f4f2f2; font: 500 10px/1 var(--font); color: #6d6e6f; }
.due--soon { background: #fbe4dd; color: #b4553a; }
.card--done b { color: #6d6e6f; text-decoration: line-through; }
.card--new { opacity: 0; }

/* Status update panel: app 700..1080 → stage 760..1140 */
.status { position: absolute; right: 0; top: 0; width: 380px; bottom: 0; box-sizing: border-box; padding: 18px 20px; background: #fff; border-left: 1px solid #e8e6e5; opacity: 0; z-index: 6; }
.status__head { display: flex; align-items: center; gap: 10px; }
.status__title { font: 600 14px/1 var(--font); color: #1e1f21; }
/* "Draft with AI" centre ≈ stage 860,205 */
.status .assist { position: absolute; left: 20px; top: 52px; height: 30px; width: 132px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d6cdf0; border-radius: 6px; background: #f4f0fd; color: #6a5aa8; font: 600 12px/1 var(--font); }
.status .assist .ic { width: 14px; height: 14px; }
.thinking { position: absolute; left: 22px; top: 100px; display: flex; gap: 5px; opacity: 0; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: #8d6cd6; }
.thinking i:nth-child(2) { opacity: 0.6; } .thinking i:nth-child(3) { opacity: 0.3; }
.status__text { position: absolute; left: 20px; right: 20px; top: 96px; height: 300px; font: 400 13px/1.5 var(--font); color: #23272f; white-space: pre-wrap; overflow: hidden; }
.status__foot { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 12px; }
.status__tools { display: flex; gap: 14px; color: #6d6e6f; margin-right: auto; }
.btn { height: 34px; border: 0; border-radius: 6px; font: 600 13px/1 var(--font); box-sizing: border-box; padding: 0 18px; }
/* "Post update" centre ≈ stage 1055,566 */
.btn--primary { background: #0d9488; color: #fff; width: 124px; padding: 0; }
.toast { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 7px; background: #1e1f21; color: #fff; font: 500 13px/1 var(--font); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); opacity: 0; z-index: 7; }
.toast .ic { color: #6fc48e; }

/* ---- Scene 3: portfolio dashboard --------------------------------------- */
/* Range picker centre ≈ stage 1058,120; "This quarter" ≈ stage 1058,204 */
.range { position: absolute; right: 24px; top: 16px; width: 148px; height: 34px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #d8d4d3; border-radius: 6px; background: #fff; font: 500 13px/1 var(--font); color: #1e1f21; opacity: 0; z-index: 4; }
.range .caret { width: 15px; height: 15px; color: #6d6e6f; }
.menu { position: absolute; right: 24px; top: 58px; width: 180px; box-sizing: border-box; padding: 6px 0; border-radius: 8px; background: #fff; border: 1px solid #e8e6e5; box-shadow: 0 14px 34px rgba(30, 31, 33, 0.18); opacity: 0; z-index: 8; }
.menu__item { height: 36px; padding: 0 16px; font: 400 13px/36px var(--font); color: #1e1f21; }
.menu__item--active { background: #f4f0fd; color: #6a5aa8; font-weight: 600; }

.dash { position: absolute; left: 24px; right: 24px; top: 66px; bottom: 0; }
.tile { position: absolute; top: 0; width: 228px; height: 86px; box-sizing: border-box; padding: 14px 16px; border-radius: 8px; background: #fff; border: 1px solid #e8e6e5; opacity: 0; }
.tile:nth-child(1) { left: 0; } .tile:nth-child(2) { left: 248px; } .tile:nth-child(3) { left: 496px; } .tile:nth-child(4) { left: 744px; }
.tile small { display: block; font: 400 11px/1 var(--font); color: #6d6e6f; }
.tile b { display: block; margin-top: 8px; font: 600 22px/1 var(--font); color: #1e1f21; }
.tile em { display: block; margin-top: 6px; font: 400 11px/1 var(--font); font-style: normal; color: #6d6e6f; }
.tile em.up { color: #4c9b68; }
.wcard { position: absolute; box-sizing: border-box; padding: 16px 20px; border-radius: 8px; background: #fff; border: 1px solid #e8e6e5; opacity: 0; }
.wcard--chart { left: 0; top: 106px; width: 640px; height: 268px; }
.wcard--side { left: 656px; top: 106px; width: 316px; height: 268px; }
.wcard__title { font: 600 14px/1.3 var(--font); color: #1e1f21; }
.chart { position: relative; height: 176px; margin-top: 16px; display: flex; align-items: flex-end; gap: 20px; padding: 0 6px; border-bottom: 1px solid #f0eeed; }
.bar { position: relative; flex: 1; height: var(--h); background: #0d9488; border-radius: 3px 3px 0 0; transform: scaleY(0); transform-origin: bottom; }
.bar:nth-child(n+6) { background: #99d5cd; }
.bar span { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font: 400 10px/1 var(--font); color: #6d6e6f; }
.prow { display: grid; grid-template-columns: 1fr 44px 84px; align-items: center; height: 44px; border-top: 1px solid #f0eeed; font: 400 12.5px/1.3 var(--font); color: #1e1f21; opacity: 0; }
.prow--head { margin-top: 10px; border-top: 0; height: 32px; font: 600 11px/1 var(--font); color: #6d6e6f; text-transform: uppercase; letter-spacing: 0.04em; opacity: 1; }
.prow .av { width: 22px; height: 22px; }
