/* Platform walkthrough · round 4.
   1. Your foundation: the three library items and the engagement context are four cards of one colour.
   2. Consultant review: findings arrive as notifications; the consultant accepts, sets aside or sends one
      back, and each decision lands in the log. Driven by renderReview() in platform-stage.js. */
body.platform-next .pn-stage{--st-card:#f7f6f2;--st-ring:0 0 0 1px rgba(48,46,43,.07),0 1px 2px -1px rgba(48,46,43,.08),0 2px 4px 0 rgba(48,46,43,.04)}

/* ---- 1 · Foundation: one card language ---- */
body.platform-next .pn-stage .st-doc{background:var(--st-card);border-radius:16px;padding:16px 16px 20px;box-shadow:var(--st-ring)}
body.platform-next .pn-stage .st-file-preview,
body.platform-next .pn-stage .st-file-slide{background:var(--st-card);border:0;border-radius:6px;box-shadow:inset 0 0 0 1px #e4e1da}
body.platform-next .pn-stage .st-file-topline,
body.platform-next .pn-stage .st-model-table>div{border-bottom-color:#e8e5de}
body.platform-next .pn-stage .st-model-table>div:first-child{background:#efede8}
body.platform-next .pn-stage .st-model-total{background:transparent}
body.platform-next .pn-stage .st-file-lines i{background:#e8e5de}
body.platform-next .pn-stage .st-doc>strong{margin-top:16px}
body.platform-next .pn-stage .st-context{background:var(--st-card);border-radius:16px;box-shadow:var(--st-ring)}
body.platform-next .pn-stage .st-context>i{background:#ecebe6}

/* ---- 2 · Consultant review as notifications ---- */
body.platform-next .pn-stage .rv{position:relative;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:22px;flex:1;min-height:0}
body.platform-next .pn-stage .rv-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px;font-size:11.5px;font-weight:500;color:var(--st-ink)}
body.platform-next .pn-stage .rv-head b{font-weight:400;color:var(--st-muted);font-variant-numeric:tabular-nums}
body.platform-next .pn-stage .rv-inbox,body.platform-next .pn-stage .rv-log{display:flex;flex-direction:column;min-width:0}
body.platform-next .pn-stage .rv-stack{position:relative;flex:1;min-height:370px}
/* A stack: the next findings wait behind the current one, as blank cards. */
body.platform-next .pn-stage .rv-note{position:absolute;left:0;right:0;top:0;padding:18px 20px 20px;border-radius:16px;background:var(--st-card);box-shadow:var(--st-ring),0 22px 34px -26px rgba(48,46,43,.45);transform-origin:50% 0;transform:translateY(calc(max(var(--o),0) * 15px)) scale(calc(1 - max(var(--o),0) * .045));opacity:calc(1 - max(var(--o),0) * .25);z-index:calc(10 - var(--o));transition:transform 560ms cubic-bezier(.25,.46,.45,.94),opacity 420ms ease-out}
body.platform-next .pn-stage .rv-note>*{transition:opacity 260ms ease-out 140ms}
body.platform-next .pn-stage .rv-note:not(.is-active):not(.is-decided)>*{opacity:0;transition-delay:0s}
body.platform-next .pn-stage .rv-note.is-decided{transform:translate(calc(100% + 40px),-8px) rotate(3deg) scale(.9);opacity:0;pointer-events:none;transition:transform 520ms cubic-bezier(.55,0,.75,.45),opacity 380ms ease-in 120ms}
body.platform-next .pn-stage .rv-note header{display:flex;align-items:center;gap:9px;font-size:11.5px;color:var(--st-muted)}
body.platform-next .pn-stage .rv-av{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--st-fill);color:#fff;font-size:12px;line-height:1;flex:none}
body.platform-next .pn-stage .rv-note header b{font-size:12.5px;font-weight:500;color:var(--st-ink)}
body.platform-next .pn-stage .rv-note header time{margin-left:auto;font-size:11px}
body.platform-next .pn-stage .rv-note h3{margin:14px 0 12px;font-size:clamp(18px,1.6vw,21px);font-weight:500;line-height:1.25;letter-spacing:-.025em;color:var(--st-ink);text-wrap:balance}
body.platform-next .pn-stage .rv-note blockquote{margin:0;padding:11px 13px;border-radius:9px;background:#efeee9}
body.platform-next .pn-stage .rv-note blockquote p{margin:0;font-size:13.5px;line-height:1.45;color:var(--st-ink);text-wrap:pretty}
body.platform-next .pn-stage .rv-note cite{display:block;margin-top:5px;font-size:11px;font-style:normal;color:var(--st-muted)}
body.platform-next .pn-stage .rv-src{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
body.platform-next .pn-stage .rv-src span{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 7px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--st-line);font-size:11px;color:var(--st-muted)}
body.platform-next .pn-stage .rv-src img{width:14px;height:14px}
body.platform-next .pn-stage .rv-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
body.platform-next .pn-stage .rv-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--st-line);font-size:12.5px;font-weight:500;color:var(--st-ink);transition:background-color 150ms ease-out,box-shadow 150ms ease-out,scale 120ms ease-out}
body.platform-next .pn-stage .rv-btn svg{width:14px;height:14px}
body.platform-next .pn-stage .rv-btn.is-primary{padding-left:11px;background:var(--st-fill);box-shadow:none;color:#fff}
body.platform-next .pn-stage .rv-btn.is-hover{background:#e7e5df}
body.platform-next .pn-stage .rv-btn.is-primary.is-hover{background:#48443f}
body.platform-next .pn-stage .rv-btn.is-pressed{scale:.94}
body.platform-next .pn-stage .rv-empty{position:absolute;left:0;right:0;top:0;height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:16px;box-shadow:inset 0 0 0 1px var(--st-line);text-align:center;opacity:0;transform:scale(.97);transition:opacity 300ms ease-out,transform 400ms cubic-bezier(.25,.46,.45,.94)}
body.platform-next .pn-stage .rv-empty i{display:grid;place-items:center;width:38px;height:38px;margin-bottom:6px;border-radius:50%;background:var(--st-fill);color:#fff}
body.platform-next .pn-stage .rv-empty i svg{width:18px;height:18px}
body.platform-next .pn-stage .rv-empty strong{font-size:15px;font-weight:500}
body.platform-next .pn-stage .rv-empty span{font-size:12px;color:var(--st-muted)}
body.platform-next .pn-stage .rv-stack.is-empty .rv-empty{opacity:1;transform:none;transition-delay:450ms}
/* Decisions land in the log, in the order they were taken. */
body.platform-next .pn-stage .rv-log ol{display:grid;gap:10px;margin:0;padding:0;list-style:none}
body.platform-next .pn-stage .rv-entry{position:relative;display:flex;gap:12px;min-height:94px;padding:14px 16px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--st-line);transition:background-color 300ms ease-out,box-shadow 300ms ease-out}
body.platform-next .pn-stage .rv-entry>*{opacity:0;translate:-10px 0;transition:opacity 320ms ease-out 260ms,translate 420ms cubic-bezier(.25,.46,.45,.94) 260ms}
body.platform-next .pn-stage .rv-entry::after{content:"Awaiting a decision";position:absolute;left:16px;top:50%;translate:0 -50%;font-size:11.5px;color:#9a968e;transition:opacity 200ms ease-out}
body.platform-next .pn-stage .rv-entry.is-in{background:var(--st-card);box-shadow:var(--st-ring)}
body.platform-next .pn-stage .rv-entry.is-in>*{opacity:1;translate:0 0}
body.platform-next .pn-stage .rv-entry.is-in::after{opacity:0}
body.platform-next .pn-stage .rv-mark{position:relative;display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;font-style:normal}
body.platform-next .pn-stage .rv-mark svg{width:14px;height:14px}
body.platform-next .pn-stage .is-accept .rv-mark{background:var(--st-fill);color:#fff}
body.platform-next .pn-stage .is-aside .rv-mark{background:#e4e2dc;color:var(--st-ink)}
body.platform-next .pn-stage .is-follow .rv-mark{box-shadow:inset 0 0 0 1.5px var(--st-line);color:#fff}
body.platform-next .pn-stage .is-follow .rv-mark svg{display:none}
body.platform-next .pn-stage .is-follow.is-resolved .rv-mark{background:var(--st-fill);box-shadow:none}
body.platform-next .pn-stage .is-follow.is-resolved .rv-mark svg{display:block}
body.platform-next .pn-stage .is-follow.is-resolved .rv-mark .st-spin{display:none}
body.platform-next .pn-stage .rv-entry strong{display:block;font-size:13.5px;font-weight:500;line-height:1.35;letter-spacing:-.01em}
body.platform-next .pn-stage .is-aside strong{color:var(--st-muted);text-decoration:line-through;text-decoration-color:#b5b1a9}
body.platform-next .pn-stage .rv-status{display:block;margin-top:5px;font-size:11.5px;font-weight:500;color:var(--st-ink)}
body.platform-next .pn-stage .rv-status em{font-style:normal}
body.platform-next .pn-stage .rv-done,body.platform-next .pn-stage .is-resolved .rv-wait{display:none}
body.platform-next .pn-stage .is-resolved .rv-done{display:inline}
body.platform-next .pn-stage .rv-note-text{display:block;margin-top:3px;font-size:12px;line-height:1.45;color:var(--st-muted)}
body.platform-next .pn-stage .rv-summary{display:flex;align-items:center;gap:9px;margin:auto 0 0;padding-top:16px;font-size:12.5px;line-height:1.45;color:var(--st-muted)}
body.platform-next .pn-stage .rv-summary::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--st-fill)}
/* The consultant's cursor */
body.platform-next .pn-stage .rv-pointer{position:absolute;left:0;top:0;z-index:40;pointer-events:none;opacity:0;transform:translate(var(--review-x,60%),var(--review-y,300px));transition:transform 1000ms cubic-bezier(.65,0,.25,1),opacity 260ms ease-out}
body.platform-next .pn-stage .rv-pointer.is-visible{opacity:1}
body.platform-next .pn-stage .rv-pointer svg{display:block;width:20px;height:24px;fill:#fff;stroke:#26231f;stroke-width:1.5;stroke-linejoin:round;filter:drop-shadow(0 3px 4px rgba(0,0,0,.22));transform-origin:3px 2px;transition:scale 120ms ease-out}
body.platform-next .pn-stage .rv-pointer.is-clicking svg{scale:.86}
body.platform-next .pn-stage .rv-pointer i{position:absolute;left:-14px;top:-14px;width:30px;height:30px;border-radius:50%;box-shadow:inset 0 0 0 1.5px #26231f;opacity:0}
@keyframes rv-ripple{from{opacity:.5;scale:.4}to{opacity:0;scale:1.3}}
@keyframes rv-arrive{from{opacity:0;translate:0 -18px}}
@media(prefers-reduced-motion:no-preference){
 body.platform-next .pn-stage .rv-pointer.is-clicking i{animation:rv-ripple 420ms ease-out both}
 body.platform-next .pn-stage .pn-panel.st-play .rv-note{animation:rv-arrive 620ms cubic-bezier(.25,.46,.45,.94) both;animation-delay:calc(220ms + var(--k) * 150ms)}
}
@media(prefers-reduced-motion:reduce){
 body.platform-next .pn-stage :is(.rv-note,.rv-note>*,.rv-entry,.rv-entry>*,.rv-empty,.rv-pointer){transition:none}
}
@media(max-width:1100px){
 body.platform-next .pn-stage .rv{grid-template-columns:1fr;gap:20px}
 body.platform-next .pn-stage .rv-stack{min-height:350px}
 body.platform-next .pn-stage .rv-note.is-decided{transform:translateY(60px) scale(.9)}
 body.platform-next .pn-stage .rv-entry{min-height:0}
}
@media(max-width:760px){
 body.platform-next .pn-stage .rv-stack{min-height:380px}
 body.platform-next .pn-stage .rv-note{padding:16px}
 body.platform-next .pn-stage .rv-btn{height:32px;padding:0 11px;font-size:12px}
 body.platform-next .pn-stage .rv-pointer{display:none}
}
/* Fill the frame: a larger current finding, a deeper stack, decision slots that share the height. */
@media(min-width:1101px){
 body.platform-next .pn-stage .rv-note{padding:24px 26px 26px;transform:translateY(calc(max(var(--o),0) * 20px)) scale(calc(1 - max(var(--o),0) * .05))}
 body.platform-next .pn-stage .rv-note.is-decided{transform:translate(calc(100% + 40px),-8px) rotate(3deg) scale(.9)}
 body.platform-next .pn-stage .rv-note h3{margin:20px 0 16px;font-size:clamp(21px,1.95vw,26px);line-height:1.2}
 body.platform-next .pn-stage .rv-note blockquote{padding:15px 17px;border-radius:10px}
 body.platform-next .pn-stage .rv-note blockquote p{font-size:15px}
 body.platform-next .pn-stage .rv-note cite{margin-top:7px;font-size:11.5px}
 body.platform-next .pn-stage .rv-src{margin-top:16px}
 body.platform-next .pn-stage .rv-actions{margin-top:24px;padding-top:20px;border-top:1px solid #e8e5de}
 body.platform-next .pn-stage .rv-btn{height:38px;padding-inline:16px;font-size:13px}
 body.platform-next .pn-stage .rv-btn.is-primary{padding-left:13px}
 body.platform-next .pn-stage .rv-empty{height:380px}
 body.platform-next .pn-stage .rv-log ol{flex:1;grid-template-rows:repeat(3,minmax(0,1fr))}
 body.platform-next .pn-stage .rv-entry{align-items:flex-start;padding:18px}
 body.platform-next .pn-stage .rv-entry strong{font-size:14.5px}
 body.platform-next .pn-stage .rv-note-text{font-size:12.5px;margin-top:6px}
}
/* Small screens: only decisions already taken take space in the log. */
@media(max-width:760px){
 body.platform-next .pn-stage .rv-log ol{gap:8px}
 body.platform-next .pn-stage .rv-entry{min-height:0;padding:14px}
 body.platform-next .pn-stage .rv-entry:not(.is-in){display:none}
 body.platform-next .pn-stage .rv-summary{padding-top:12px}
}

/* Six capability cards: warm neutrals instead of slate blue */
.platform-next .platform-card-grid :is(.icon-title,.icon-label,.icon-small){fill:#26231f}
.platform-next .platform-card-grid .icon-rule{stroke:#e4e1da}
.platform-next .platform-card-grid .icon-paper{filter:drop-shadow(0 8px 14px rgba(38,35,31,.07))}
.platform-next .platform-card-grid :is(.story-scene--execution,.story-scene--review) text{fill:#26231f}
