/*
 * Product mock-ups built as live DOM (the Space method): the approval demo,
 * the agent-tool desktop, the cursor-follow previews and the use-case minis.
 * Worlds are authored at fixed pixel sizes and scaled as one layer by JS.
 * The page stays monochrome (D37); inside the mock-ups macOS and the third-party
 * apps keep their own colours and marks (Kai, 2026-10-15; reference-sites.md C12).
 */

/* ---------- shared window chrome ---------- */
.win {
  position: absolute; overflow: hidden; border-radius: 14px; background: #fff; font-family: var(--sys); color: #1d1d1f;
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .12), 0 30px 70px -18px rgb(0 0 0 / .26), 0 10px 24px -12px rgb(0 0 0 / .14);
}
.win-bar { position: relative; display: flex; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid rgb(0 0 0 / .07); background: #f6f6f7; }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px #e0443e; }
.lights i:nth-child(2) { background: #febc2e; box-shadow: inset 0 0 0 .5px #dea123; }
.lights i:nth-child(3) { background: #28c840; box-shadow: inset 0 0 0 .5px #1aab29; }
.addr { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgb(0 0 0 / .6); white-space: nowrap; }
.addr img.on-light { filter: brightness(.12); }
.mono, .term-body { font-family: var(--mono); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink 1.06s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- approval demo ---------- */
.demo-world { position: absolute; left: 0; top: 0; width: 1000px; height: 620px; transform-origin: 0 0; }
.demo-world .dash { left: 0; top: 0; width: 770px; height: 520px; }
.demo-world .note { position: absolute; left: 24px; top: 402px; width: 300px; padding: 16px 18px; border-radius: 18px; font-family: var(--sys); font-size: 13px; line-height: 1.55; color: #3a3b3f; }
.demo-world .term { left: 580px; top: 318px; width: 420px; height: 292px; }
.demo-world.narrow { width: 440px; height: 780px; }
.narrow .dash { width: 440px; height: 480px; }
.narrow .dash-side, .narrow .note { display: none; }
.narrow .term { left: 0; top: 500px; width: 440px; height: 270px; }

.dash-body { display: flex; height: calc(100% - 36px); }
.dash-side { width: 190px; flex: none; padding: 14px 12px; background: #f3f3f4; border-right: 1px solid rgb(0 0 0 / .06); font-size: 13px; }
.ws { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .1); }
.ws b { display: block; font-size: 12.5px; }
.ws small { display: block; font-size: 10.5px; color: rgb(0 0 0 / .45); }
.ws-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #1d1d1f; color: #fff; font-size: 12px; font-weight: 600; }
.chev { margin-left: auto; font-size: 10px; color: rgb(0 0 0 / .4); }
.side-label { margin: 18px 8px 6px; font-size: 10.5px; font-weight: 600; color: rgb(0 0 0 / .4); }
.side-list li { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 7px; }
.side-list li.on { background: rgb(0 0 0 / .07); font-weight: 500; }
.side-list em { font-style: normal; font-size: 11px; color: rgb(0 0 0 / .5); }
.dash-main { position: relative; flex: 1; padding: 18px 20px; overflow: hidden; }
.dash-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.dash-title h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.dash-title span { font-size: 11px; color: rgb(0 0 0 / .45); }
.queue { display: grid; gap: 6px; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .04); transition: background-color .15s ease, box-shadow .15s ease; }
.q-dot { width: 7px; height: 7px; border-radius: 50%; background: #c4c5c9; flex: none; }
.q-text { flex: 1; min-width: 0; }
.q-text b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-text small { display: block; margin-top: 2px; font-size: 11px; color: rgb(0 0 0 / .5); }
.crit { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: rgb(0 0 0 / .55); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.crit-med { background: #3a3b3f; color: #fff; box-shadow: none; }
.q-new { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); transition: max-height .3s var(--ease-ui), padding .3s var(--ease-ui), opacity .2s ease, transform .3s var(--ease-ui); }
.q-new .q-dot { background: #1d1d1f; }
[data-proposal] .q-new { max-height: 64px; padding-top: 11px; padding-bottom: 11px; opacity: 1; transform: none; }
[data-selected] .q-new { background: #ececee; box-shadow: 0 0 0 1.5px #1d1d1f; }
[data-approved] .q-new .crit { background: #fff; color: #1d1d1f; box-shadow: inset 0 0 0 1px #1d1d1f; }

.detail { position: absolute; inset: 10px 10px 10px 10px; padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 24px 50px -16px rgb(0 0 0 / .3); opacity: 0; transform: translateX(16px) scale(.98); transition: opacity .2s ease, transform .25s var(--ease-ui); pointer-events: none; }
[data-detail] .detail { opacity: 1; transform: none; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-head small { font-size: 11px; color: rgb(0 0 0 / .45); }
.detail-head h5 { margin: 4px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.status { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f0f0f2; }
[data-approved] .status { background: #1d1d1f; color: #fff; }
.diff { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; padding: 14px; border-radius: 12px; background: #f6f6f7; font-size: 17px; }
.old { color: rgb(0 0 0 / .4); text-decoration: line-through; }
.to { color: rgb(0 0 0 / .35); }
.new { font-weight: 600; }
.detail-src { font-size: 11.5px; color: rgb(0 0 0 / .5); }
.detail-label { margin: 16px 0 8px; font-size: 11px; font-weight: 600; color: rgb(0 0 0 / .45); }
.rules { display: flex; flex-wrap: wrap; gap: 6px; }
.rules li { padding: 5px 10px; border-radius: 999px; font-size: 11.5px; background: #f0f0f2; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .25s var(--ease-ui); }
[data-rules="1"] [data-rule="1"], [data-rules="2"] [data-rule="1"], [data-rules="2"] [data-rule="2"],
[data-rules="3"] [data-rule] { opacity: 1; transform: none; }
.detail-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; font-size: 13px; font-weight: 600; }
.ghost { padding: 8px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); color: rgb(0 0 0 / .6); }
.approve { padding: 8px 18px; border-radius: 10px; background: #1d1d1f; color: #fff; transition: transform 90ms ease-out; }
[data-pressed] .approve { transform: scale(.96); }
[data-approved] .detail-actions { display: none; }
.approved-line { display: none; margin-top: 22px; font-size: 12.5px; font-weight: 600; }
[data-approved] .approved-line { display: block; }

.touch { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(240 240 242 / .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
[data-touch] .touch { opacity: 1; }
.touch-card { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 280px; padding: 24px 20px 20px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, rgb(250 250 252 / .92), rgb(244 244 247 / .9)); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 28px 60px -12px rgb(0 0 0 / .32); transform: scale(.96); transition: transform .2s var(--ease-ui); }
[data-touch] .touch-card { transform: none; }
.touch-card b { margin-top: 10px; font-size: 14px; }
.touch-card small { font-size: 11.5px; color: rgb(0 0 0 / .5); }
.touch-icon { width: 64px; height: 64px; color: #ff2d55; }
.touch-ring { fill: none; stroke: #ff2d55; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--fill, 0)); transform: rotate(-90deg); transform-origin: center; }

.note-head { margin-bottom: 6px !important; font-size: 11px; font-weight: 600; color: rgb(0 0 0 / .45); }
.note p { margin: 0; }
.note-hl { margin: 2px -4px !important; padding: 0 4px; border-radius: 4px; transition: background-color .3s ease, color .3s ease; }
[data-note] .note-hl { background: #1d1d1f; color: #fff; }
.note-tag { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #1d1d1f; color: #fff; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .25s var(--ease-ui); }
[data-proposal] .note-tag { opacity: 1; transform: none; }

.term-body { padding: 14px 16px; font-size: 12.5px; line-height: 1.6; color: #1d1d1f; }
.term-body p { margin: 0; min-height: 1.6em; white-space: pre-wrap; }
.t-dim { color: rgb(0 0 0 / .45); }
.t-tool { padding: 0 5px; border-radius: 4px; background: #ececee; font-weight: 600; }
.t-gap { min-height: .6em !important; }
.t-call, .t-answer { opacity: 0; transition: opacity .2s ease; }
[data-call] .t-call, [data-answering] .t-answer { opacity: 1; }
.t-answer { font-weight: 600; }
.cursor { position: absolute; left: 0; top: 0; z-index: 10; opacity: 0; transition: opacity .2s ease; pointer-events: none; will-change: transform; }
.cursor svg { transform-origin: 3px 2px; transition: transform 90ms ease-out; }
[data-cursor] .cursor { opacity: 1; }
[data-pressed] .cursor svg { transform: scale(.86); }

/* ---------- agent desktop ---------- */
.desk { position: relative; overflow: hidden; border-radius: 18px; background: #1b1c1f;
  box-shadow: 0 0 0 1px rgb(15 17 22 / .08), 0 2px 4px rgb(15 17 22 / .06), 0 32px 80px -24px rgb(15 17 22 / .4); }
.desk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); pointer-events: none; }
.desk-world { position: absolute; left: 0; top: 0; width: 1200px; height: 760px; transform-origin: 0 0; background: #3d7fe0; }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; }
/* menu bar: Apple menu, bold app name, that app's menus, status items, clock */
.menubar { position: relative; z-index: 50; display: flex; align-items: center; height: 30px; padding: 0 18px; font: 500 13.5px var(--sys); color: #fff;
  text-shadow: 0 0 10px rgb(0 0 0 / .3); }
.mb-apple { width: 15px; height: 15px; margin: -2px 22px 0 0; fill: currentColor; }
.menubar b { margin-right: 22px; font-weight: 700; }
.mb-menus { display: flex; flex-wrap: wrap; gap: 30px 22px; max-width: 370px; height: 18px; line-height: 18px; overflow: hidden; }
.notch { position: absolute; z-index: 55; left: 50%; top: 0; width: 128px; height: 30px; margin-left: -64px; border-radius: 0 0 10px 10px; background: #050506; }
.notch i { position: absolute; left: 50%; top: 9px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a6a, #0d1120 70%); }
.desk-box:not(.framed) .notch { display: none; }
.desk-box:not(.framed) .mb-menus { max-width: none; }
.mb-status { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.mb-status svg { height: 13px; width: auto; color: #fff; }

/* windows stay on the desktop once opened; the front one is the active app */
.win[data-scene] { border-radius: 16px; left: var(--x); top: var(--y); width: var(--w); height: var(--h); visibility: hidden; transition: box-shadow .2s ease; }
.win[data-open] { visibility: visible; }
.win[data-scene]:not([data-active]) { box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 14px 34px -14px rgb(0 0 0 / .3); }
.win[data-scene]:not([data-active]) .win-bar { background: #fbfbfb; }
.win[data-scene]:not([data-active]) .lights i { background: #dcdcde; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .1); }
.win[data-scene]:not([data-active]) .addr img { opacity: .4; }
.win[data-scene]:not([data-active]) .addr { color: rgb(0 0 0 / .3); }
.win[data-scene]:not([data-active]) .caret { visibility: hidden; }
.desk-world.narrow .win[data-scene] { left: calc(600px - var(--w) / 2); top: 74px; }
.app-term .term-body { font-size: 15px; padding: 20px 24px; }
.term-body .t-user { color: #1d1d1f; font-weight: 600; }
.term-body .t-out { color: #3a3b3f; }
.term-body .t-ok { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #e3f6e8; color: #157a35; font-weight: 600; }
[data-scene="0"] .t-tool { background: #fbeae2; color: #a8482a; }
[data-scene="0"] .t-prompt { color: #d97757; }
.editor-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: calc(100% - 36px); }
.code { padding: 18px 20px; font-size: 14px; line-height: 1.75; color: #3a3b3f; background: #fbfbfb; border-right: 1px solid rgb(0 0 0 / .07); white-space: pre; }
.code .ln { display: inline-block; width: 28px; color: rgb(0 0 0 / .25); }
.code .hl { background: #fff1b8; border-radius: 3px; box-shadow: -4px 0 0 #f5b400; }
.code .k { color: #af00db; }
.code .s { color: #a31515; }
.code .p { color: #001080; }
.agent-pane { padding: 16px; font: 13.5px/1.55 var(--sys); display: flex; flex-direction: column; gap: 10px; }
.app-chat, .app-chat .win-bar { background: #faf9f5; }
.chat-body { height: calc(100% - 36px - 64px); padding: 24px 32px; font: 15px/1.6 var(--sys); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.app-chat .bubble-u { background: #efebe2; }
.app-chat .bubble-a { position: relative; padding-left: 30px; font: 16px/1.6 Georgia, "Times New Roman", serif; color: #29261b; }
.app-chat .bubble-a::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: url("../logos/claude.svg") center / contain no-repeat; }
.chat-input { position: absolute; left: 24px; right: 24px; bottom: 16px; height: 46px; display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1), 0 2px 8px -4px rgb(0 0 0 / .12); font: 15px var(--sys); color: #1d1d1f; }
.bubble-u { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 16px; background: #ececee; }
.bubble-a { max-width: 92%; }
.app-slack .win-bar { background: #3f0e40; border-color: rgb(0 0 0 / .2); }
.app-slack .addr { color: rgb(255 255 255 / .85); }
.win[data-scene].app-slack:not([data-active]) .win-bar { background: #5a2e5b; }
.slack-wrap { display: flex; height: calc(100% - 36px); }
.slack-side { flex: none; width: 170px; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: #3f0e40; color: rgb(255 255 255 / .7); font: 13.5px/1.4 var(--sys); }
.slack-side b { margin: 0 8px 12px; color: #fff; font-size: 15px; }
.slack-side span { padding: 4px 8px; border-radius: 6px; }
.slack-side .on { background: #1164a3; color: #fff; font-weight: 600; }
.slack-body { flex: 1; min-width: 0; padding: 18px 22px; font: 14.5px/1.55 var(--sys); display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; }
.msg-ava { flex: none; width: 36px; height: 36px; }
.msg-ava img { width: 36px; height: 36px; display: block; }
.msg-card { margin-top: 8px; padding: 12px 14px; border-left: 3px solid #1d1d1f; border-radius: 6px; background: #f6f6f7; }
.msg-card .row2 { display: flex; gap: 8px; margin-top: 8px; }
.pill { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.pill-ink { background: #1d1d1f; color: #fff; box-shadow: none; }
.slack-btn { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
.app-slack .slack-btn { background: #007a5a; color: #fff; box-shadow: none; }
.fineprint { font-size: 12.5px; color: rgb(0 0 0 / .45); }
.stream > span { opacity: 0; filter: blur(4px); animation: word-in .5s cubic-bezier(.23, 1, .32, 1) forwards; }
@keyframes word-in { to { opacity: 1; filter: none; } }
.shimmer { background: linear-gradient(90deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / .85) 50%, rgb(0 0 0 / .35) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* dock: greyscale app icons in a glass shelf; a dot marks running apps */
.dock { position: absolute; z-index: 40; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 11px; padding: 9px 11px 14px; border-radius: 22px;
  background: rgb(255 255 255 / .26); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45), inset 0 1px 0 rgb(255 255 255 / .6), 0 10px 30px -12px rgb(0 20 60 / .35); }
.dock i { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; font-style: normal; color: #1d1d1f; overflow: visible;
  background: linear-gradient(180deg, #fff, #eceef1); box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .1), inset 0 1px 0 rgb(255 255 255 / .7), 0 1px 3px rgb(0 0 0 / .22); transition: filter 80ms linear; }
.dock i svg { width: 100%; height: 100%; border-radius: inherit; }
.dock i img { width: 60%; height: 60%; }
.dock .ic-finder svg { background: linear-gradient(180deg, #4fb4fb, #1572e8); }
.dock .ic-mail { background: linear-gradient(180deg, #5ab2ff, #1673f0); }
.dock .ic-cal { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding-top: 4px; font-family: var(--sys); }
.dock .ic-cal b { font-size: 8.5px; line-height: 1; font-weight: 600; color: #ff3b30; }
.dock .ic-cal span { font-size: 22px; line-height: 1.05; font-weight: 400; letter-spacing: -.03em; color: #1d1d1f; }
.dock .ic-term { background: linear-gradient(180deg, #2b2b2d, #050505); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .22), 0 1px 3px rgb(0 0 0 / .3); }
.dock .ic-term span { align-self: start; justify-self: start; margin: 6px 0 0 8px; font: 600 14px var(--mono); color: #fff; }
.dock .ic-term u { text-decoration: none; color: #9a9a9e; }
.dock .ic-code { background: linear-gradient(180deg, #2a2a2d, #0d0d0f); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .2), 0 1px 3px rgb(0 0 0 / .3); }
.dock .ic-chat { background: linear-gradient(180deg, #e4886a, #d36b4a); }
.dock .ic-chat img { width: 66%; height: 66%; filter: brightness(0) invert(1); }
.dock .ic-team { background: linear-gradient(180deg, #5b1d5c, #3f0e40); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .2), 0 1px 3px rgb(0 0 0 / .3); }
.dock .ic-team span { font: 700 23px var(--sys); color: #fff; }
.dock .ic-trash { background: none; box-shadow: none; }
.dock i[data-running]::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgb(0 0 0 / .7); }
.dock i[data-pressed] { filter: brightness(.6); }
.dock-sep { align-self: stretch; width: 1px; margin: 3px 0 -3px; background: rgb(0 0 0 / .18); box-shadow: 1px 0 0 rgb(255 255 255 / .35); }

/* the desktop's own pointer; macOS hides it while you type */
.pointer { position: absolute; left: 0; top: 0; z-index: 60; opacity: 0; transition: opacity .2s ease; pointer-events: none; will-change: transform; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }
.pointer[data-on] { opacity: 1; }
.pointer svg { display: block; transform-origin: 3px 2px; transition: transform 90ms ease-out; }
.pointer[data-pressed] svg { transform: scale(.86); }

/* ---------- cursor-follow previews (320 x 230) ---------- */
.pv { position: absolute; inset: 0; padding: 18px; font-family: var(--sys); font-size: 12.5px; color: #1d1d1f; opacity: 0; transition: opacity .25s ease; }
.pv[data-active] { opacity: 1; }
.pv-card { padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .12), 0 4px 12px -6px rgb(0 0 0 / .2); }
.pv-card small { display: block; color: rgb(0 0 0 / .5); font-size: 11px; }
.pv-card b { font-size: 13px; }
.pv-val { position: relative; height: 26px; margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.pv-val s, .pv-val b { position: absolute; left: 0; top: 0; font-size: inherit; transition: opacity .3s ease, transform .4s var(--ease); }
.pv-val b { opacity: 0; transform: translateY(8px); }
.pv-fact[data-phase="1"] .pv-val s { color: rgb(0 0 0 / .35); }
.pv-fact:is([data-phase="2"], [data-phase="3"]) .pv-val s { opacity: 0; transform: translateY(-8px); }
.pv-fact:is([data-phase="2"], [data-phase="3"]) .pv-val b { opacity: 1; transform: none; }
.pv-owner { display: block; margin-top: 4px; font-size: 11px; color: rgb(0 0 0 / .5); }
.pv-hist { margin-top: 12px; display: grid; gap: 6px; font-size: 11.5px; color: rgb(0 0 0 / .55); }
.pv-hist li { padding-left: 12px; border-left: 2px solid #d6d7da; }
.pv-hist li:first-child { opacity: 0; transition: opacity .3s ease; border-color: #1d1d1f; color: #1d1d1f; font-weight: 600; }
.pv-fact:is([data-phase="2"], [data-phase="3"]) .pv-hist li:first-child { opacity: 1; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pv-chips li { padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); font-size: 11.5px; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .3s var(--ease); }
.pv-rules:not([data-phase="0"]) .pv-chips li:nth-child(1),
.pv-rules:is([data-phase="2"], [data-phase="3"], [data-phase="4"]) .pv-chips li:nth-child(2),
.pv-rules:is([data-phase="3"], [data-phase="4"]) .pv-chips li:nth-child(3) { opacity: 1; transform: none; }
.pv-score, .pv-signed, .pv-propose, .pv-done { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 9px 12px; border-radius: 10px; background: #1d1d1f; color: #fff; font-weight: 600; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .35s var(--ease); }
.pv-rules[data-phase="4"] .pv-score, .pv-approvers[data-phase="3"] .pv-signed, .pv-tools[data-phase="5"] .pv-propose, .pv-journal[data-phase="4"] .pv-done { opacity: 1; transform: none; }
.pv-people { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.who { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 6px 14px -6px rgb(0 0 0 / .3); font-weight: 600; }
.who i { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1d1d1f; color: #fff; font-style: normal; font-size: 11px; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.pv-approvers:is([data-phase="1"], [data-phase="2"], [data-phase="3"]) .who:first-child i,
.pv-approvers:is([data-phase="2"], [data-phase="3"]) .who:last-child i { opacity: 1; transform: none; }
.pv-list { display: grid; gap: 6px; }
.pv-list li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .1); }
.pv-list span { font-size: 11px; color: rgb(0 0 0 / .3); transition: color .2s ease; }
.pv-tools:not([data-phase="0"]) .pv-list li:nth-child(1) span,
.pv-tools:is([data-phase="2"], [data-phase="3"], [data-phase="4"], [data-phase="5"]) .pv-list li:nth-child(2) span,
.pv-tools:is([data-phase="3"], [data-phase="4"], [data-phase="5"]) .pv-list li:nth-child(3) span,
.pv-tools:is([data-phase="4"], [data-phase="5"]) .pv-list li:nth-child(4) span { color: #1d1d1f; font-weight: 600; }
.pv-tl { display: grid; gap: 8px; }
.pv-tl li { padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .1); transition: opacity .3s ease; }
.pv-journal:is([data-phase="2"], [data-phase="3"]) .pv-tl .bad { box-shadow: 0 0 0 1.5px #1d1d1f; }
.pv-journal:is([data-phase="3"], [data-phase="4"]) .pv-tl .bad { opacity: .35; text-decoration: line-through; }
.pv-btn { display: inline-block; margin-top: 12px; padding: 7px 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); font-weight: 600; transition: transform 90ms ease-out, background-color .2s ease; }
.pv-journal[data-phase="2"] .pv-btn { background: #ececee; transform: scale(.96); }

/* ---------- use-case minis ---------- */
.mini { position: relative; width: 100%; max-width: 380px; height: 230px; padding: 18px; border-radius: 16px; background: #fff; font-family: var(--sys); font-size: 13px; color: #1d1d1f;
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .1), 0 30px 70px -25px rgb(0 0 0 / .3); }
.mini-h { font-size: 11.5px; font-weight: 600; color: rgb(0 0 0 / .45); margin-bottom: 10px !important; }
.mini ul { display: grid; gap: 6px; }
.mini li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 9px; background: #f5f5f6; transition: background-color .25s ease, color .25s ease; }
.mini li b { font-size: 11px; }
.mini-foot { position: absolute; left: 18px; right: 18px; bottom: 16px; font-size: 11.5px; color: rgb(0 0 0 / .5); }
.mini-ws[data-phase="0"] li:nth-child(1), .mini-ws[data-phase="1"] li:nth-child(2), .mini-ws[data-phase="2"] li:nth-child(3),
.mini-lessons[data-phase="0"] li:nth-child(1), .mini-lessons[data-phase="1"] li:nth-child(2), .mini-lessons[data-phase="2"] li:nth-child(3) { background: #1d1d1f; color: #fff; }
.mini-skill li b { opacity: .25; transition: opacity .25s ease; }
.mini-skill[data-phase="0"] li:nth-child(1) b, .mini-skill:is([data-phase="1"], [data-phase="2"]) li:nth-child(-n+2) b, .mini-skill[data-phase="2"] li b { opacity: 1; }
.mini-big { margin-top: 18px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; transition: opacity .3s ease; }
.mini-solo[data-phase="1"] .mini-big { opacity: .35; }
