/* GENERATED by npm run build from designup/runtime/shell.css; do not edit */
/* Designup shell: calm, neutral, always light. It frames the designs and never competes with them.
   Rules for this file (the build test asserts the first two):
   - no selector names a design-system class (the ds- prefix), and nothing reaches inside a design island;
     the shell may only place an island's own outer box (margin, size, ring, transform);
   - no media query on the reader's colour scheme: the shell is light whatever their system says;
   - no brand colour and no decorative imagery;
   - two levels of emphasis (FR-188 to FR-192): the chrome (navigation, lists, cards, metadata, settings) is flat, with
     hairlines and no shadow; the work (screens, frames, slides, the prototype, the pitch, the specification, specimens)
     sits on the content area's own white (--panel), never a muted stage, raised by --shadow-work (FR-189 as amended
     2026-11-07). Small previews inside cards and lists (thumbnails, strips) keep a well (--stage). Only the work casts
     a shadow, besides menus and dialogs that float over the page.
   Class vocabulary, by page part (designup/page/README.md shows the markup):
     frame      .frame .side .brand .mark .nav .count .group .footnav .main .pagehead .crumbs .actions .page
                .hero .lede .eyebrow .section .source .skip .sr-only
     content    .muted .prose .statement .rows .row .empty .note .facts details.more
     status     .pill (.placeholder .mock .draft .ready .plain) .legend .tag
     outputs    .works .work (.lead) .stage-well .work-label .work-acts .sheet .sheet-page (.sheet-title .sheet-sub .sheet-h .sheet-p .sheet-li)
     tiles      .tiles (.lg) .tile (.add) .thumb .shots .faces .tile .label/.name/.desc .cover
     journeys   .jlist .jcard .head .who .strip .shotwrap .shot (.empty) .clone .cap   [data-frame]
     storyboard .storywrap .story (.mini) .scene .scene-pic (.solo) .scene-n .scene-shot .scene-icon .scene-face
                .scene-text .scene-title .scene-cap .mood .dots .scene-link .story-strip
     flow       .flowcard .flowwrap svg.flowchart (.lane .lane-head .lane-rule .lane-name .lane-face .edge .rec .arrow
                .edge-label .node .start .step .decision .end .recovery .has-screen .shape .label .kind-tag .screen-badge)
                .flow-pins (.is-scroll on .flowwrap) .flow-hint .flow-legend .k .flowtext
     controls   .btn (.dark .icon .sm) .seg .ctl .check .toggles details.pop .menu
     cards      .card .bar .spacer .meta .canvas .cols .chips .chip .prompt (.pbar .split .pmenu) .pview .cmdcard .tablewrap .tbl
     viewer     .toolbar .title .tabs .stepper .pos .viewer (.no-panel) .screens .stagewrap .stage .step .frame-fit
                (.is-empty) .boards .board .board-head .planned  [data-viewer].in-board (the Storyboard or System flow
                tab is open) .empty-frame .panel .panel-h .guide .purpose .journey-guide ol.steps
                The screen takes the page's full width and the guidance panel sits below it, in three columns from
                1001px up (the steps, this screen, this journey); the page scrolls, the screen first and the guidance
                after. The Storyboard and System flow tabs fit one screen from 1001 × 560 up: the open board fills
                the room under the toolbar and only its own content scrolls.
     persona    .portrait (.lg) .face (.lg)
     brief      .briefcard .brief-faces .briefgroup dl.reqs   waiting  .waiting details.wait .wcounts .tag.wk-<kind>
     behaviour  .lc .lcwrap svg.lcchart (.lc-state .initial .unreachable .lc-edge .lc-label .lc-cap) code.rid
                ul.reqlist ol.aclist .achead .acsetup .chip.fr (.off) .chip.sc .gwt
     asks       .qask ul.qlinks .qlink .reqask .evask: where Pipeup's inline add-on draws a question's answer controls
     rounds     .roundfacts .roundrows .roundask .roundresult .roundq .roundqs .roundoverall .roundfeedback .tally
                .answers .sendpanel (.sendhead .sendname .sendlist .sendn .sendt .sendasks .sendpreview .sendacts .sendstatus)
                .revlink (.revlink-url .revlink-acts) .waitingyou
     reviewer   html.reviewing [data-review-kind] .pagehead.has-revbar .revbar (.revbar-round .revbar-where .revbar-pos
                .revbar-title .revbar-note) .revtip .revsay .revend (.itemask .revend-on) .revframe [data-review-keep]
                [data-review-hide] [data-review-off]; the reviewer pages: .revhead (.revhead-product .revhead-round)
                .revpage .revstart .revfrom .revtime .revclosed .revsteps .revstart-act .revfinish .revsendto .revback
     prototype  .protolink .protocard (.lg) .chip.pf (.pass .fail .untested) .tag.pf-old .pfsum (.lg) .pfsteps .pfstep
                .pflist .pfrow .pfshot .pfbody .pfwhy .pad
     first run  html.first-run body.is-first-run .frhead .frcrumbs .frpage .frstep .frwrap .frparts .frnum .frname
                .frstate (.answered .left-open .next .not-yet) .fract .frskip .frrow .frchoices .choice .frfields .field
                (.kinds .other) .hint .ghost .listen .open .checks .example .frnav .notice (.info .warn .error) .part
                .part-head .part-text .frlist .frwrites .frmade .frcount .frnext .fri   html[data-motion=still]
   Contrast: text uses --ink-3 or darker, at least 4.5:1 on every shell surface (paper, bg, well, stage);
   --ink-4 is for hairlines, list markers and disabled controls only.
   Frame sizes (keep in step with designup/runtime/specimen.css): phone 390x760, tablet 820x1180, desktop 1440x900. */

:root{
  /* Layers, lowest first (one scale for the whole shell; nothing else sets a z-index above 2):
     content 0 (a tile's hover surface sits behind it; badges on a picture lift to 1 or 2) ·
     --z-act the page's own actions (the area prompt in the header, an open prompt menu) ·
     --z-head the sticky page head (breadcrumbs, Design settings and its popover) · --z-side the sidebar and its flyouts:
     the shell is always over the page's content (a sticky sidebar is a layer of its own, so it needs one) ·
     --z-toast messages · --z-tip tooltips · --z-dialog the prompt view and its backdrop · --z-skip the skip link */
  --z-act:10;--z-head:20;--z-side:35;--z-toast:40;--z-tip:60;--z-dialog:90;--z-skip:100;
  color-scheme:light;
  --bg:#F7F7F5;--panel:#FFFFFF;--well:#F0F0EC;--stage:#E2E2DB;
  --ink:#121214;--ink-2:#4A4A52;--ink-3:#55555C;--ink-4:#6E6E76;--line:#E6E6E1;--line-2:#D6D6D0;
  --focus:#2F6FEB;--radius:14px;--radius-sm:8px;
  --s-placeholder:#A3A3AB;--s-mock:#D9822B;--s-draft:#3B82F6;--s-ready:#16A34A;
  --recovery:#B54708;--recovery-bg:#FFF6ED;
  /* The work's elevation on the stage (FR-189), and its lift on hover. The chrome has none. */
  --shadow-work:0 0 0 1px rgba(18,18,20,.07),0 2px 4px rgba(18,18,20,.06),0 10px 28px rgba(18,18,20,.14);
  --shadow-work-lift:0 0 0 1px rgba(18,18,20,.10),0 4px 8px rgba(18,18,20,.07),0 16px 40px rgba(18,18,20,.18);
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --side:174px;--side-rail:45px;
  /* Motion (FR-186): the shell's own timing, mirroring the design system's subtle motion preset (fdn-motion:
     --ds-motion-quick, -settle, -ease, -lift, -ambient, -ease-steady). Colour, border and background ease over --quick; what
     opens, closes, arrives or leaves fades and settles over --settle; nothing snaps on or off. Gentle by
     direction (2026-11-07: "Easing animations should be gentler (slower)"): longer than the subtle preset, on a soft curve. Reduced motion
     makes them 0 (below); --steady, the constant timing of an endless decoration (the AI ring), stays linear, since
     reduced motion stops that decoration itself. The shell keeps its own copy until its interface is built from the design system (FR-181). */
  /* the top rail: the one height every bar at the top of the window shares (the sidebar's brand row, the page
     header), so what sits in them lines up across the columns on one centre line */
  --rail:53px;--shell-r:12px;
  --quick:200ms;--settle:320ms;--ease:cubic-bezier(.25,.1,.25,1);--lift:-2px;--ambient:9s;--steady:linear;
}
@media (prefers-reduced-motion:reduce){
:root{--quick:0ms;--settle:0ms;--lift:0px}
}
/* No bare element or universal rules: they would reach into islands. Elements are styled only through shell
   classes or inside shell-only contexts (.side .pagehead .toolbar .hero .prose .panel .cols .rows .source .menu),
   which never hold an island. Islands sit only in .thumb, .shot > .clone, .canvas, .frame-fit, .scene-icon and .tbl cells. */
html{background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font:14px/1.55 var(--sans);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.frame,.side,.main,.pagehead,.page,.hero,.toolbar,.viewer,.screens,.board,.tabs,.stagewrap,.stage,.step,.panel,.source,.skip,.tile,.thumb,.tile .label,
.jcard,.strip,.shotwrap,.shot,.clone,.frame-fit,.empty-frame,.empty,.card,.canvas,.menu,.btn,.seg,.seg label,.chip,.pill,.tag,
.rows,.row,.portrait,.face,.ctl select,.prompt .praw,.cmdcard pre,.prose pre{box-sizing:border-box}
:is(.side,.pagehead,.toolbar,.hero,.prose,.panel,.cols,.rows,.source,.menu,.facts,.section,.tile .label,.jcard .head,.empty,.note,.tbl,.eyebrow) a:not(.btn,.chip,.nav,.row,.brand,.more,.cover){color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
:is(.side,.pagehead,.toolbar,.hero,.prose,.panel,.cols,.rows,.source,.menu,.facts,.section,.tile .label,.jcard .head,.empty,.note,.tbl) a:hover{color:var(--ink)}
:is(.skip,.side,.pagehead,.toolbar,.hero,.prose,.panel,.cols,.rows,.source,.menu,.facts,.section,.tile .label,.jcard,.empty,.note,.tbl,.card>.bar,.tiles,.strip,.jlist,.shots) :focus-visible,
:is(a.tile,.shotwrap,.btn,.chip,.row,.nav,.skip,.page,.viewer):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.page:focus-visible,.viewer:focus-visible{outline:0}
:is(.prose,.hero,.panel,.cols,.empty,.section,.facts) p{margin:0 0 10px}
:is(.prose,.source,.tbl,.cols,.panel,.facts,.tile .label,.lede,.note,.menu,.section,.empty,.row) code{font:12px var(--mono);color:var(--ink-2);overflow-wrap:anywhere}
:is(.side,.note,.prose,.panel,.menu) kbd{font:11px var(--mono);border:1px solid var(--line-2);border-bottom-width:2px;border-radius:4px;padding:0 4px;background:var(--panel);color:var(--ink-2)}
.si{width:18px;height:18px;fill:currentColor;stroke:none;flex:none}
.muted{color:var(--ink-3)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:12px;top:-60px;z-index:var(--z-skip);padding:8px 12px;border-radius:var(--radius-sm);background:var(--ink);color:#fff;text-decoration:none;font-weight:500}
.skip:focus{top:12px}
[hidden]{display:none!important}
/* What arrives fades and settles in from its [data-arriving] look; what leaves fades to its [data-leaving] look and
   app.js (or prototype.js) hides it after --settle, so `hidden` still tells assistive technology it is gone. */
.pmenu,details.pop>.menu,dialog.pview,.pview-back,.toast,[role=tabpanel][data-board]{transition:opacity var(--settle) var(--ease),translate var(--settle) var(--ease)}
:is(.pmenu,details.pop>.menu,dialog.pview):is([data-arriving],[data-leaving]){opacity:0;translate:0 var(--lift)}
:is(.pview-back,[role=tabpanel][data-board]):is([data-arriving],[data-leaving]){opacity:0}
.toast:is([data-arriving],[data-leaving]){opacity:0;translate:0 calc(var(--lift) * -2)}
.toast--top:is([data-arriving],[data-leaving]){translate:0 calc(var(--lift) * 2)}
[data-leaving]{pointer-events:none}

/* ---------- frame: sidebar + main ---------- */
.frame{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:100vh}
/* Pipeup's comment column (--pipeup-gutter, data-pipeup-reserve) is kept free inside the content area, so the content's
   white and the app bar run on to the window's edge (FR-315) and the column sits on the same white. A review keeps
   the whole frame inset. */
html.reviewing[data-pipeup-reserve] .frame{padding-right:var(--pipeup-gutter,0px)}
html[data-pipeup-reserve]:not(.reviewing) .main{padding-right:var(--pipeup-gutter,0px)}
html[data-pipeup-reserve]:not(.reviewing) .main>.pagehead{margin-right:calc(-1 * var(--pipeup-gutter,0px))}
@media (min-width:761px){html[data-pipeup-reserve]:not(.reviewing) .pagehead{padding-right:calc(32px + var(--pipeup-gutter,0px))}}
.side{position:sticky;top:0;z-index:var(--z-side);height:100vh;overflow-y:auto;padding:15px 9px;border-right:1px solid var(--line);background:var(--bg);display:flex;flex-direction:column;gap:2px}
.brand{display:flex;align-items:center;gap:8px;padding:3px 4px 14px;text-decoration:none;color:var(--ink);min-width:0}
.brand>span:last-child{min-width:0}
.brand b{display:block;font-size:15px;letter-spacing:-.01em;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mark{width:28px;height:28px;border-radius:8px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.mark.logo{background:none;color:var(--ink);border-radius:0}
.mark.logo svg{width:26px;height:26px;display:block}
.side .nav{display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:8px;text-decoration:none;color:var(--ink-2);font-weight:500;transition:background-color var(--quick) var(--ease),color var(--quick) var(--ease)}
.side .nav:hover{background:var(--well);color:var(--ink)}
.side .nav[aria-current]{background:var(--panel);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
/* A label too long for the sidebar ends in "…"; its tooltip (app.js, showTip) gives the whole name. */
.side .nav .lbl{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.side .nav>.si,.side .navhead .ico{flex:none}
.side .count{flex:none;margin-left:auto;font-size:12px;color:var(--ink-3);font-weight:500;font-variant-numeric:tabular-nums}
.side .group{font-size:11px;font-weight:600;color:var(--ink-3);padding:14px 8px 5px;letter-spacing:.06em;text-transform:uppercase}
.main{min-width:0;display:flex;flex-direction:column}
.side-top{display:flex;align-items:flex-start;gap:4px}
.side-top>.brand{flex:1}
.side-toggle{flex:none;display:grid;place-items:center;width:30px;height:30px;margin-top:2px;padding:0;border:0;border-radius:8px;background:none;color:var(--ink-3);cursor:pointer;transition:background-color var(--quick) var(--ease),color var(--quick) var(--ease)}
.side-toggle:hover{background:var(--well);color:var(--ink)}
/* Collapsed (FR-199): the sidebar is a rail of icons. Labels, counts and the brand's words stay for screen readers
   (visually hidden); the tooltip (.tip, app.js initTips) names each entry on hover and focus. The width eases
   only once the page has painted (data-side-ready), so a remembered choice never animates on arrival. */
html[data-side-ready] .frame{transition:grid-template-columns var(--settle) var(--ease)}
html[data-side=collapsed] .frame{grid-template-columns:var(--side-rail) minmax(0,1fr)}
html[data-side=collapsed] .side{padding:15px 6px;overflow-x:hidden}
html[data-side=collapsed] .side :is(.lbl,.count,.brand>span:last-child){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-side=collapsed] .side .nav{justify-content:center;padding:7px 0}
html[data-side=collapsed] .side-top{flex-direction:column;align-items:center;gap:6px;padding-bottom:12px}
html[data-side=collapsed] .brand{justify-content:center;padding:4px 0 0}
html[data-side=collapsed] .side .group{font-size:0;padding:0;margin:10px 8px;border-top:1px solid var(--line)}
.side-toggle .si{transition:transform var(--settle) var(--ease)}
html[data-side=collapsed] .side-toggle .si{transform:scaleX(-1)}
/* The top rail: wherever the sidebar is a column (above 760px), its brand row is exactly as tall as the page header and
   centres on the same line, so the mark, the product name and the toggle line up with the path and the page's actions. */
@media (min-width:761px){
  .side{padding-top:0}
  .side-top{min-height:var(--rail);align-items:center;margin-bottom:10px}
  .brand{align-items:center;padding:0 4px}
  .side-toggle{margin-top:0}
  html[data-side=collapsed] .side{padding-top:0}
  html[data-side=collapsed] .side-top{gap:6px;padding-bottom:0;margin-bottom:9px}
  /* flex:none: in the collapsed column the brand's flex-basis would otherwise override its height */
  html[data-side=collapsed] .side-top>.brand{flex:none;height:var(--rail);align-items:center;padding:0}
  /* Collapsed, the mark is the control that expands the sidebar (FR-317): on hover and focus the expand icon takes its
     place, and the separate control leaves the rail. */
  html[data-side=collapsed] .side-toggle{display:none}
  html[data-side=collapsed] .side-top{justify-content:center}
  html[data-side=collapsed] .side-top>.brand{position:relative;width:34px;height:34px;justify-content:center;border-radius:8px;transition:background-color var(--quick) var(--ease)}
  html[data-side=collapsed] .side-top>.brand:is(:hover,:focus-visible){background:var(--well)}
  html[data-side=collapsed] .brand .mark{transition:opacity var(--quick) var(--ease)}
  html[data-side=collapsed] .brand:is(:hover,:focus-visible) .mark{opacity:0}
  html[data-side=collapsed] .brand .brandtoggle{display:grid;place-items:center;position:absolute;inset:0;color:var(--ink);opacity:0;transition:opacity var(--quick) var(--ease)}
  html[data-side=collapsed] .brand .brandtoggle .si{transform:scaleX(-1)}
  html[data-side=collapsed] .brand:is(:hover,:focus-visible) .brandtoggle{opacity:1}
}
.brand .brandtoggle{display:none}
/* One shell (FR-315): the sidebar and the app bar are one muted frame, with no line between them; the content sits in it
   on white, so it draws the eye, its top-left corner a curve that joins the app bar's line to the sidebar's edge (it starts at the top of the app bar's border: an absolute
   top counts from inside the border). The
   page scrolls as a whole, so the curve rides on the app bar (sticky) and the content passes under both. A review keeps
   its own inverted bars (FR-277); on a phone the sidebar is a bar across the top, and the content is white below it. */
html:not(.reviewing) .main{background:var(--panel)}
html:not(.reviewing) .pagehead{background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none}
@media (min-width:761px){
  html:not(.reviewing) .side{border-right:0}
  html:not(.reviewing) .main{box-shadow:inset 1px 0 var(--line)}
  html:not(.reviewing) .pagehead::after{content:"";position:absolute;left:0;top:100%;width:var(--shell-r);height:var(--shell-r);pointer-events:none;background:radial-gradient(circle at 100% 100%,transparent calc(var(--shell-r) - 1.25px),var(--line) calc(var(--shell-r) - .9px),var(--line) calc(var(--shell-r) - .35px),var(--bg) var(--shell-r))}
}
.tip{position:fixed;z-index:var(--z-tip);pointer-events:none;max-width:280px;padding:5px 9px;border-radius:6px;background:var(--ink);color:#fff;font-size:12px;font-weight:500;line-height:1.45;transition:opacity var(--settle) var(--ease)}
.tip[data-place=right]{white-space:nowrap;transform:translateY(-50%)}
.tip[data-place=below]{transform:translateX(-50%)}
.tip[data-place=above]{transform:translate(-50%,-100%)}
.tip:is([data-arriving],[data-leaving]){opacity:0}
/* A page's or section's definition, on demand (FR-194, FR-195). */
.about{display:inline-grid;place-items:center;width:22px;height:22px;margin-left:6px;vertical-align:middle;border:0;border-radius:50%;background:none;color:var(--ink-3);cursor:help;transition:color var(--quick) var(--ease),background-color var(--quick) var(--ease)}
.about:hover,.about:focus-visible{color:var(--ink);background:var(--well)}
.about .si{width:16px;height:16px}

/* ---------- page header, hero, sections ---------- */
.pagehead{display:flex;align-items:center;gap:12px;min-height:var(--rail);box-sizing:border-box;padding:10px 32px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 88%,transparent);position:sticky;top:0;z-index:var(--z-head);-webkit-backdrop-filter:saturate(1.4) blur(8px);backdrop-filter:saturate(1.4) blur(8px)}
.pagehead nav{min-width:0}
.crumbs{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0;font-size:13px;color:var(--ink-2)}
.crumbs li{min-width:0}
.crumbs li+li::before{content:"›";margin-right:6px;color:var(--ink-4)}
.pagehead .crumbs a,.crumbs a{text-decoration:none;color:var(--ink-2)}
.pagehead .crumbs a:hover,.crumbs a:hover{color:var(--ink);text-decoration:underline}
.crumbs [aria-current]{color:var(--ink);font-weight:500}
.actions{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
/* A page's own controls in the header row (FR-311): a journey's stepper and a deck's pager sit right after the path and
   never shrink, so they keep their place whatever the actions at the row's end say; 32px buttons keep the rail. The
   header itself never animates. On a journey the persona takes the free room, so the actions follow it. */
.pagehead>:is(.stepper,.out-deck__pager){flex:none}
.pagehead>.who~.actions{margin-left:0}
.pagehead>.out-deck__pager{display:flex;align-items:center;gap:4px}
.pagehead>:is(.stepper,.out-deck__pager) .btn.icon{width:32px;height:32px;padding:0;justify-content:center}
.pagehead>.out-deck__pager .out-deck__count{flex:none;width:7ch;text-align:center;font-size:13px;font-weight:500;color:var(--ink-2);font-variant-numeric:tabular-nums}
/* A deck's header too narrow for one row keeps the path whole with the pager beside it, and the actions wrap under it
   at the row's end. */
.pagehead:has(>.out-deck__pager){flex-wrap:wrap;row-gap:8px}
/* On a phone the header wraps (the controls, then the actions), and its popovers open across it under its last row, so
   a panel wider than the room beside its trigger stays in the window. */
@media (max-width:760px){
  html:not(.reviewing) .pagehead:has(>:is(.stepper,.out-deck__pager)){position:relative}
  html:not(.reviewing) .pagehead:has(>:is(.stepper,.out-deck__pager))>.actions>details.pop{position:static}
  html:not(.reviewing) .pagehead:has(>:is(.stepper,.out-deck__pager))>.actions>details.pop>.menu{left:16px;right:16px;width:auto;max-width:none}
}
/* Every surface takes the full width of the content area (FR-318): no page-wide cap; text keeps its own measure. */
.page{display:block;padding:36px 32px 56px;width:100%;outline:0}
.hero{margin:0 0 28px}
/* an area's prompt, at the top of its page beside the title (FR-223): its name over the AI ring's Copy prompt */
.hero:has(>.hero-act){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:start}
.hero:has(>.hero-act)>:not(.hero-act){grid-column:1}
.hero>.hero-act{position:relative;z-index:var(--z-act);grid-column:2;grid-row:1 / span 4;align-self:start;padding-top:4px}
.hero-act--solo{position:relative;z-index:var(--z-act)}
/* any open prompt menu sits above the tiles, whose hover surface gives each its own layer */
.prompt:has(.pmenu:not([hidden])){position:relative;z-index:var(--z-act)}
.hero-act .prompt{margin:0}
.hero-act .pbar{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.hero-act .ptext{align-items:flex-end;text-align:right}
.hero-act .pdesc{display:none}
.hero-act .ptitle b{font-size:12px;font-weight:500;color:var(--ink-3)}
.hero-act--solo{display:flex;justify-content:flex-end;margin:-8px 0 16px}
@media (max-width:760px){.hero:has(>.hero-act){grid-template-columns:minmax(0,1fr)}.hero>.hero-act{grid-column:1;grid-row:auto;padding-top:12px}.hero-act .pbar{align-items:flex-start}.hero-act .ptext{align-items:flex-start;text-align:left}}
.hero:has(> .portrait){display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:center}
.eyebrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;font-size:12px;color:var(--ink-3)}
.hero h1{font-size:30px;line-height:1.15;letter-spacing:-.025em;font-weight:650;margin:0 0 6px;overflow-wrap:anywhere}
:is(.hero,.section,.prose,.panel,.cols) :is(h2,h3){overflow-wrap:anywhere}
.lede{font-size:16px;line-height:1.5;color:var(--ink-2);margin:0;max-width:44rem}
.section{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:40px 0 14px;scroll-margin-top:72px}
.section:first-child{margin-top:0}
.section h2{font-size:15px;font-weight:600;margin:0;letter-spacing:-.005em}
.section .n{font-size:12px;color:var(--ink-3);font-weight:500}
.section .more{margin-left:auto;font-size:13px;color:var(--ink-3);text-decoration:none}
.section .more:hover{color:var(--ink);text-decoration:underline}
.section p{flex-basis:100%;margin:2px 0 0;color:var(--ink-3);font-size:13px}
/* The footer's bottom margin and .panel's bottom padding keep the last lines clear of Pipeup's corner button. */
.source{margin-top:auto;margin-bottom:72px;padding:16px 32px 22px;border-top:1px solid var(--line);font-size:12px;color:var(--ink-3)}
.source code{font-size:11.5px;color:var(--ink-3)}

/* ---------- plain content ---------- */
.prose{max-width:44rem;color:var(--ink-2)}
/* A wide table may use the whole column; the text around it keeps the reading width. */
.prose:has(>.tablewrap){max-width:none}
.prose:has(>.tablewrap)>:not(.tablewrap){max-width:44rem}
.prose h2{font-size:15px;color:var(--ink);margin:28px 0 8px;scroll-margin-top:72px}
.prose h3{font-size:14px;color:var(--ink);margin:20px 0 6px}
.prose ul,.prose ol{margin:0 0 12px;padding-left:20px}
.prose li{margin:3px 0}
.prose li::marker{color:var(--ink-4)}
.prose pre{font-family:var(--mono);margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);font-size:12.5px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.prose table{border-collapse:collapse;margin:0 0 12px;font-size:13px}
.prose th,.prose td{text-align:left;padding:6px 12px 6px 0;border-bottom:1px solid var(--line);vertical-align:top}
.prose blockquote{margin:0 0 12px;padding-left:14px;border-left:2px solid var(--line-2);color:var(--ink-2)}
.statement{font-size:22px;line-height:1.35;letter-spacing:-.015em;font-weight:500;color:var(--ink);max-width:40rem;margin:0 0 8px}
.note{font-size:12px;color:var(--ink-3);margin:0}
.empty{display:grid;gap:6px;justify-items:start;padding:22px 24px;border:1.5px dashed var(--line-2);border-radius:var(--radius);color:var(--ink-3)}
.empty b{color:var(--ink-2);font-weight:600}
.rows{list-style:none;margin:0;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.rows li+li{border-top:1px solid var(--line)}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 16px;text-decoration:none;color:inherit}
a.row:hover{background:var(--well)}
.row .name{font-weight:600}
/* the description is the row's second line, under the name: never a right-aligned fragment that wraps on its own */
.row{row-gap:2px}
.row .meta{flex-basis:100%;font-size:13px;color:var(--ink-3)}
/* Asks (FR-269): Pipeup's inline add-on draws a question and its answer controls in place of the element's own words. */
.row .qask{flex:1 1 0;min-width:0}
ul.qlinks{margin:0;padding-left:18px}
ul.qlinks li+li{margin-top:4px}
.qlink{margin-left:6px;font-size:13px}
.reqask{margin-top:6px}
.evask{margin-top:12px}
/* Review rounds (FR-258 to FR-264): the round's page (the owner's view) and the send on the finish page. */
.roundfacts{margin:0 0 14px}
.roundrows .roundresult,.roundrows>li>.note{margin:0 16px 10px}
.roundrows .roundresult:empty{display:none}
.roundrows>li>.note.roundq{font-weight:400;color:var(--ink-2)}
.roundresult .meta{font-size:13px;color:var(--ink-3)}
.roundqs>li{padding:11px 4px}
.roundq{font-weight:600}
.roundqs .roundresult{margin-top:6px}
.roundoverall{margin:0 0 8px}
.roundoverall .meta{display:block;margin-top:6px;font-size:13px;color:var(--ink-3)}
.tally{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0;font-size:13px;color:var(--ink-2)}
.tally b{color:var(--ink);font-weight:600}
.answers{margin:4px 0 0;padding-left:18px;font-size:13px;color:var(--ink-2)}
.answers b{color:var(--ink)}
.roundfeedback .name{font-weight:400}
.sendpanel{display:grid;gap:12px;padding:16px 18px}
.sendpanel>p{margin:0}
.sendlist{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.sendlist li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:7px 0;border-bottom:1px solid var(--line)}
.sendn{min-width:16px;font:12px var(--mono);color:var(--ink-3)}
.sendt{flex:1 1 200px;font-weight:500}
.sendlist .meta{font-size:13px;color:var(--ink-3)}
.sendname{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sendname-label{flex-basis:100%;font-size:12px;font-weight:600;color:var(--ink-3)}
.sendname input{flex:1 1 200px;max-width:320px;min-width:0;box-sizing:border-box;font:inherit;padding:5px 9px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--panel);color:var(--ink);transition:border-color var(--quick) var(--ease)}
.sendname input:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.sendpreview summary{cursor:pointer;font-size:13px;color:var(--ink-2)}
.sendpreview textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:10px;font:12px/1.5 var(--mono);border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--well);color:var(--ink);resize:vertical}
.sendacts{display:flex;flex-wrap:wrap;gap:8px}
.revlink{margin:0 0 18px}
.revlink .body{display:grid;gap:8px;padding:14px 16px}
.revlink .name{font-weight:600}
.revlink .note{margin:0}
.revlink-url{margin:0;font:13px var(--mono);overflow-wrap:anywhere}
.revlink-acts{display:flex;flex-wrap:wrap;gap:8px}

/* Reviewer mode (FR-277 to FR-281): a page opened from a round shows the round and nothing of the workspace. The
   head's script sets html.reviewing before the first paint; app.js adds the bar (.revbar), the sentence (.revsay) and
   the item's end (.revend: its ask, then the way on). Hidden here: the sidebar, the path, the page's actions and
   controls (a journey's stepper, a deck's pager), statuses, prompts, the source line, the journey's tabs, settings and
   guidance, and the builders' parts of the specification. A deck and the prototype keep only what app.js marks
   [data-review-keep]. */
html.reviewing .frame{grid-template-columns:minmax(0,1fr)}
html.reviewing :is(.side,.crumbs,.about,.pagehead>.actions,.pagehead>.who,.pagehead>nav,footer.source,.hero-act,.hero .eyebrow,.hero .pill,.hero .lede .pill,.prompt,.pill:not(.plain),.tag.pf-old,.tag.wk-question,.reqask,code.rid,.chip.pf,.pfsqs,.pfshot,.pfsum,.protocard,.panel,.boards,[data-views],[data-settings-pop],[data-toggle-panel],[data-dataview],.toolbar>.title,.toolbar>.pill,.stagewrap>.cap,.stepper .pos,.pagehead>.stepper,.pagehead>.out-deck__pager,[data-review-hide]){display:none!important}
html.reviewing :is([data-pipeup-id="spec-parts"],.chip.fr,.pfstep .bar>a.note,.pfstep .body>p.note){display:none!important}
html.reviewing:is([data-review-kind=deck],[data-review-kind=prototype]) .page>:not([data-review-keep]){display:none!important}
html.reviewing:is([data-review-kind=deck],[data-review-kind=prototype]) .page>.revfit>:not([data-review-keep]){display:none!important}
/* The bar names the item (FR-279): a deck, the specification and the prototype show no page heading of their own. */
html.reviewing:is([data-review-kind=deck],[data-review-kind=prototype],[data-review-kind=specification]) .hero{display:none!important}
html.reviewing .page{max-width:none}
html.reviewing a[data-review-off]{color:inherit;text-decoration:none;cursor:text}
.pagehead.has-revbar{flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
/* The reviewer bar keeps one shape on every item: two lines on the left (the review and Item n of N; the item and
   its note), the actions on the right on one line, centred on the two. Only the note may wrap. */
.revbar{position:relative;flex-basis:100%;min-width:0;display:flex;align-items:center;gap:8px 20px;font-size:13px;transition:opacity var(--settle) var(--ease)}
.revbar:is([data-arriving],[data-leaving]){opacity:0}
.revbar .btn>.si{flex:none}
.revbar>[data-review-close],.revbar>a.btn:first-child{flex:none}
.revbar-where{flex:1 1 0;display:flex;align-items:baseline;gap:12px;min-width:0;white-space:nowrap;overflow:hidden}
.revbar-eyebrow,.revbar-line{margin:0;min-width:0}
.revbar-eyebrow{flex:none;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink-3);white-space:nowrap}
.revbar-eyebrow>.revbar-pos::before{content:"·";margin-right:8px;color:var(--line-2)}
.revbar-round{color:var(--ink-3);text-decoration:none;overflow:hidden;text-overflow:ellipsis}
.revbar-round:hover{color:var(--ink);text-decoration:underline}
.revbar-pos{font-variant-numeric:tabular-nums}
.revbar-line{flex:1 1 auto;min-width:0;font-size:14px;line-height:1.4;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis}
.revbar-title{color:var(--ink);font-weight:600}
.revbar-acts{flex:none;display:flex;align-items:center;gap:8px;white-space:nowrap}
.revtip{position:absolute;top:calc(100% + 8px);right:0;z-index:var(--z-act);width:min(320px,calc(100vw - 32px));display:grid;gap:8px;justify-items:start;padding:14px 16px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--panel);box-shadow:0 12px 32px rgba(18,18,20,.14);transition:opacity var(--settle) var(--ease),translate var(--settle) var(--ease)}
.revtip:is([data-arriving],[data-leaving]){opacity:0;translate:0 var(--lift)}
.revtip p{margin:0;color:var(--ink-2);line-height:1.45}
.revsay{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0;min-width:0;font-size:15px;color:var(--ink)}
.revsay b{font-size:12px;font-weight:600;color:var(--ink-3)}
.toolbar>.revsay{flex:1 1 auto}
.page>.revsay{margin:0 0 20px;color:var(--ink-2)}
.revend{display:grid;justify-items:center;gap:12px;width:100%;max-width:720px}
.page>.revend{justify-items:start;margin-top:32px;padding-top:20px;border-top:1px solid var(--line)}
.revend>.roundask{width:100%;transition:opacity var(--settle) var(--ease)}
.revend>.roundask:is([data-arriving],[data-leaving]){opacity:0}
.revend-on{display:flex;justify-content:center;margin:0}
.page>.revend .revend-on{justify-content:flex-start}
.revframe{margin:0 0 8px;height:calc(100vh - 220px);min-height:420px;border-radius:12px;overflow:hidden;background:var(--stage);box-shadow:var(--shadow-work)}
.revframe iframe{display:block;width:100%;height:100%;border:0;background:var(--panel)}
.revframe>.note{padding:24px}
/* The reviewer link's start page and the finish page: one column, no workspace around them. */
.revpage{display:block;max-width:720px;margin:0 auto;padding:48px 32px 72px;outline:0}
.revpage h1{font-size:30px;line-height:1.2;letter-spacing:-.02em;margin:0 0 14px}
.revpage h2{font-size:18px;letter-spacing:-.01em;margin:32px 0 10px}
.revpage .lede{margin:0 0 16px}
.revfrom{margin:0 0 10px;font-size:16px;color:var(--ink-2)}
.revtime{margin:0 0 22px;font-size:13px;color:var(--ink-3)}
.revclosed{margin:16px 0 0;font-size:16px}
.revsteps{list-style:none;counter-reset:revstep;display:grid;gap:12px;margin:0 0 28px;padding:0}
.revsteps li{counter-increment:revstep;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;row-gap:2px;align-items:baseline}
.revsteps li::before{content:counter(revstep);grid-row:span 2;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--well);font-weight:600;font-size:13px}
.revsteps b{font-size:15px}
.revsteps span{color:var(--ink-2)}
.revstart-act{margin:0 0 12px}
.revstart-act .btn{font-size:15px;padding:9px 18px}
.revsendto{display:grid;gap:4px;margin:0 0 14px}
.revsendto>b{font-size:12px;font-weight:600;color:var(--ink-3)}
.revsendto .prose p{margin:0}
.revback{margin:28px 0 0}
@media (max-width:640px){
  .revhead{padding:12px 16px}
  .revpage{padding:32px 16px 56px}
  .revbar{flex-wrap:wrap}
  .revbar-acts{flex-wrap:wrap;white-space:normal}
  .revframe{height:calc(100vh - 260px)}
}
.facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 18px;margin:0}
.facts dt{font-size:12px;font-weight:600;color:var(--ink-3)}
.facts dd{margin:0;color:var(--ink)}
details.more{margin-top:28px}
details.more>summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--ink-3);font-size:13px;font-weight:500;list-style:none}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform var(--quick) var(--ease)}
details.more[open]>summary::before{transform:rotate(45deg)}
details.more>summary:hover{color:var(--ink)}
details.more>:not(summary){margin-top:12px}

/* ---------- status ---------- */
.pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:999px;background:var(--well);font-size:12px;font-weight:500;color:var(--ink-2);white-space:nowrap;line-height:1}
.pill::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--s-placeholder);flex:none}
.pill.mock::before{background:var(--s-mock)}
.pill.draft::before{background:var(--s-draft)}
.pill.ready::before{background:var(--s-ready)}
.pill.plain::before{display:none}
.legend{display:flex;flex-wrap:wrap;gap:8px}
.tag{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:5px;background:var(--well);color:var(--ink-3);font-size:11px;font-weight:500;white-space:nowrap}

/* ---------- tiles with live miniatures ---------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:16px}
.tiles.lg{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:20px}
/* A tile is its stage and its label, like an output (FR-201): no card around them; Add keeps its dashed edge. */
/* The virtual container (FR-201): hovering anywhere on a tile or an output, or focusing its link, lays a surface in
   the highlight colour (the focus blue, tinted) behind its stage and label together, so it is clear which one the pointer is on. */
.tile,.work{isolation:isolate}
.tile::before,.work::before{content:"";position:absolute;inset:-8px;z-index:-1;border-radius:calc(var(--radius) + 6px);background:color-mix(in srgb,var(--focus) 9%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--focus) 30%,transparent);opacity:0;transition:opacity var(--quick) var(--ease);pointer-events:none}
.tile:hover::before,.tile:has(.cover:focus-visible)::before,.work:hover::before,.work:has(.cover:focus-visible)::before{opacity:1}
.tile:hover .cover,.work:hover .cover{text-decoration:underline}
.tile{position:relative;display:flex;flex-direction:column;min-width:0;text-decoration:none;color:inherit}
a.tile:hover .shot,.tile:has(.cover:hover) .shot{box-shadow:var(--shadow-work-lift)}
/* A tile or thumbnail whose picture holds links (a miniature of a screen) must not itself be an <a>: nested links are
   re-parsed by the browser. Make it a <div> and put the link on its name with class "cover"; the link then covers
   the whole tile. */
.cover{text-decoration:none;color:inherit}
.cover::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.cover:hover{text-decoration:underline}
.cover:focus-visible{outline:0}
.tile:has(.cover:focus-visible),.shotwrap:has(.cover:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.tile.add{border:1px dashed var(--line-2);border-radius:var(--radius);transition:border-color var(--quick) var(--ease)}
.tile.add:has(.cover:hover){border-color:var(--ink-4)}
.thumb{position:relative;margin:0;min-height:168px;padding:20px 16px;border-radius:var(--radius);background:var(--stage);display:grid;place-items:center;overflow:hidden}
.tiles.lg .thumb{min-height:220px}
.tile.add .thumb{background:transparent;padding:16px 8px}
.tile.add .label{padding:0 14px 14px}
.thumb>*{max-width:100%;min-width:0}
.tile .label{padding:12px 2px 0;display:flex;flex-direction:column;gap:3px;min-width:0}
.tile .name{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:600;font-size:15px;letter-spacing:-.005em}
.tile .desc{font-size:13px;color:var(--ink-3)}
.tile .desc code{white-space:nowrap}
.shots{display:flex;align-items:flex-end;justify-content:center;gap:10px;width:100%}
.shots .shot{flex:1 1 0;width:auto;max-width:200px}
.shots .shot:nth-child(2){margin-bottom:12px}
/* A tile's thumbnail keeps the tiles' row even: a phone or tablet screen is sized by its height, not the tile's width. */
.shots .shot[data-frame="phone"]{flex:0 0 auto;width:96px}
.shots .shot[data-frame="tablet"]{flex:0 0 auto;width:150px}
.tiles.one{grid-template-columns:minmax(0,560px)}
.tiles.one .thumb{min-height:0;padding:16px}
.shots.one .shot{flex:0 1 316px;max-width:316px}
.card.create+.tiles{margin-top:24px}
.tiles.one+.note{margin-top:12px}
.cmd .btn{min-width:124px;justify-content:center}
.faces{display:flex;align-items:center;justify-content:center}
.faces>*+*{margin-left:-12px}
.faces .face{box-shadow:0 0 0 3px var(--well)}
@media (prefers-reduced-motion:reduce){.tile,a.tile:hover,.tile:has(.cover:hover){transition:none;transform:none}}

/* ---------- persona portraits (files; initials when there is none) ---------- */
.portrait{display:grid;place-items:center;width:132px;aspect-ratio:4/5;border-radius:12px;background:var(--well);color:var(--ink-2);font-size:34px;font-weight:600;letter-spacing:-.02em;object-fit:cover;object-position:50% 30%;box-shadow:0 0 0 1px var(--line);overflow:hidden;text-decoration:none}
.portrait.lg{width:168px;border-radius:16px;font-size:44px}
.thumb .portrait{width:min(132px,100%)}
.face{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;flex:none;background:var(--well);color:var(--ink-2);font-size:10px;font-weight:600;object-fit:cover;object-position:50% 28%;box-shadow:0 0 0 1px var(--line);overflow:hidden;vertical-align:middle}
.face.lg{width:56px;height:56px;font-size:18px}

/* ---------- journeys: cards with filmstrips of the real screens ---------- */
.jlist{display:grid;gap:16px}
.jcard{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.jcard .head{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;padding:14px 16px}
.jcard .head>a{font-weight:600;font-size:15px;text-decoration:none}
.jcard .head>a:hover{text-decoration:underline}
.jcard .head p{flex-basis:100%;margin:0;font-size:13px;color:var(--ink-3)}
.who{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-3);min-width:0;max-width:100%;white-space:nowrap}
/* a long persona name ends in an ellipsis rather than widening the page (at 375 px too) */
.who>a,.who>.name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.jcard .who{margin-left:auto}
.who a{color:var(--ink-2);text-decoration:none}
.who a:hover{text-decoration:underline}
.strip{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;padding:16px;margin:0 8px 8px;border-radius:calc(var(--radius) - 6px);background:var(--stage)}
/* Filmstrip shots share the row and wrap, never scroll: every screen stays whole (app.js fitShot rescales each clone). */
.strip>.shotwrap{flex:1 1 calc(var(--shot-w,240) * .6px);max-width:calc(var(--shot-w,240) * 1px)}
.strip>.shotwrap>.shot{width:100%}
.strip>.shotwrap>.cap{max-width:none}
/* Screen thumbnails: the whole screen, scaled to fit exactly; no bezel, one radius, caption below. */
[data-frame="phone"]{--fw:390;--fh:760;--shot-w:132}
[data-frame="tablet"]{--fw:820;--fh:1180;--shot-w:168}
[data-frame="desktop"]{--fw:1440;--fh:900;--shot-w:240}
[data-frame="slide"]{--fw:1280;--fh:720;--shot-w:240}
.shot[data-frame="slide"]{border-radius:6px}
.shotwrap{position:relative;flex:none;display:flex;flex-direction:column;gap:8px;text-decoration:none;color:inherit;min-width:0;border-radius:10px}
.shotwrap .cap{max-width:calc(var(--shot-w,240) * 1px);padding:0 2px;font-size:12px;font-weight:500;color:var(--ink-2);line-height:1.35}
.shotwrap .cap small{display:block;font-size:11px;font-weight:400;color:var(--ink-3)}
/* A step's number sits on its picture and a recovery step has a dashed edge (FR-193): no "Step 1" under it. */
.shotwrap>.scene-n{left:6px;top:6px}
.shotwrap.recovery>.shot{outline:1.5px dashed var(--recovery);outline-offset:3px}
.states{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.states .st{display:grid;gap:4px;align-content:start;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:13px;line-height:1.45}
.states .st-h{display:flex;align-items:center;gap:6px}
.states .st-h .si{width:16px;height:16px;color:var(--ink-3)}
.states .st.na{border-style:dashed;color:var(--ink-3);cursor:help}
details.few{margin-top:4px}
.usedj+.usedj{margin-top:14px}
.usedj h4{margin:0 0 8px;font-size:13px;font-weight:600}
.usedj h4 a{color:inherit;text-decoration:none}
.usedshots{display:flex;flex-wrap:wrap;gap:14px;padding:12px;border-radius:calc(var(--radius) - 6px);background:var(--stage);--shot-w:160}
.usedshots>.shotwrap .chips{gap:3px}
.clamp{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.tag.recovery{background:var(--recovery-bg);color:var(--recovery)}
.shot{position:relative;flex:none;display:block;width:calc(var(--shot-w,240) * 1px);aspect-ratio:var(--fw,1440) / var(--fh,900);--fit:calc(var(--shot-w,240) / var(--fw,1440));overflow:hidden;border-radius:10px;background:var(--panel);box-shadow:var(--shadow-work);transition:box-shadow var(--settle) var(--ease)}
.shot>.clone{position:absolute;top:var(--inset,0px);left:var(--inset,0px);transform:scale(var(--fit));transform-origin:0 0;pointer-events:none}
a.shotwrap:hover .shot,.shotwrap:has(.cover:hover) .shot,a.shot:hover{box-shadow:var(--shadow-work-lift)}
.shot.empty{display:grid;place-items:center;padding:8px;text-align:center;background:transparent;border:1.5px dashed var(--line-2);box-shadow:none;font-size:11.5px;line-height:1.35;color:var(--ink-3)}
.shot.empty b{display:block;font-weight:500;color:var(--ink-2)}

/* ---------- storyboard: the journey told simply, as a comic strip of frames ---------- */
.story{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(156px,1fr);gap:14px;list-style:none;margin:0;padding:2px 2px 8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin}
/* On the Storyboard tab the frames wrap into rows instead of scrolling: --cols per row (set by the build: four or
   fewer in one row, else two balanced rows), fewer when a frame would be narrower than 200px. */
.board .story{grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(max(200px,calc((100% - (var(--cols,4) - 1) * 16px) / var(--cols,4))),1fr));gap:16px;overflow:visible;scroll-snap-type:none;padding:2px}
.scene{position:relative;display:flex;flex-direction:column;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);scroll-snap-align:start;box-sizing:border-box}
.scene-pic{position:relative;aspect-ratio:4/3;margin:6px 6px 0;border-radius:9px;background:var(--stage);overflow:hidden;box-sizing:border-box}
.scene-n{position:absolute;left:8px;top:8px;z-index:2;display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--panel);box-shadow:0 0 0 1px var(--line);font-size:11px;font-weight:600;color:var(--ink-2);font-variant-numeric:tabular-nums;box-sizing:border-box}
.scene-shot{position:absolute;right:9px;top:12px;width:72%}
.scene-shot>.shot{width:100%;box-shadow:var(--shadow-work)}
.scene-icon{position:absolute;right:16%;top:44%;transform:translate(0,-50%)}
.scene-icon>*{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;box-shadow:0 0 0 1px var(--line),0 6px 16px rgba(18,18,20,.08);transform:scale(1.15)}
.scene-face{position:absolute;left:10px;bottom:10px;z-index:2;width:42px;height:42px;font-size:14px;box-shadow:0 0 0 3px var(--well),0 0 0 4px var(--line)}
.scene-icon~.scene-face{left:16%;bottom:auto;top:44%;transform:translate(-30%,-50%);width:52px;height:52px}
.scene-pic.solo .scene-face{left:50%;bottom:auto;top:50%;transform:translate(-50%,-50%);width:60px;height:60px;font-size:18px}
.scene-text{display:flex;flex-direction:column;gap:3px;flex:1;padding:10px 12px 12px;min-width:0}
.scene-title{font-size:13.5px;font-weight:600;line-height:1.3;letter-spacing:-.005em;color:var(--ink)}
.scene-cap{margin:0;font-size:12.5px;line-height:1.45;color:var(--ink-2)}
.scene-cap code{font:11.5px var(--mono)}
.mood{display:flex;align-items:center;gap:7px;margin:5px 0 0;font-size:12px;color:var(--ink-3)}
.dots{display:inline-flex;gap:3px}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--line-2)}
.dots[data-score="1"] i:nth-child(-n+1),.dots[data-score="2"] i:nth-child(-n+2),.dots[data-score="3"] i:nth-child(-n+3),
.dots[data-score="4"] i:nth-child(-n+4),.dots[data-score="5"] i{background:var(--ink-2)}
.scene-link{display:flex;align-items:flex-start;gap:5px;margin:auto -12px -12px;padding:8px 12px 10px;border-top:1px solid var(--line);font-size:12px;line-height:1.4;font-weight:500;color:var(--ink-3);text-decoration:none;overflow-wrap:anywhere}
.mood+.scene-link,.scene-cap+.scene-link{margin-top:auto}
.scene-text:has(.scene-link) .mood{margin-bottom:10px}
.scene-link .si{width:13px;height:13px;margin-top:1px;order:2;margin-left:auto}
.scene-link::before{content:"";flex:none;box-sizing:border-box;width:14px;height:10px;margin-top:3px;border:1.25px solid currentColor;border-top-width:3px;border-radius:2px;opacity:.75}
a.scene-link{color:var(--ink-2)}
a.scene-link:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.scene:has(a.scene-link:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.scene a.scene-link:focus-visible{outline:0}
.story.mini{grid-auto-columns:minmax(118px,1fr);gap:10px;padding:0}
.story.mini .scene{box-shadow:none}
.story.mini .scene-pic{margin:4px 4px 0}
.story.mini .scene-face{width:30px;height:30px;font-size:11px;left:7px;bottom:7px}
.story.mini .scene-icon~.scene-face{width:36px;height:36px}
.story.mini .scene-pic.solo .scene-face{width:42px;height:42px}
.story.mini .scene-icon>*{width:42px;height:42px;transform:none}
.story.mini .scene-n{left:6px;top:6px;min-width:17px;height:17px;font-size:10px}
.story.mini .scene-title{padding:7px 8px 9px;font-size:11.5px;font-weight:500;color:var(--ink-2)}
.strip.story-strip{display:block}

/* ---------- flow: the system view in swimlanes (inline SVG drawn by the build) ---------- */
.flowcard{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0}
.flowwrap{position:relative;overflow-x:auto;scrollbar-width:thin}
/* app.js scales the chart to its tab (--flow-scale, never above 1 or below a legible 0.72); when it is still too
   wide it scrolls, and .is-scroll pins the lane names to the left edge. */
.flowwrap.is-scroll{display:flex;align-items:stretch}
.flowwrap.is-scroll>.flowchart{flex:none}
.flow-pins{display:none}
.flowwrap.is-scroll>.flow-pins{display:block;position:sticky;left:0;z-index:2;flex:none;width:calc(92px * var(--flow-scale,1));margin-right:calc(-92px * var(--flow-scale,1));background:var(--well);box-shadow:1px 0 0 var(--line),6px 0 12px -8px rgba(18,18,20,.18)}
.flow-pins>span{position:absolute;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:0 6px;box-sizing:border-box;border-top:1px solid var(--line);text-align:center}
.flow-pins>span:first-child{border-top:0}
.flow-pins b{font-size:calc(12px * var(--flow-scale,1));font-weight:600;line-height:1.25;color:var(--ink-2);overflow-wrap:anywhere}
.flow-pins .face{width:22px;height:22px}
.flowwrap:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.flowchart{display:block;max-width:none;font-family:var(--sans)}
.flowchart .lane{fill:var(--panel)}
.flowchart .lane-head{fill:var(--well)}
.flowchart .lane-rule{stroke:var(--line);stroke-width:1}
.flowchart .lane-name{font-size:12px;font-weight:600;fill:var(--ink-2)}
.flowchart .lane-face{fill:none;stroke:var(--line-2);stroke-width:1}
.flowchart .edge{fill:none;stroke:var(--ink-4);stroke-width:1.5;stroke-linejoin:round}
.flowchart .edge.rec{stroke:var(--recovery);stroke-dasharray:5 4}
.flowchart .arrow{fill:var(--ink-4)}
.flowchart .arrow.rec{fill:var(--recovery)}
.flowchart .edge-label rect{fill:var(--panel)}
.flowchart .edge-label text{font-size:11px;font-weight:500;fill:var(--ink-3)}
.flowchart .edge-label.rec text{fill:var(--recovery)}
.flowchart .shape{fill:var(--panel);stroke:var(--line-2);stroke-width:1.25}
.flowchart .label{font-size:12px;font-weight:500;fill:var(--ink)}
.flowchart .start .shape{stroke:var(--ink);stroke-width:1.5}
.flowchart .end .shape{fill:var(--ink);stroke:var(--ink)}
.flowchart .end .label{fill:#fff}
.flowchart .decision .shape{fill:var(--well);stroke:var(--ink-4)}
.flowchart .decision .label{font-size:11.5px}
.flowchart .recovery .shape{fill:var(--recovery-bg);stroke:var(--recovery);stroke-dasharray:5 3}
.flowchart .kind-tag{font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;fill:var(--recovery)}
.flowchart .has-screen .shape{stroke:var(--ink-3)}
.flowchart .screen-bar{fill:none;stroke:var(--line-2);stroke-width:1}
.flowchart .screen-dots circle{fill:var(--line-2)}
.flowchart .has-screen .screen-bar{stroke:var(--ink-4)}
.flowchart .screen-badge rect{fill:var(--panel);stroke:var(--ink-3);stroke-width:1.2}
.flowchart .screen-badge line{stroke:var(--ink-3);stroke-width:1.2;stroke-linecap:round}
.flowchart a{cursor:pointer}
.flowchart a:hover .shape{stroke:var(--ink);stroke-width:1.75}
.flowchart a:hover .label{text-decoration:underline}
.flowchart a:focus{outline:0}
.flowchart a:focus-visible .shape{stroke:var(--focus);stroke-width:2.5}
.flow-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:10px 16px;border-top:1px solid var(--line);font-size:12px;color:var(--ink-3)}
.flow-legend .k{display:inline-flex;align-items:center;gap:6px}
.flow-legend .k::before{content:"";box-sizing:border-box;width:18px;height:11px;border:1.25px solid var(--line-2);border-radius:3px;background:var(--panel)}
.flow-legend .k-start::before{border-radius:6px;border-color:var(--ink)}
.flow-legend .k-end::before{border-radius:6px;border-color:var(--ink);background:var(--ink)}
.flow-legend .k-decision::before{width:9px;height:9px;margin:0 4px;border-color:var(--ink-4);border-radius:1px;background:var(--well);transform:rotate(45deg)}
.flow-legend .k-recovery::before{border-style:dashed;border-color:var(--recovery);background:var(--recovery-bg)}
.flow-legend .k-screen::before{height:12px;border-color:var(--ink-4);border-top-width:3.5px}
.flow-hint{display:none;margin:0;padding:8px 16px 0;font-size:12px;color:var(--ink-3)}
details.flowtext{margin-top:12px}
.flowtext .cols{margin-top:12px}
.flowtext ol{padding-left:20px}
.flowtext li{margin:5px 0}
.flowtext .tag{margin-right:2px}
.flowtext a{color:var(--ink-2)}

/* ---------- the journey page's tabs: Storyboard · System flow · Screens, one panel at a time ---------- */
.tabs{display:flex;align-self:stretch;gap:22px;margin:-10px 0 -11px 12px;flex:none}
.tabs [role=tab]{position:relative;display:inline-flex;align-items:center;padding:2px 1px 0;border-bottom:2px solid transparent;font-size:13.5px;font-weight:500;line-height:20px;color:var(--ink-3);text-decoration:none;white-space:nowrap;transition:color var(--quick) var(--ease),border-color var(--quick) var(--ease)}
.tabs [role=tab]:hover{color:var(--ink)}
.tabs [role=tab]::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--ink);transform:scaleX(0);transition:transform var(--settle) var(--ease)}
.tabs [role=tab][aria-selected=true]{color:var(--ink)}
.tabs [role=tab][aria-selected=true]::after{transform:scaleX(1)}
.tabs [role=tab]:focus-visible{outline:2px solid var(--focus);outline-offset:-1px;border-radius:4px}
.boards{min-width:0;display:flex;flex-direction:column}
.boards:not(:has(.board:not([hidden]))){display:none}
.board{display:flex;flex-direction:column;width:100%;margin:0 auto;padding:18px 28px 28px;outline:0}
.board-head{margin:0 0 14px}
.board-head p,.planned .board-head p{margin:0;max-width:60rem;font-size:13.5px;color:var(--ink-2)}
.board-head b{font-weight:600;color:var(--ink)}
.board details.flowtext>summary{color:var(--ink-2)}
.board .flowtext .card{box-shadow:none}
.board>.empty{margin-top:4px}
.in-board .toolbar :is([data-frames],.seg[data-states],[data-toggle-panel],[data-dataview]),.in-board .pagehead>.stepper{display:none!important}
/* a Placeholder's Screens tab: the planned steps, in the stage's place */
.planned{width:100%}
.planned .strip{margin:0}

/* ---------- controls ---------- */
.btn{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;font-weight:500;line-height:20px;padding:5px 11px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--panel);color:var(--ink);cursor:pointer;text-decoration:none;white-space:nowrap;box-shadow:0 1px 1px rgba(18,18,20,.03);transition:border-color var(--quick) var(--ease),background-color var(--quick) var(--ease)}
.btn:hover{border-color:var(--ink-4)}
.btn:active{background:var(--well)}
.btn[disabled]{color:var(--ink-4);border-color:var(--line);cursor:default;background:var(--panel)}
.btn .si{width:16px;height:16px}
.btn.icon{padding:5px 6px}
.btn.sm{font-size:12px;line-height:18px;padding:2px 8px}
.btn.dark{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.dark:hover{background:#2A2A2E}
.btn.dark[disabled]{background:var(--panel);border-color:var(--line);color:var(--ink-4)}
.btn[data-copied]{color:var(--s-ready);border-color:currentColor}
.setswitch{display:inline-flex;align-items:center;gap:8px}
.setlabel{font-size:12.5px;font-weight:600;color:var(--ink-2)}
.seg{display:inline-flex;max-width:100%;overflow-x:auto;padding:2px;gap:2px;border-radius:var(--radius-sm);background:var(--well);border:1px solid var(--line);scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg label,.seg a{position:relative;flex:none;font-size:12.5px;font-weight:500;line-height:18px;padding:3px 10px;border-radius:6px;cursor:pointer;color:var(--ink-2);text-decoration:none;white-space:nowrap}
.seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;width:100%;height:100%}
.seg label:hover{color:var(--ink)}
.seg label:has(input:checked),.seg a[aria-current]{background:var(--panel);color:var(--ink);box-shadow:0 1px 2px rgba(18,18,20,.08),0 0 0 1px var(--line)}
.seg label:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:1px}
.ctl{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--ink-2)}
.ctl select{font:inherit;font-size:13px;color:var(--ink);min-width:124px;padding:4px 26px 4px 9px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2385858D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;-webkit-appearance:none;appearance:none;cursor:pointer}
.ctl select:disabled{color:var(--ink-4);cursor:not-allowed;background-color:var(--well)}
.check{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:var(--ink-2);cursor:pointer;white-space:nowrap}
.check input{width:14px;height:14px;margin:0;accent-color:var(--ink)}
.toggles{display:inline-flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
details.pop{position:relative}
details.pop>summary{list-style:none}
details.pop>summary::-webkit-details-marker{display:none}
details.pop[open]>summary{border-color:var(--ink-4);background:var(--well)}
details.pop .menu{position:absolute;right:0;top:calc(100% + 6px);z-index:6;width:272px;max-width:calc(100vw - 32px);padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 12px 40px rgba(18,18,20,.14);display:grid;gap:10px}
.menu .menu-h{margin:0 0 2px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.menu .btn{justify-self:start;margin-top:2px}

/* ---------- cards: specimens, references, prompts, tables ---------- */
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);min-width:0}
/* Fewer containers (FR-201): a box is drawn only around the work (the stage) or around a group of controls someone
   acts on. Everything else is a heading and hairlines: .flat drops a card's, a row list's or a journey card's box. */
.card.flat,.jcard.flat{background:none;border:0;border-radius:0}
.card.flat>.body{padding:0}
.cols>.card.flat{padding:0}
.rows.flat{background:none;border:0;border-radius:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rows.flat .row{padding-left:4px;padding-right:4px}
.jcard.flat>.head{padding:0 0 10px}
.jcard.flat>.strip{margin:0}
.briefcard.flat{padding:4px 0 0}
.briefcard.flat:hover dd{color:var(--ink)}
.protocard.flat{padding:0 0 16px;border-bottom:1px solid var(--line)}
.pfsteps:has(>.pfstep.flat){gap:0;border-top:1px solid var(--line)}
.pfstep.flat{border-bottom:1px solid var(--line)}
.pfstep.flat>.bar{padding-left:0;padding-right:0;border-bottom:0}
details.pfstep.flat[open]>summary{border-bottom:0}
.pfstep.flat .pfrow{padding-left:0;padding-right:0}
/* the specimen: its switches over the stage, no card around them */
.card.spec{background:none;border:0;border-radius:0}
.card.spec>.bar{padding:0 0 10px;border-bottom:0}
.card.spec>.canvas{margin:0}
.card.spec>.cap{padding:8px 0 0}
.card .card{box-shadow:none}
.card>.body{padding:16px 18px}
.card>.body>.cols{margin-top:0}
.cols>.prompt{margin-top:0}
.card .bar{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--line)}
.card .bar b{font-size:13px;font-weight:600}
.spacer{flex:1}
.bar .meta{font-size:12px;color:var(--ink-3);display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.canvas{margin:8px;border-radius:calc(var(--radius) - 6px);background:var(--panel);padding:40px;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;overflow-x:auto}
.canvas>*{width:100%;box-shadow:var(--shadow-work)}
.card>.cap{margin:0;padding:4px 16px 12px;font-size:12px;color:var(--ink-3)}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px;margin-top:16px}
.cols>.card{padding:16px 18px}
.cols h3,.card>h3{font-size:13px;font-weight:600;margin:0 0 8px}
.cols h3:not(:first-child){margin-top:16px}
.cols ul,.cols ol{margin:0;padding-left:18px;color:var(--ink-2)}
.cols li{margin:3px 0}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:2px 9px;border-radius:999px;border:1px solid var(--line);background:var(--panel);font-size:12px;font-weight:500;color:var(--ink-2);text-decoration:none}
a.chip:hover{border-color:var(--ink-4);color:var(--ink)}
.chip small{font-size:11px;font-weight:400;color:var(--ink-3)}
.prompt{margin-top:16px;position:relative;padding:2px 0}
/* a prompt card shows no prompt text (FR-128): an icon tile, the title and its meta, and the split control. The
   text lives in <template>s; without script, <noscript> shows it raw below the bar. */
.prompt .pbar{display:flex;align-items:center;gap:16px}
.prompt .ptext{flex:1;min-width:0;display:grid;gap:1px}
.prompt .ptext b{font-size:13.5px;font-weight:600;color:var(--ink)}
.prompt .ptitle{display:flex;align-items:center;min-width:0}
.prompt .ptitle .about{margin-left:2px}
.prompt .chips.pdesc{margin-top:6px}
.prompt .pmeta{font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.prompt .pdesc{font-size:12.5px;color:var(--ink-2);margin-top:3px}
.prompt .praw,.pview .raw{font-family:var(--mono);margin:0;font-size:12.5px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
.prompt .praw{max-height:calc(1.65em * 16);overflow:auto;margin-top:10px;padding:14px 18px 16px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);color:var(--ink-2)}
/* the split control: [Copy prompt][▾]. The label cell stacks every label it can show, so the button is always as
   wide as the longest one and never moves (FR-128); app.js shows one by data-copy-state. */
/* The AI ring around a prompt's split button: the same design as the design system's cmp-prompt-card ring (fdn-color
   --ds-color-ai-*, fdn-motion --ds-motion-ambient, D-009): a thin conic gradient that turns slowly, with a soft glow.
   The shell keeps its own copy until its interface is built from the design system (FR-181). */
@property --ai-turn{syntax:"<angle>";inherits:false;initial-value:0deg}
.ring{--ai-1:#7C5CFF;--ai-2:#2F80ED;--ai-3:#14B8A6;--ai-4:#F59E0B;--ai-5:#EC4899;position:relative;isolation:isolate;display:inline-flex;flex:none;padding:2px;border-radius:calc(var(--radius-sm) + 2px);background:conic-gradient(from var(--ai-turn),var(--ai-1),var(--ai-2),var(--ai-3),var(--ai-4),var(--ai-5),var(--ai-1));animation:ai-turn var(--ambient) var(--steady) infinite}
.ring::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:inherit;animation:inherit;opacity:.5;filter:blur(10px);pointer-events:none}
.ring>.split{border-radius:var(--radius-sm);background:var(--panel)}
.ring>.split>.btn{border-color:transparent;box-shadow:none}
.ring>.split>.btn.icon{border-left-color:var(--line-2)}
@keyframes ai-turn{to{--ai-turn:360deg}}
@media (prefers-reduced-motion:reduce){.ring{animation:none}}
.split{position:relative;display:inline-flex;align-items:stretch;flex:none}
.split>.btn{border-radius:0}
.split>.btn:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm)}
.split>.btn:only-child{border-radius:var(--radius-sm)}
.split>.btn.icon{margin-left:-1px;border-radius:0 var(--radius-sm) var(--radius-sm) 0;padding:5px 5px}
.split>.btn:hover,.split>.btn:focus-visible{position:relative;z-index:1}
.split>.btn.icon[aria-expanded="true"]{background:var(--well);border-color:var(--ink-4)}
.lab{display:inline-grid;justify-items:start}
.lab>span{grid-area:1/1;white-space:nowrap}
.lab>[data-l]:not([data-l="idle"]),[data-copy-state] .lab>[data-l="idle"]{visibility:hidden}
[data-copy-state="ok"] .lab>[data-l="ok"],[data-copy-state="blocked"] .lab>[data-l="blocked"]{visibility:visible}
.btn .i-check,.btn[data-copy-state="ok"] .i-copy{display:none}
.btn[data-copy-state="ok"] .i-check{display:block}
.btn[data-copy-state="ok"]{color:var(--s-ready);border-color:currentColor}
.btn[data-copy-state="blocked"]{color:var(--ink);border-color:var(--ink-4);background:var(--well)}
/* the menu: a disclosure of plain buttons (not an ARIA menu), the same pattern as the site's other popovers */
.pmenu{position:absolute;top:calc(100% + 6px);right:0;z-index:30;width:312px;max-width:calc(100vw - 32px);padding:6px;background:var(--panel);border:1px solid var(--line-2);border-radius:10px;box-shadow:0 12px 32px rgba(18,18,20,.12),0 2px 6px rgba(18,18,20,.06)}
.pmenu[hidden]{display:none}
.pmenu ul{list-style:none;margin:0;padding:0}
.pmenu li[role="separator"]{height:1px;margin:6px 4px;background:var(--line)}
.pmenu button{box-sizing:border-box;display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:10px;row-gap:1px;width:100%;margin:0;padding:8px 10px;border:0;border-radius:6px;background:transparent;font:inherit;font-size:13px;font-weight:500;line-height:18px;color:var(--ink);text-align:left;cursor:pointer}
.pmenu button:hover{background:var(--well)}
.pmenu button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;background:var(--well)}
.pmenu .si{grid-row:1/span 3;width:16px;height:16px;margin-top:1px;color:var(--ink-3)}
.pmenu small{grid-column:2;font-size:12px;font-weight:400;line-height:16px;color:var(--ink-3);overflow-wrap:anywhere}
.pmenu small code{font:11.5px var(--mono);color:var(--ink-2)}
.pmenu button[data-copy-state="ok"] [data-act-label]{color:var(--s-ready)}
/* the prompt view (FR-132): one shared <dialog> per page, opened over the page; its body scrolls, never the page */
.pview-back{position:fixed;inset:0;z-index:var(--z-dialog);background:rgba(18,18,20,.32)}
.pview-back[hidden]{display:none}
dialog.pview{position:fixed;inset:48px 0 auto;z-index:calc(var(--z-dialog) + 1);box-sizing:border-box;width:min(880px,calc(100vw - 48px));height:calc(100vh - 96px);height:calc(100dvh - 96px);margin:0 auto;padding:0;display:flex;flex-direction:column;background:var(--panel);color:var(--ink);border:1px solid var(--line-2);border-radius:var(--radius);box-shadow:0 24px 64px rgba(18,18,20,.22);overflow:hidden}
dialog.pview:not([open]){display:none}
.pview-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;padding:14px 16px 14px 20px;border-bottom:1px solid var(--line)}
.pview-head .ptext{flex:1;min-width:min(220px,100%);display:grid;gap:1px}
.pview-head b{font-size:15px;font-weight:600}
.pview-head .pmeta{font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.pview-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.vseg{display:inline-flex;padding:2px;gap:2px;border-radius:var(--radius-sm);background:var(--well);border:1px solid var(--line)}
.vseg button{margin:0;padding:3px 10px;border:0;border-radius:6px;background:transparent;font:inherit;font-size:12.5px;font-weight:500;line-height:18px;color:var(--ink-3);cursor:pointer}
.vseg button:hover{color:var(--ink)}
.vseg button[aria-pressed="true"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 2px rgba(18,18,20,.08),0 0 0 1px var(--line)}
.vseg button:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.pview-head .btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.pview-body{flex:1;min-height:0;overflow:auto;padding:24px 32px 40px;overscroll-behavior:contain}
.pview-body:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.pview .fmt{max-width:68ch;font-size:14px;line-height:1.6;color:var(--ink)}
.pview .fmt>:first-child{margin-top:0}
.pview .fmt h1,.pview .fmt h2{font-size:15px;font-weight:600;margin:22px 0 6px}
.pview .fmt h3,.pview .fmt h4{font-size:14px;font-weight:600;margin:18px 0 4px}
.pview .fmt p{margin:0 0 10px}
.pview .fmt ul,.pview .fmt ol{margin:0 0 12px;padding-left:20px}
.pview .fmt li{margin:3px 0}
.pview .fmt li::marker{color:var(--ink-4)}
.pview .fmt code{font-family:var(--mono);font-size:12.5px;background:var(--well);padding:1px 5px;border-radius:4px;overflow-wrap:anywhere}
.pview .fmt pre{margin:0 0 12px;padding:12px 14px;border-radius:var(--radius-sm);background:var(--well);overflow:auto;font-size:12.5px;line-height:1.6}
.pview .fmt pre code{padding:0;background:none;overflow-wrap:normal}
.pview .fmt table{border-collapse:collapse;margin:0 0 12px;font-size:13px}
.pview .fmt th,.pview .fmt td{text-align:left;padding:5px 12px 5px 0;border-bottom:1px solid var(--line);vertical-align:top}
.pview .fmt blockquote{margin:0 0 12px;padding-left:14px;border-left:2px solid var(--line-2);color:var(--ink-2)}
.pview .fmt a{color:inherit;text-underline-offset:3px}
@media (max-width:760px){
  dialog.pview{inset:12px 0 auto;width:calc(100vw - 24px);height:calc(100vh - 24px);height:calc(100dvh - 24px)}
  .pview-head{padding:12px 12px 12px 16px}
  .pview-body{padding:18px 16px 28px}
  .prompt .pbar{flex-wrap:wrap}
}
/* a command to copy with one button (a round's Reply) */
.cmdcard{overflow:hidden}
.thumb .cmdcard{width:100%;box-shadow:none}
.cmdcard .clip{padding:14px 18px 16px;background:var(--panel)}
.cmdcard pre{font-family:var(--mono);margin:0;font-size:12.5px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink-2)}
/* one command per row with its Copy; a long prompt hides behind its own Copy prompt (Projects) */
/* the row shrinks to its card (a grid item is otherwise as wide as its longest command): a long command scrolls in its own box */
.cmds{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.cmd{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;min-width:0}
.cmd code{flex:1 1 320px;min-width:0;max-width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--well);font:13px var(--mono);color:var(--ink);white-space:pre;overflow-x:auto}
.cmd.ask>span:not(.ring){flex:1 1 320px;font-size:13px;color:var(--ink-2)}
.tablewrap{overflow-x:auto}
.tbl,.card.tokens table{width:100%;border-collapse:collapse;font-size:13px}
.tbl caption{text-align:left;padding:12px 16px 0;font-size:12px;color:var(--ink-3)}
.tbl th,.card.tokens th{font-size:11px;font-weight:600;color:var(--ink-3);text-align:left;padding:10px 16px;border-bottom:1px solid var(--line);letter-spacing:.03em;white-space:nowrap}
.tbl td,.card.tokens td{padding:10px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl tr:last-child td,.card.tokens tr:last-child td{border-bottom:0}
.card.tokens{overflow-x:auto}
/* contrast results: the words in ink (they must pass AA themselves), the verdict also as a coloured dot */
[data-contrast-result]{color:var(--ink);white-space:nowrap}
[data-contrast-result]::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;vertical-align:middle;background:var(--s-placeholder)}
[data-contrast-result="pass"]::before{background:var(--s-ready)}
[data-contrast-result="large"]::before{background:var(--s-mock)}
[data-contrast-result="fail"]{font-weight:600}
[data-contrast-result="fail"]::before{background:#B42318}

/* ---------- journey viewer ---------- */
.toolbar{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;padding:10px 24px;border-bottom:1px solid var(--line);background:var(--panel)}
.toolbar .title{font-size:15px;font-weight:600;letter-spacing:-.005em;margin:0;line-height:1.3;min-width:0}
.pagehead>.who{margin-left:auto;flex:0 1 auto}
.stepper{display:inline-flex;align-items:center;gap:4px}
.stepper .pos{font-size:13px;color:var(--ink-2);min-width:3.6rem;text-align:center;font-variant-numeric:tabular-nums}
.viewer{flex:1;display:flex;flex-direction:column;min-height:0;outline:0;background:var(--panel)}
/* The screen takes the full width of the page; the guidance panel sits below it, in columns (the steps, this
   screen, this journey), so the work is never squeezed beside its notes. */
.screens{flex:1;display:flex;flex-direction:column;min-height:0}
.viewer.no-panel .panel{display:none}
.stagewrap{min-width:0;padding:32px 24px 24px;display:flex;flex-direction:column;align-items:center;gap:14px}
.stage:not(:has([data-step]))+.cap{display:none}
.panel nav:has(>ol.steps:empty){display:none}
@media (min-width:1001px){
  .panel{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr) minmax(0,1fr);gap:0 32px;align-items:start}
  .panel>nav{grid-column:1}
  .panel>.guide{grid-column:2}
  .panel>.journey-guide{grid-column:3;margin-top:0;padding-top:0;border-top:0}
  .toolbar{flex-wrap:nowrap;min-height:54px}
  .toolbar .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* Nothing shrinks but the title; the spacer (and a reviewer's sentence) takes the room left, so the controls keep
     their place at the end when a screen adds or drops its state or frame switch. */
  .toolbar>*:not(.title,.spacer,.revsay){flex:none}
  /* A screen that shows data adds a second row: Viewing as and the data chip, under the title. */
  .toolbar:has(>.dataview:not([hidden])){flex-wrap:wrap;row-gap:8px}
  .toolbar>.dataview{order:99;flex:1 0 100%}
}
/* One screen: from 1001 × 560 up the journey page is exactly the window. The open tab fills the room under the
   toolbar; the storyboard sizes its frames to it, the flow scales to it, and only a panel's content scrolls. */
@media (min-width:1001px) and (min-height:560px){
  /* only on the Storyboard and System flow tabs: on Screens the page scrolls, the screen first and the guidance after */
  body.is-viewer:has(.main.in-board) .frame{height:100vh;height:100dvh;min-height:0}
  body.is-viewer .main.in-board{min-height:0;overflow:hidden}
  body.is-viewer .pagehead{position:relative}
  body.is-viewer .source{margin:0;padding:6px 24px 7px}
  .main.in-board .viewer{overflow:hidden}
  .boards{flex:1;min-height:0}
  .board{flex:1;min-height:0;overflow-y:auto}
  .board .storywrap{flex:1;min-height:0}
  /* each frame spans two rows, picture and text, shared through subgrid so the titles in a row line up; the
     pictures share whatever height the text leaves (92px to 240px) */
  .board .story{height:100%;grid-auto-rows:minmax(98px,246px) auto;align-content:start}
  .board .scene{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0;min-height:0;overflow:hidden}
  .board .scene-pic{aspect-ratio:auto;height:auto;min-height:0;container-type:size}
  .board .scene-shot{width:min(72%,calc((100cqh - 24px) * var(--ar,1.6)))}
  .panel{min-height:0;overflow:visible}
}
.stagewrap>.cap{margin:0;font-size:12px;color:var(--ink-3);text-align:center}
.stage{width:100%;min-width:0;display:flex;justify-content:center}
.step{display:flex;justify-content:center;width:100%}
.frame-fit{position:relative;flex:none;width:calc(var(--fw,1440) * 1px);max-width:100%;aspect-ratio:var(--fw,1440) / var(--fh,900);overflow:hidden;border-radius:12px;background:transparent;box-shadow:0 0 0 1px rgba(18,18,20,.08),0 24px 60px rgba(18,18,20,.16)}
.frame-fit>*{position:absolute;top:0;left:0;transform-origin:0 0}
.frame-fit[data-frame="phone"]{background:var(--ink);border-radius:calc(36px * var(--fit,1));box-shadow:0 0 0 calc(7px * var(--fit,1)) var(--ink),0 24px 60px rgba(18,18,20,.2)}
.frame-fit.is-empty{background:transparent;box-shadow:none;border:1.5px dashed var(--line-2);max-width:min(100%,720px)}
.frame-fit.is-empty>.empty-frame{position:static;transform:none;display:grid;place-content:center;gap:6px;width:100%;height:100%;padding:24px;text-align:center;color:var(--ink-3);font-size:13px}
.empty-frame b{font-size:15px;color:var(--ink-2);font-weight:600}
.panel{min-width:0;background:var(--panel);border-top:1px solid var(--line);padding:20px 24px 88px;overflow:auto}
.panel-h{margin:0 0 10px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.panel h3{font-size:18px;line-height:1.25;letter-spacing:-.015em;margin:0 0 4px}
.panel .purpose{color:var(--ink-2);margin:0 0 16px}
.panel dl{margin:0;display:grid;gap:12px}
.panel dt{font-size:11px;font-weight:600;color:var(--ink-3);letter-spacing:.06em;text-transform:uppercase}
.panel dd{margin:3px 0 0;color:var(--ink)}
.panel dd ul,.panel dd ol{margin:2px 0 0;padding-left:18px}
.panel dd li{margin:2px 0}
.panel .prompt{box-shadow:none}
.guide{margin-bottom:8px}
.journey-guide{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.panel:not(:has(.guide))>.journey-guide{margin-top:0;padding-top:0;border-top:0}
ol.steps{list-style:none;margin:0 0 20px;padding:4px;border-radius:12px;background:var(--well);counter-reset:s}
ol.steps li{counter-increment:s}
ol.steps a{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;text-decoration:none;color:var(--ink-2);font-weight:500}
ol.steps a:hover{color:var(--ink)}
ol.steps a::before{content:counter(s);display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:var(--panel);font-size:11px;color:var(--ink-3);box-shadow:0 0 0 1px var(--line)}
ol.steps a[aria-current]{background:var(--panel);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
ol.steps a[aria-current]::before{background:var(--ink);color:#fff;box-shadow:none}
ol.steps .tag{margin-left:auto}

/* ---------- narrow screens: no horizontal page scroll at 390px ---------- */
@media (max-width:1000px){
  .tabs{order:10;flex-basis:100%;height:40px;margin:2px 0 -11px}
  .panel{border-top:1px solid var(--line)}
}
@media (max-width:760px){
  /* One column, and the sidebar is a bar across the top, collapsed or not: the collapsed rail's column must not
     outrank this (it would squeeze the bar into the rail and spread its rows down the page). */
  .frame,html[data-side=collapsed] .frame{grid-template-columns:minmax(0,1fr)}
  .side{position:static;height:auto;overflow:visible;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:4px;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line)}
  .brand{flex-basis:100%;padding:2px 6px 6px}
  .side .nav{padding:6px 9px}
  .side .group{display:none}
  /* The foot's entries (Agent prompts, All projects) sit in the bar's row like the rest, with no rule above them. */
  .side .footnav,html[data-side=collapsed] .side .footnav{display:flex;gap:4px;margin:0;padding:0;border-top:0}
  html[data-side=collapsed] .side{padding:10px 12px}
  html[data-side=collapsed] .brand{flex-basis:auto;padding:2px 6px}
  html[data-side=collapsed] .side .nav{padding:8px 9px}
  .side-top{flex-basis:100%}
  html[data-side=collapsed] .side-top{flex-direction:row;flex-basis:auto;padding:0}
  .pagehead{position:static;padding:10px 16px;flex-wrap:wrap;gap:6px 12px}
  .pagehead>.who{margin-left:0}
  .page{padding:24px 16px 40px}
  .toolbar{padding:10px 16px}
  .stagewrap{padding:20px 12px 16px}
  .canvas{padding:16px;margin:6px}
  .board{padding:16px 16px 32px}
  .story{grid-auto-columns:minmax(72%,1fr)}
  .board .story{grid-template-columns:minmax(0,1fr)}
  .board .scene-pic{aspect-ratio:16/10}
  .story.mini{grid-auto-columns:minmax(42%,1fr)}
  .flow-hint{display:block;border-top:1px solid var(--line)}
  .flow-hint+.flow-legend{border-top:0}
  .hero:has(> .portrait){grid-template-columns:minmax(0,1fr);gap:16px}
  .source{padding:14px 16px 18px}
  .hero h1{font-size:26px}
}
@media print{
  .side,.pagehead,.toolbar,.skip{display:none}
  .frame{display:block}
  .viewer{display:block}
}

/* a short message at the bottom of the window (review could not start) */
.toast{position:fixed;left:50%;bottom:24px;z-index:var(--z-toast);transform:translateX(-50%);max-width:calc(100vw - 32px);padding:10px 16px;border-radius:10px;background:var(--ink);color:#fff;font-size:13px;line-height:1.4;box-shadow:0 12px 40px rgba(18,18,20,.2)}
.toast.toast--top{top:136px;bottom:auto;left:auto;right:24px;transform:none;max-width:min(420px,calc(100vw - 32px))}

/* ---------- data: the relationship diagram, entity and pack cards, scenario tabs, Viewing as and the data chip ---------- */
.er{overflow:hidden;margin:0 0 12px}
.erwrap{overflow-x:auto;padding:12px 8px;scrollbar-width:thin}
.erwrap:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.erchart{display:block;width:100%;height:auto;min-width:min(100%,560px);max-width:var(--er-w,none);margin:0 auto;font-family:var(--sans)}
.erchart .box{fill:var(--panel);stroke:var(--line-2);stroke-width:1}
.erchart .head{fill:var(--well)}
.erchart .t{font-size:13.5px;font-weight:600;fill:var(--ink)}
.erchart .f{font-size:12.5px;fill:var(--ink-2)}
.erchart .k{font-size:12px;fill:var(--ink-3);font-weight:400}
.erchart .edge{fill:none;stroke:var(--ink-4);stroke-width:1.4}
.erchart .edge-label rect{fill:var(--panel)}
.erchart .edge-label text{font-size:11.5px;font-weight:500;fill:var(--ink-3)}
.erchart a{cursor:pointer}
.erchart a:hover .box{stroke:var(--ink-3)}
.erchart a:hover .t{text-decoration:underline}
.erchart a:focus{outline:0}
.erchart a:focus-visible .box{stroke:var(--focus);stroke-width:2.5}
/* the object explorer (FR-219 to FR-221): the types as a strip, then each type's objects as the things they are */
.otypes{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 8px}
.otype{display:inline-flex;align-items:baseline;gap:8px;padding:10px 16px;border-radius:var(--radius);background:var(--stage);color:var(--ink);text-decoration:none;transition:background-color var(--quick) var(--ease)}
.otype:hover{background:var(--well)}
.otype-n{font-size:22px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.otype-name{font-size:13.5px;color:var(--ink-2)}
.otype--schema{align-items:center;background:none;box-shadow:inset 0 0 0 1px var(--line-2)}
.otype--schema .si{width:14px;height:14px;color:var(--ink-3)}
.objs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:14px}
.obj{display:flex;flex-direction:column;gap:10px;min-width:0;padding:14px 16px;border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow-work);scroll-margin-top:80px;transition:box-shadow var(--settle) var(--ease)}
.obj:target{box-shadow:0 0 0 2px var(--focus),var(--shadow-work)}
.obj-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.obj-head>.face{width:36px;height:36px;font-size:13px}
.obj-title{font-size:15px;font-weight:600;min-width:0}
.obj-head>.pill{margin-left:auto}
.ofacts{display:grid;gap:4px}
.ofact{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:baseline;gap:8px;font-size:13px;color:var(--ink-2);min-width:0}
.ofact>.v{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.ofact .k{font-size:12px;color:var(--ink-3)}
.ofact q{color:var(--ink);quotes:"“" "”"}
.ochip{display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.ochip>.face{width:18px;height:18px;font-size:8px}
.bubbles{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bubble{display:flex;align-items:flex-start;gap:8px;min-width:0;scroll-margin-top:80px}
.bubble>.face{width:24px;height:24px;font-size:10px;flex:none}
.bubble>span{padding:7px 11px;border-radius:12px 12px 12px 4px;background:var(--well);font-size:13px;line-height:1.45;color:var(--ink-2);min-width:0}
.bubble>span b{color:var(--ink);font-weight:600}
.bubble:target>span{box-shadow:0 0 0 2px var(--focus)}
.bubbles--list{gap:10px;max-width:760px}
.bubbles--list .bubble>.ochip{margin-left:auto;flex:none;align-self:center}

/* entities and packs are plain rows between hairlines (FR-201): a name, its purpose and its counts */
.dcards{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.dcard{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr) auto;align-items:baseline;gap:4px 16px;min-width:0;padding:12px 4px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;transition:background-color var(--quick) var(--ease)}
.dcard:hover{background:var(--well)}
@media (max-width:640px){.dcard{grid-template-columns:minmax(0,1fr)}}
.dcard:hover b{text-decoration:underline}
.dcard b{font-size:15px;font-weight:600;letter-spacing:-.005em}
.dcard>span{font-size:13px;color:var(--ink-3)}
.dcard .chips{margin-top:0}
.dcard .chips i{font-style:normal;font-size:11.5px;font-weight:500;padding:2px 8px;border-radius:999px;background:var(--well);color:var(--ink-2)}
.dcard:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.dtabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:0 0 18px}
.dtabs [role=tab]{padding:8px 1px;margin-bottom:-1px;border-bottom:2px solid transparent;font-size:13.5px;font-weight:500;color:var(--ink-3);text-decoration:none;white-space:nowrap}
.dtabs [role=tab]:hover{color:var(--ink)}
.dtabs [role=tab][aria-selected=true]{color:var(--ink);border-bottom-color:var(--ink)}
.dtabs [role=tab]:focus-visible{outline:2px solid var(--focus);outline-offset:-1px;border-radius:4px}
.dpanel{outline:0}
.dpanel+.dpanel{margin-top:28px}
.sdesc{font-size:13.5px;color:var(--ink-2);margin:0 0 16px;max-width:44rem}
.ent{margin:0 0 18px}
.ent h3{display:flex;align-items:baseline;gap:8px;font-size:13px;font-weight:600;margin:0 0 8px}
.ent h3 a{color:inherit;text-decoration:none}
.ent h3 a:hover{text-decoration:underline}
.ent h3 small{font-weight:400;color:var(--ink-3);font-size:12px}
.ent .tbl code,.card.tokens .tbl code{font-size:12px;color:var(--ink-3)}
.ent .tbl td{vertical-align:middle}
.ent .who{color:var(--ink);font-size:inherit}
.cols .card>.note{margin-top:10px}
.ent .card>.body{padding:12px 16px}
.ent .card>.body p{margin:0}
.dataview{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}
.toolbar>.dataview{order:99;flex:1 0 100%;padding-top:8px;border-top:1px solid var(--line)}
.viewas{gap:8px;white-space:nowrap}
.viewas>span{font-size:12.5px;color:var(--ink-3)}
.viewas select{min-width:0}
.datachip{gap:6px;white-space:nowrap}
.datachip .si{width:14px;height:14px;color:var(--ink-3)}
.datachip:hover{border-color:var(--ink-4);color:var(--ink)}
.datachip:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* ---------- brief, Waiting on, lifecycles, requirements and acceptance criteria (behaviour-and-acceptance.md) ---------- */
.briefcard{display:grid;gap:12px;padding:16px 18px;text-decoration:none;color:inherit;transition:border-color var(--quick) var(--ease)}
.briefcard:hover{border-color:var(--ink-4)}
.briefcard:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.briefcard .facts{grid-template-columns:64px minmax(0,1fr);gap:8px 16px}
.briefcard .facts dd{color:var(--ink-2);line-height:1.5}
.brief-faces{display:inline-flex;vertical-align:middle;margin-right:6px}
.brief-faces>*+*{margin-left:-6px}
.brief-faces .face{box-shadow:0 0 0 2px var(--panel)}
.briefgroup{margin:48px 0 -18px;padding-top:20px;border-top:1px solid var(--line)}
.briefgroup .eyebrow{margin-bottom:4px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-size:11px}
dl.reqs{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 16px;margin:0}
dl.reqs>div{display:contents}
dl.reqs dd{margin:0;color:var(--ink-2)}
.waiting{display:grid;gap:10px}
details.wait{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
details.wait>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;cursor:pointer;list-style:none}
details.wait>summary::-webkit-details-marker{display:none}
details.wait>summary::after{content:"";margin-left:4px;width:6px;height:6px;border-right:1.5px solid var(--ink-3);border-bottom:1.5px solid var(--ink-3);transform:rotate(-45deg);transition:transform var(--quick) var(--ease)}
details.wait[open]>summary::after{transform:rotate(45deg)}
details.wait>summary:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
details.wait>summary b{font-weight:600;display:inline-flex;align-items:center;gap:6px}
.wcounts{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:auto}
details.wait>.note{padding:0 16px 10px}
details.wait>.rows{border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
details.wait .row .name{font-weight:500}
details.wait .row .tag{min-width:84px;justify-content:center}
.tag.wk-question{background:#EEF2FF;color:#3730A3}
.tag.wk-need{background:#FFF6ED;color:var(--recovery)}
.tag.wk-review{background:#FEF9C3;color:#713F12}
.tag.wk-confirm{background:#ECFDF3;color:#166534}
.lc{overflow:hidden;margin:0 0 12px}
.lcwrap{overflow-x:auto;padding:16px 8px;scrollbar-width:thin}
.lcwrap:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.lcchart{display:block;height:auto;max-width:100%;margin:0 auto;font-family:var(--sans)}
.lcchart .lc-state rect{fill:var(--panel);stroke:var(--line-2);stroke-width:1.2}
.lcchart .lc-state.initial rect{stroke:var(--ink-2);stroke-width:2}
.lcchart .lc-state.unreachable rect{stroke-dasharray:4 3}
.lcchart .lc-state text{font-size:13.5px;font-weight:600;fill:var(--ink)}
.lcchart .lc-edge{fill:none;stroke:var(--ink-3);stroke-width:1.5}
.lcchart marker path{fill:var(--ink-3)}
.lcchart .lc-label rect{fill:var(--bg)}
.lcchart .lc-label text{font:600 12px var(--mono);fill:var(--ink-2)}
.lcchart .lc-cap{font:11.5px var(--mono);fill:var(--ink-3)}
code.rid{font:600 11.5px var(--mono);color:var(--ink-2);white-space:nowrap}
.panel ul.reqlist,.panel ol.aclist{list-style:none;padding:0;margin:4px 0 0;display:grid;gap:8px}
ol.aclist{list-style:none;padding-left:0}
ul.reqlist li,ol.aclist li{margin:0;line-height:1.5}
.reqlist .tag{margin-left:4px}
.achead{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:2px}
.achead .rid{margin-right:2px}
.acsetup{display:block;margin-top:2px}
.chip.fr,.chip.sc{min-height:20px;padding:0 7px;font:500 11px var(--mono);gap:4px}
.chip.fr.off{border-style:dashed;color:var(--ink-3)}
.chip.sc .si{width:12px;height:12px;color:var(--ink-3)}
.gwt{display:block;color:var(--ink-2)}
.gwt b{font-weight:600;color:var(--ink)}
details.wait .row{display:grid;grid-template-columns:84px minmax(0,1fr);column-gap:14px;align-items:baseline}
details.wait .row .meta{grid-column:2}
.clar{display:inline;padding:1px 6px;border-radius:5px;background:#EEF2FF;color:#3730A3;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.clar b{font-weight:600;margin-right:4px}
.tbl td.nowrap{white-space:nowrap}

/* ---- the working prototype (prototype.md, section 9): links into it, proof results, its page */
.protolink{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:6px 0 2px}
.protolink code{font:11.5px var(--mono);color:var(--ink-3)}
.protolink .note{font-size:12px}
.chip.pf{min-height:20px;padding:0 8px;font-size:11.5px;font-weight:600;gap:4px;text-decoration:none}
.chip.pf .si{width:12px;height:12px}
.chip.pf.pass{color:#0F6E33;background:#EDF8F1;border-color:#C9EBD5}
.chip.pf.fail{color:#B42318;background:#FDF0EF;border-color:#F5CDC9}
.chip.pf.untested{color:var(--ink-3);background:var(--well);border-color:var(--line)}
a.chip.pf:hover{border-color:currentColor}
.tag.pf-old{background:#FDECEC;color:#9B1C1C}
.protocard{display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;padding:16px 18px}
.protocard>.body{display:grid;gap:4px;padding:0;flex:1 1 320px;min-width:0}
.protocard .name{font-weight:600;font-size:14px}
.protocard .note{font-size:12.5px;line-height:1.5}
.protocard.lg .name{font-size:16px}
.protocard .btn .si,.protolink .btn .si{width:15px;height:15px}
.pfsum{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:6px}
.pfsum .note{margin-left:2px}
.pfsum.lg{margin:0 0 4px}
.pfsum.lg .chip.pf{min-height:24px;padding:0 10px;font-size:12.5px}
.pfsteps{display:grid;gap:12px}
.pfstep .bar .name{font-weight:600}
/* A step's proofs at a glance (FR-196): one square per criterion; the step opens to its criteria. */
details.pfstep>summary{cursor:pointer;list-style:none}
details.pfstep>summary::-webkit-details-marker{display:none}
details.pfstep>summary>.si{width:14px;height:14px;color:var(--ink-3);transition:transform var(--settle) var(--ease)}
details.pfstep[open]>summary>.si{transform:rotate(90deg)}
details.pfstep[open]>summary{border-bottom:1px solid var(--line)}
.pfsqs{display:flex;flex-wrap:wrap;gap:3px;margin-left:6px}
.pfsq{width:12px;height:12px;border-radius:3px;background:var(--well);box-shadow:inset 0 0 0 1px var(--line-2)}
.pfsq.pass{background:#2E9E5B;box-shadow:none}
.pfsq.fail{background:#D92D20;box-shadow:none}
.pfstep .bar .note{text-decoration:none;font:11.5px var(--mono)}
.pflist{list-style:none;margin:0;padding:0}
.pfrow{display:grid;grid-template-columns:144px minmax(0,1fr);gap:14px;align-items:start;padding:12px 14px}
.pfrow+.pfrow{border-top:1px solid var(--line)}
.pfrow.untested,.pfrow.none{grid-template-columns:minmax(0,1fr)}
.pfshot{display:block;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--well);line-height:0}
.pfshot img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top}
.pfshot:hover{border-color:var(--ink-4)}
.pfbody{display:grid;gap:4px;min-width:0;font-size:13px;line-height:1.5}
.pfbody .gwt{color:var(--ink-2)}
.pfwhy{margin:2px 0 0;padding-left:18px;color:var(--ink-3);font-size:12px}
.pfrow.fail .pfwhy{color:#B42318}
.pad{padding:12px 14px}
@media (max-width:760px){.pfrow{grid-template-columns:minmax(0,1fr)}.pfshot{max-width:288px}}

/* ---------- outputs: the Workspace's first section (FR-190) ----------
   Each output is shown as itself on the stage: the prototype's opening screen, the specification's first page, each
   deck's first slide, the landing page. The tile around it is chrome (flat, a hairline); the picture is the work. */
/* An output is its stage and its label, with no card around them (FR-201): the stage is the one container. */
.work{position:relative;display:flex;flex-direction:column;min-width:0;text-decoration:none;color:inherit}
.work:has(.cover:hover) .shot,.work:has(.cover:hover) .sheet{box-shadow:var(--shadow-work-lift)}
.stage-well{margin:0;padding:22px 24px;border-radius:var(--radius);transition:background-color var(--quick) var(--ease);background:var(--stage);display:grid;place-items:center;overflow:hidden;min-height:150px}
.stage-well>.shot{width:100%;max-width:520px}
.stage-well>.shots{width:100%}
.work-label{display:flex;flex-direction:column;gap:3px;padding:12px 2px 0}
.work:has(.cover:hover) .stage-well{background:var(--stage-hover,var(--stage))}
.work-label .name{font-size:14px;font-weight:600;color:var(--ink)}
.work-label .desc{font-size:12.5px;line-height:1.45;color:var(--ink-3)}
.work-label .eyebrow{margin:0}
.work-label .pfsum{margin-top:6px}
.work-acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:14px}
.work.lead{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:0 28px;align-items:start;margin-bottom:28px}
.work.lead .stage-well{margin:0;padding:28px 32px;min-height:260px}
.work.lead .stage-well>.shot{max-width:640px}
.work.lead .work-label{justify-content:flex-start;padding:4px 0 0}
.work.lead .work-label .name{font-size:20px;letter-spacing:-.01em}
.works{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:16px}
.works .stage-well{aspect-ratio:16/10;min-height:0;padding:18px}
.works .stage-well>.shot{max-width:none}
@media (max-width:760px){.work.lead{grid-template-columns:minmax(0,1fr)}.work.lead .stage-well{padding:18px;min-height:0}.work.lead .work-label{padding:12px 2px 0}}
/* The specification's first page, drawn as a sheet: real words from the spec, nothing to read at this size. */
.sheet{height:100%;aspect-ratio:8.5/11;max-width:100%;box-sizing:border-box;padding:9% 10%;border-radius:4px;background:var(--panel);box-shadow:var(--shadow-work);overflow:hidden;transition:box-shadow var(--settle) var(--ease)}
.sheet-page{display:flex;flex-direction:column;gap:3px;font-size:6.5px;line-height:1.4;color:var(--ink-2)}
.sheet-page>span{display:block;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.sheet-title{font-size:10px;line-height:1.2;color:var(--ink)}
.sheet-sub{margin-bottom:5px;color:var(--ink-3)}
.sheet-h{margin-top:4px;font-weight:600;color:var(--ink)}
.sheet-li::before{content:"· "}
/* Evidence (FR-235): the builder's picture beside the reference picture, two columns, one on a narrow screen. */
.evstate{margin-top:12px;padding:14px}
.evstate h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.evpair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.evpair figure{margin:0;min-width:0}
.evpair img,.evpair .none{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--well)}
.evpair .none{aspect-ratio:16/10;display:grid;place-items:center;color:var(--ink-3)}
.evpair figcaption{margin-top:4px;font-size:12px;color:var(--ink-3)}
@media (max-width:640px){.evpair{grid-template-columns:1fr}}

/* ---------- the first run (FR-283 to FR-288): one question at a time, in one column ---------- */
/* The still preset (Design settings, or the reader's reduced motion through it) stops the page's own motion too. */
html[data-motion=still]{--quick:0ms;--settle:0ms;--lift:0px}
.is-first-run{font-size:15px}
.frhead{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:var(--rail);padding:0 2rem;border-bottom:1px solid var(--line);font-size:.8667rem;color:var(--ink-3)}
.frcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0;padding:0}
.frcrumbs li+li::before{content:"›";margin-right:.5rem;color:var(--ink-4)}
.frcrumbs a{color:var(--ink);font-weight:600;text-decoration:none}
.frcrumbs a:hover{text-decoration:underline;text-underline-offset:3px}
.frcrumbs [aria-current]{color:var(--ink-2)}
.frhead .btn{flex:none}
.frpage{display:block;max-width:40rem;margin:0 auto;padding:3rem 2rem 4.5rem;outline:0}
.frpage :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.frstep h1:focus-visible{outline:0}
/* A step arrives and leaves like everything else that opens (--settle, --lift); the runtime hides one before it shows the next. */
.frstep{transition:opacity var(--settle) var(--ease),translate var(--settle) var(--ease)}
.frstep:is([data-arriving],[data-leaving]){opacity:0;translate:0 var(--lift)}
.frwrap{display:grid;gap:1.5rem}
.frstep .eyebrow{display:block;margin:0;font-size:.8667rem;font-weight:500}
.frstep h1{font-size:2rem;line-height:1.2;letter-spacing:-.02em;font-weight:650;margin:0;overflow-wrap:anywhere}
.frstep h2{font-size:1.25rem;line-height:1.3;letter-spacing:-.01em;margin:0}
.frstep .eyebrow+h1{margin-top:-1rem}
.frstep .lede{margin:0;font-size:1.0667rem}
.frstep .muted,.frstep .note{margin:0}
.frstep .note{font-size:.8667rem}
.frstep p{overflow-wrap:anywhere}
.frstep .btn{font-size:.9333rem;line-height:1.35;padding:.5rem .9rem;white-space:normal;text-align:left}
.frstep .btn.lg{font-size:1rem;padding:.65rem 1.15rem}
.frstep .btn.sm{font-size:.8667rem;padding:.25rem .6rem}
.frstep .btn.quiet,.frhead .btn.quiet{border-color:transparent;background:none;box-shadow:none;color:var(--ink-2)}
.frstep .btn.quiet:hover{background:var(--well);color:var(--ink)}
.frstep .btn[aria-disabled=true]{color:var(--ink-4);border-color:var(--line);cursor:default}
.frstep .btn .fri{width:1rem;height:1rem}
.fri{width:1.25rem;height:1.25rem;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* The four parts, as a numbered list (the offer) or as rows to open (the resume). */
.frparts{display:grid;gap:.5rem;list-style:none;margin:0;padding:0}
.frparts li{display:flex;align-items:center;gap:.75rem;min-height:2rem}
.frparts a{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0;padding:.4rem .5rem;margin:-.4rem -.5rem;border-radius:var(--radius-sm);color:inherit;text-decoration:none;transition:background-color var(--quick) var(--ease)}
.frparts a:hover{background:var(--well)}
.frparts a[aria-current]{font-weight:600}
.frnum{display:grid;place-items:center;flex:none;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--well);font-size:.8667rem;font-weight:600;color:var(--ink-2)}
.frname{flex:1;min-width:0}
.frstate{margin-left:auto}
.frstate.answered::before{background:var(--s-ready)}
.frstate.left-open::before{background:var(--s-mock)}
.frstate.next::before{background:var(--s-draft)}
.fract,.frskip,.frrow{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:0}
.frrow{margin-top:.25rem}
/* What the person has in mind: four choices, each one link. */
.frchoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.choice{display:grid;gap:.25rem;justify-items:start;padding:1rem 1.1rem;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--panel);color:inherit;text-decoration:none;white-space:normal;transition:border-color var(--quick) var(--ease),background-color var(--quick) var(--ease)}
.choice:hover{border-color:var(--ink-4);background:var(--well)}
.choice .fri{width:1.5rem;height:1.5rem;color:var(--ink-2);margin-bottom:.25rem}
.choice b{font-size:1.0667rem;font-weight:600}
.choice span{font-size:.9333rem;color:var(--ink-3)}
/* A sentence to finish, and a group of kinds to tick. */
.frfields{display:grid;gap:1.5rem}
.frfields:empty{display:none}
.field{display:grid;gap:.4rem;min-width:0}
.field label,.kinds legend{font-weight:600;color:var(--ink)}
.kinds{border:0;padding:0;margin:0;min-width:0}
.kinds legend{padding:0;margin-bottom:.4rem}
.kinds>[data-fr-input]{display:grid;gap:.6rem}
.field input,.field textarea{display:block;width:100%;box-sizing:border-box;font:inherit;font-size:1rem;line-height:1.5;color:var(--ink);padding:.6rem .75rem;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--panel);transition:border-color var(--quick) var(--ease)}
.field textarea{resize:vertical;min-height:4.4rem}
.field input:hover,.field textarea:hover{border-color:var(--ink-4)}
.field .hint,.field .ghost,.field .listen{margin:0;font-size:.8667rem;color:var(--ink-3)}
.field .ghost{color:var(--ink-2);font-style:italic}
.field .listen{color:var(--ink-2);font-weight:500;transition:opacity var(--quick) var(--ease)}
.field .listen:is([data-arriving],[data-leaving]){opacity:0}
/* A field's input gives way to its Left open line and comes back (Answer it now); a Speak row gives way to a notice. */
.field>[data-fr-input],.field .frrow,.frlist li{transition:opacity var(--settle) var(--ease),translate var(--settle) var(--ease)}
:is(.field>[data-fr-input],.field .frrow,.frlist li):is([data-arriving],[data-leaving]){opacity:0;translate:0 var(--lift)}
.field.other{margin-top:.25rem}
.checks{display:grid;gap:.4rem}
.frstep .check{font-size:1rem;font-weight:400;color:var(--ink);white-space:normal;align-items:flex-start;gap:.6rem;line-height:1.4}
.frstep .check input{width:1.1rem;height:1.1rem;margin-top:.15rem;flex:none}
/* Left open, and the speech notices: they settle in under the field they belong to. */
.open,.notice{display:grid;gap:.4rem;padding:.9rem 1.1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--well);color:var(--ink-2);outline:0;transition:opacity var(--settle) var(--ease),translate var(--settle) var(--ease)}
.open:is([data-arriving],[data-leaving]),.notice:is([data-arriving],[data-leaving]){opacity:0;translate:0 var(--lift)}
.open b,.notice b{color:var(--ink);font-weight:600}
.open p,.notice p{margin:0}
.notice.warn,.notice.error{background:var(--recovery-bg);border-color:#F3D9BF}
.notice.warn b,.notice.error b{color:var(--recovery)}
.notice kbd{font:.8rem var(--mono);border:1px solid var(--line-2);border-bottom-width:2px;border-radius:4px;padding:0 .3rem;background:var(--panel);color:var(--ink-2)}
.notice:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* The example answer: text only, never saved. */
.example{display:grid;gap:.4rem;margin:0;padding:1rem 1.1rem;border:1px dashed var(--line-2);border-radius:var(--radius);color:var(--ink-2)}
.example p{margin:0}
.frnav{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin:.5rem 0 0}
.frnav .btn.dark{margin-left:auto}
/* The read-back: a card per part, its sentence or its fields in place. */
.part{display:grid;gap:.6rem;padding:1rem 1.25rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.part-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.part-text{margin:0;font-size:1.0667rem;line-height:1.5}
.part .frfields{margin-top:.25rem}
/* Edit and Done swap a part's sentence and its fields over --quick (the read-back's interaction). */
.part-text,.part [data-fr-editor],.part [data-fr-done-row]{transition:opacity var(--quick) var(--ease)}
:is(.part-text,.part [data-fr-editor],.part [data-fr-done-row]):is([data-arriving],[data-leaving]){opacity:0}
.frlist{display:grid;gap:.5rem;list-style:none;margin:0;padding:0}
.frlist li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem .75rem}
.frwrites{display:grid;gap:.5rem}
.frwrites .row,.frmade .row{font-size:.9333rem}
.frmade .row{flex-wrap:nowrap;align-items:center}
.frmade .row .name{flex:none;max-width:40%}
.frmade .row .meta{flex:1 1 0;min-width:0}
.frmade .row>.si:last-child{margin-left:auto;color:var(--ink-3)}
.frmade .pill{margin-left:auto}
.frcount{margin-left:auto;font-weight:600;font-variant-numeric:tabular-nums}
.frnext>.body{display:grid;gap:.6rem}
.frnext .prompt{margin-top:.5rem}
.frstep .notice.error{margin-top:.5rem}
@media (max-width:720px){
  .frhead{padding:0 1rem}
  .frpage{padding:2rem 1rem 3.5rem}
  .frstep h1{font-size:1.6rem}
  .frchoices{grid-template-columns:minmax(0,1fr)}
  .fract,.frskip,.frnav{flex-direction:column;align-items:stretch}
  .frnav .btn.dark{margin-left:0}
  .fract .btn,.frskip .btn,.frnav .btn{width:100%;box-sizing:border-box;justify-content:center;text-align:center}
  .frmade .row{flex-wrap:wrap}
  .frmade .row .name{max-width:none}
  .frmade .row .meta{flex-basis:100%}
}

/* ---------- the Workspace, context first, as a dashboard (FR-307) ---------- */
.parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:14px;margin:0 0 28px}
.part{display:flex;flex-direction:column;gap:8px;padding:14px 16px;text-decoration:none;color:inherit;transition:border-color var(--quick) var(--ease),box-shadow var(--quick) var(--ease)}
.part .eyebrow{margin:0}
.part .text{font-size:14px;line-height:1.5;color:var(--ink)}
.part.empty{border-style:dashed;background:none;padding:14px 16px;display:flex;justify-items:stretch}
.part.empty .text{color:var(--ink-3)}
.part .faces{display:flex;gap:4px}
a.part:hover{border-color:var(--ink-4);box-shadow:0 2px 8px rgba(18,18,20,.06)}
.shot.empty.plain{display:grid;place-items:center;border-style:solid;background:var(--panel)}
.shot.empty.plain .chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
/* The Workspace as a dashboard (FR-307): rows of tiles, each one link (its name's cover link) that drills into its page,
   with one number and one small picture. The rows fit one laptop screen; the dashboard's own width decides how many
   tiles share a row (a container query), so a collapsed or expanded sidebar both read well. */
.hero:has(>.dash-name){margin-bottom:18px}
.dash-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px}
.dash-name h1{margin:0;font-size:28px}
.dash-name .lede{margin:0;font-size:15px}
.dash{container-type:inline-size;display:grid;gap:14px;margin:0 0 28px}
.dash-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:14px}
.dash-row.top{grid-auto-flow:row;grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.dash-row.top.solo{grid-template-columns:minmax(0,1fr)}
html[data-known] .dash-row.top{grid-template-columns:repeat(3,minmax(0,1fr))}
.dtile{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);transition:border-color var(--quick) var(--ease),box-shadow var(--quick) var(--ease)}
.dtile:has(.cover:hover){border-color:var(--ink-4);box-shadow:0 2px 8px rgba(18,18,20,.06)}
.dtile:has(.cover:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.dhead{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.dhead .name{margin:0;font-size:14px;font-weight:600;letter-spacing:0;color:var(--ink)}
.dhead .grp{flex:none;font-size:12px;color:var(--ink-3);white-space:nowrap}
.dbig{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
.dbig b{font-size:28px;font-weight:650;line-height:1.1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.dbig span{font-size:12.5px;color:var(--ink-3)}
.dnote{font-size:12.5px;line-height:1.45;color:var(--ink-3)}
.dsub{display:grid;gap:2px}
.dsub b{font-size:13.5px;font-weight:600}
.dsub span{font-size:12.5px;color:var(--ink-3)}
.dtile .faces{display:flex;justify-content:flex-start;gap:4px}
.dtile .faces>*+*{margin-left:0}
.dtile .faces .face{box-shadow:none}
:is(.dbar,.dlegend)>[data-tone=ready],:is(.dbar,.dlegend)>[data-tone=pass]{--tone:var(--s-ready)}
:is(.dbar,.dlegend)>[data-tone=draft]{--tone:var(--s-draft)}
:is(.dbar,.dlegend)>[data-tone=mock]{--tone:var(--s-mock)}
:is(.dbar,.dlegend)>[data-tone=placeholder]{--tone:var(--s-placeholder)}
:is(.dbar,.dlegend)>[data-tone=fail]{--tone:#DC2626}
:is(.dbar,.dlegend)>[data-tone=untested]{--tone:var(--line-2)}
.dbar{display:flex;gap:2px;height:8px;border-radius:999px;overflow:hidden}
.dbar>i{display:block;min-width:4px;background:var(--tone)}
.dlegend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding:0;list-style:none;font-size:12.5px;color:var(--ink-2)}
.dlegend li{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.dlegend .key{width:8px;height:8px;border-radius:2px;background:var(--tone)}
.dlegend b{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.dbars{display:grid;grid-template-columns:auto minmax(40px,1fr) auto;align-items:center;gap:6px 10px;margin:0;padding:0;list-style:none;font-size:12.5px}
.dbars li{display:contents}
.dbars .lbl{color:var(--ink-2)}
.dbars .track{height:6px;border-radius:999px;background:var(--well);overflow:hidden}
.dbars .track>i{display:block;height:100%;border-radius:inherit;background:var(--ink)}
.dbars b{font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
/* What it is: the four parts in two rows of two; beside To do, one column in the smaller size. */
.dparts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}
.dpart{display:grid;gap:4px;align-content:start;min-width:0}
.dpart .eyebrow{margin:0}
.dpart .text{font-size:14px;line-height:1.5;color:var(--ink)}
.dpart .roles{font-size:12.5px;line-height:1.45;color:var(--ink-3)}
.dpart.empty .text{color:var(--ink-3)}
html[data-known] .dtile.what .dparts{grid-template-columns:minmax(0,1fr);gap:8px}
html[data-known] .dtile.what .dpart .text{font-size:12.5px;line-height:1.45;color:var(--ink-2)}
html[data-known] .dtile.what .dpart .roles{display:none}
/* Try the prototype: its opening screen in a well at the top, then its name and its proofs. */
.dtile.proto{padding:8px 8px 16px}
.dtile.proto>:not(.stage-well){margin:0 10px}
.dtile.proto .stage-well{height:150px;min-height:0;padding:14px;border-radius:calc(var(--radius) - 6px)}
.dtile.proto:has(.cover:hover) .shot{box-shadow:var(--shadow-work-lift)}
/* To do (FR-307): one row per thing to do, the pill saying what it is, the whole row one link. */
.dtile.todo{padding:16px 0 4px;gap:6px}
.dtile.todo>.dhead,.dtile.todo>.dnote{padding:0 18px}
.dtile.todo .rows.todo{margin:0;padding:0;list-style:none}
.dtile.todo .row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:1px;padding:10px 18px;border-top:1px solid var(--line);text-decoration:none;color:inherit;transition:background-color var(--quick) var(--ease)}
.dtile.todo .row:hover{background:var(--bg)}
.dtile.todo .row>.pill{grid-row:1 / span 2}
.dtile.todo .row>.name{grid-column:2;font-size:14px;font-weight:500;line-height:1.35}
.dtile.todo .row>.meta{grid-column:2;font-size:12.5px;color:var(--ink-3)}
.dtile.todo .row>.si{grid-column:3;grid-row:1 / span 2;width:16px;height:16px;color:var(--ink-3)}
@container (max-width:860px){
  .dash-row{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash-row.top,html[data-known] .dash-row.top{grid-template-columns:minmax(0,1fr)}
}
@container (max-width:520px){
  .dash-row{grid-template-columns:minmax(0,1fr)}
  .dparts{grid-template-columns:minmax(0,1fr)}
}
.pill.todo-next::before{background:var(--s-draft)}
.pill.todo-question::before{background:#DC2626}
.pill.todo-review::before{background:var(--s-mock)}
.note.calm{font-size:14px;color:var(--ink-2);padding:12px 0}
[data-to-do]{transition:opacity var(--settle) var(--ease),translate var(--settle) var(--ease)}
[data-to-do][data-arriving]{opacity:0;translate:0 var(--lift)}
.going-on-line{margin:-6px 0 18px}
.going-on-line a{color:var(--ink-3);text-decoration:none}
.going-on-line a:hover{color:var(--ink);text-decoration:underline}
/* ---------- a deck is a slides app (FR-316): the filmstrip, the current slide fitted whole, nothing to scroll ----------
   The filmstrip's thumbnails are the slides themselves (outputs.js, drawThumbs), 1280 x 720 scaled to 148px wide.
   Above 760px the page is the window: the filmstrip beside the stage, the slide at the top of the stage right under
   the page header (which holds the deck's controls, FR-311), and the notes under the stage.
   A review keeps its own frame (FR-277). */
.deckview .out-deck__list{display:flex;flex-direction:row;flex-wrap:nowrap;gap:10px;margin:0;padding:2px 2px 6px;list-style:none;overflow:auto}
.deckview .out-deck__list li{flex:none}
.deckview .out-deck__list button{position:relative;display:grid;grid-template-columns:12px 148px;align-items:start;gap:4px;padding:0;border:0;border-radius:0;background:none;color:var(--ink-3);font:inherit;font-size:12px;font-weight:500;text-align:right;cursor:pointer;transition:color var(--quick) var(--ease)}
.deckview .out-deck__list button:hover,.deckview .out-deck__list button[aria-current="true"]{background:none;color:var(--ink)}
.deckview .out-deck__list button:focus-visible{outline:0}
.deckview .out-deck__list button:focus-visible .out-thumb{box-shadow:0 0 0 2px var(--focus)}
.deckview .out-deck__n{padding-top:2px;font-variant-numeric:tabular-nums}
.deckview .out-deck__t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.deckview .out-thumb{position:relative;display:block;width:148px;height:83.25px;overflow:hidden;border-radius:5px;background:var(--panel);box-shadow:0 0 0 1px var(--line);transition:box-shadow var(--quick) var(--ease)}
.deckview .out-deck__list button:hover .out-thumb{box-shadow:0 0 0 1px var(--ink-4)}
.deckview .out-deck__list button[aria-current="true"] .out-thumb{box-shadow:0 0 0 2px var(--ink)}
.deckview .out-thumb>.out-slide{position:absolute;top:0;left:0;transform-origin:0 0;transform:scale(.115625);pointer-events:none}
.deckview .out-deck__list .q{position:absolute;top:6px;right:6px;z-index:1;width:8px;height:8px;border-radius:50%;background:var(--s-mock);box-shadow:0 0 0 2px var(--panel)}
.deckview .out-deck__stage{padding:14px;border-radius:0;background:none}
.deckview .out-deck__viewport{box-shadow:var(--shadow-work)}
/* About, in the header's actions: what the page says about the deck, opening under its trigger. */
.out-deck__about>summary{cursor:pointer}
details.pop .out-deck__about-panel{width:440px;max-height:min(70vh,560px);overflow:auto}
.out-deck__about-panel>*+*{margin-top:12px}
.out-deck__about-panel .section{margin:0;padding:0}
.out-deck__about-panel .section h2{font-size:14px;margin:0 0 6px}
.out-deck__about-panel p{font-size:13px;line-height:1.5}
@media (min-width:761px){
  html:not(.reviewing):has(.deckview) body{overflow:hidden}
  html:not(.reviewing) .frame:has(.deckview){height:100vh;height:100dvh;min-height:0}
  html:not(.reviewing) .main:has(.deckview){height:100vh;height:100dvh;min-height:0}
  html:not(.reviewing) .main:has(.deckview)>main.page{flex:1 1 auto;min-height:0;max-width:none;display:flex;flex-direction:column;padding:8px 20px 14px 6px}
  html:not(.reviewing) .main:has(.deckview)>main.page>.hero{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  html:not(.reviewing) .main:has(.deckview)>footer.source{display:none}
  html:not(.reviewing) .deckview{flex:1 1 auto;min-height:0;display:flex}
  html:not(.reviewing) .deckview>.out-deck{flex:1 1 auto;min-height:0;margin:0;display:grid;grid-template-columns:166px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"list stage" "list notes";gap:12px 8px}
  html:not(.reviewing) .deckview .out-deck__list{grid-area:list;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;padding:4px 2px 8px 0}
  html:not(.reviewing) .deckview .out-deck__stage{grid-area:stage;container-type:size;min-height:0;display:grid;align-items:start;justify-items:center;padding-top:4px}
  html:not(.reviewing) .deckview .out-deck__viewport{width:min(100cqw,calc(100cqh * 1280 / 720))}
  html:not(.reviewing) .deckview .out-deck__notes{grid-area:notes}
  html:not(.reviewing) .deckview .out-deck__notes[data-open] .out-deck__notes-in{max-height:26vh;overflow:auto}
}
/* ---------- Open questions (FR-312): the question at the title size, one small line, a compact answer ---------- */
details.qgroup{overflow:hidden}
details.qgroup>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;cursor:pointer;list-style:none}
details.qgroup>summary::-webkit-details-marker{display:none}
details.qgroup>summary::after{content:"";margin-left:auto;width:6px;height:6px;border-right:1.5px solid var(--ink-3);border-bottom:1.5px solid var(--ink-3);transform:rotate(-45deg);transition:transform var(--quick) var(--ease)}
details.qgroup[open]>summary::after{transform:rotate(45deg)}
details.qgroup>summary:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
details.qgroup>summary b{font-weight:600}
details.qgroup>summary .meta{font-size:13px;color:var(--ink-3)}
details.qgroup>.note{padding:0 16px 10px}
details.qgroup>.rows.flat{border-bottom:0;border-top:1px solid var(--line)}
details.qgroup>.rows.flat .row{padding-left:16px;padding-right:16px}
.qrow{display:grid;gap:8px}
.qrow .qask{flex:none;font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.01em;--pipeup-ask-accent:var(--ink);--pipeup-ask-font:var(--sans);--pipeup-ask-radius:8px}
.qrow .qask .muted{font-size:13px;font-weight:400}
.qrow .meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-size:12.5px;color:var(--ink-3)}
.qrow .meta .btn.link{font-size:12.5px;line-height:18px;padding:0;border:0;background:none;color:var(--ink-3)}
.qrow .meta .btn.link:hover{color:var(--ink);text-decoration:underline}
.qrow .meta a{color:inherit}
/* ---------- the installed app (FR-313): content clear of the status bar and the home indicator ---------- */
.pagehead{padding-top:calc(10px + env(safe-area-inset-top,0px))}
@media (min-width:761px){.side{padding-top:env(safe-area-inset-top,0px)}}
@media (max-width:760px){.side{padding-top:calc(20px + env(safe-area-inset-top,0px))}}
.frame{padding-bottom:env(safe-area-inset-bottom,0px)}

/* ---------- the sidebar's groups (FR-314): Specs, Reviews, Pitches, as Slack's sections ---------- */
.side .navgroup{display:flex;flex-direction:column;gap:2px}
.side .navhead{width:100%;border:0;background:none;cursor:pointer;text-align:left;font:inherit}
.side .navhead .ico{position:relative;width:18px;height:18px;flex:none}
.side .navhead .ico .si{position:absolute;inset:0;transition:opacity var(--quick) var(--ease),transform var(--quick) var(--ease)}
.side .navhead .ico .si:last-child{opacity:0}
.side .navhead:is(:hover,:focus-visible) .ico .si:first-child{opacity:0}
.side .navhead:is(:hover,:focus-visible) .ico .si:last-child{opacity:1}
.side .navgroup[data-open=true] .navhead .ico .si:last-child{transform:rotate(90deg)}
.side .navgroup[data-open=true] .navhead .count{display:none}
.side .navitems{display:flex;flex-direction:column;gap:2px}
.side .navitems .nav{padding-left:22px;font-weight:450}
/* Closed, a group keeps only the current page's entry in view; opening eases the rest in. */
.side .navgroup[data-open=false] .navitems .nav:not([aria-current]){display:none}
.side .navitems .nav{transition:background-color var(--quick) var(--ease),color var(--quick) var(--ease),opacity var(--settle) var(--ease)}
.side .navgroup[data-arriving] .navitems .nav{opacity:0}
html[data-side=collapsed] .side .navhead .count{display:none}
html[data-side=collapsed] .side .navitems .nav{padding-left:0}
/* Collapsed, the rail shows each group's mark only (FR-314, FR-199); hovering or focusing a group opens its entries
   beside the rail, titled with the group's name (app.js, initNavGroups, places it), and it stays a moment after the
   pointer leaves so the pointer can cross to it. The group holding the current page is marked. */
@media (min-width:761px){
  html[data-side=collapsed] .side .navitems{position:fixed;left:calc(var(--side-rail) - 4px);top:var(--fly-top,0px);z-index:var(--z-tip);display:flex;flex-direction:column;gap:2px;min-width:196px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 12px 32px rgba(18,18,20,.14);visibility:hidden;opacity:0;translate:-4px 0}
  /* eased only once the page has painted (data-side-ready), so collapsing on arrival never shows a flyout */
  html[data-side-ready][data-side=collapsed] .side .navitems{transition:opacity var(--quick) var(--ease),translate var(--quick) var(--ease),visibility 0s linear 180ms}
  html[data-side=collapsed] .side .navgroup:is(:hover,:focus-within) .navitems{visibility:visible;opacity:1;translate:0 0}
  html[data-side-ready][data-side=collapsed] .side .navgroup:is(:hover,:focus-within) .navitems{transition-delay:0s}
  html[data-side=collapsed] .side .navitems::before{content:attr(data-label) "\00a0\00a0" attr(data-keys);display:flex;align-items:center;min-height:28px;padding:0 8px;font-size:12px;font-weight:600;color:var(--ink-3)}
  html[data-side=collapsed] .side .navgroup[data-open] .navitems a.nav{display:flex;justify-content:flex-start;padding:5px 8px}
  html[data-side=collapsed] .side .navitems .nav :is(.lbl,.count){position:static;width:auto;height:auto;overflow:hidden;clip-path:none}
  html[data-side=collapsed] .side .navhead .ico .si:first-child{opacity:1}
  html[data-side=collapsed] .side .navhead .ico .si:last-child{opacity:0}
  html[data-side=collapsed] .side .navgroup:has(.navitems [aria-current])>.navhead{background:var(--panel);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
}

/* The nav's foot (FR-314): the prompts for agents, then the comment hint. */
.side .footnav{margin-top:auto;padding-top:8px;border-top:1px solid var(--line)}
html[data-side=collapsed] .side .footnav{padding-top:6px}

/* ---------- reviewer mode's stage (FR-279): the bar, the toolbar, the stage, the foot; the page never scrolls ---------- */
html.reviewing body{overflow:hidden}
html.reviewing .frame{min-height:100vh;height:100vh;min-height:100dvh;height:100dvh}
html.reviewing{--revbar-h:60px;--revfoot-h:60px}
html.reviewing .main{background:var(--panel);height:100vh;height:100dvh;display:grid;grid-template-rows:var(--revbar-h) minmax(0,1fr) var(--revfoot-h);grid-template-columns:minmax(0,1fr)}
/* Fixed bars (FR-279): the bar and the foot keep one height; the stage between them takes the rest. */
html.reviewing .pagehead.has-revbar{box-sizing:border-box;height:var(--revbar-h);min-height:0;padding:0 32px;overflow:visible}
html.reviewing .revbar{height:100%}
html.reviewing .main>.toolbar{display:none!important}
html.reviewing .main>:is(.panel,footer.source,.boards){display:none!important}
html.reviewing .revstage{min-height:0;overflow:hidden;overscroll-behavior:contain}
html.reviewing .revstage[data-scroll]{overflow:auto}
html.reviewing .revfit{transform-origin:top left;width:100%}
html.reviewing main.page.revstage{padding:24px 32px}
/* The foot: what the reviewer is looking at, the frame switch, the item's end (the way on, then the ask) and the stepper. */
html.reviewing .revfoot{box-sizing:border-box;position:relative;z-index:var(--z-act);display:flex;align-items:center;gap:12px;height:var(--revfoot-h);padding:0 32px;border-top:1px solid var(--line);background:var(--bg)}
html.reviewing .revfoot .revsay{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
html.reviewing .revfoot .revsay b{margin-right:10px}
html.reviewing .revfoot .revend{display:flex;align-items:center;gap:12px;width:auto;max-width:none;flex:0 1 auto;min-width:0}
/* The item's ask floats over the stage, above the foot (FR-279): it is never cut off, and it grows upward as the person writes. */
html.reviewing .revfoot .revend>.roundask{position:absolute;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%);box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100vh - var(--revbar-h) - var(--revfoot-h) - 24px);overflow:auto;padding:0 10px;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--panel);box-shadow:0 12px 40px rgba(18,18,20,.14)}
html.reviewing .revfoot .revend-on .btn{max-width:min(48ch,46vw);min-width:0}
html.reviewing .revfoot .revend-on .btn>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.reviewing .revfoot :is([data-review-present],[data-review-prev],[data-rev-back]){flex:none}
html.reviewing .revfoot .revend-on{margin:0}
@media (max-width:760px){html.reviewing{--revbar-h:auto;--revfoot-h:auto}html.reviewing .pagehead.has-revbar{height:auto;padding:8px 16px}html.reviewing .revfoot{height:auto;flex-wrap:wrap;padding:8px 16px}html.reviewing .revfoot .revend>.roundask{max-height:60vh}html.reviewing .revfoot .revsay{flex-basis:100%;white-space:normal}}
html.reviewing .viewer.revstage .stagewrap{padding:16px 24px 12px}
html.reviewing .viewer.revstage>.screens{min-height:0}
/* A deck: one slide fitted whole inside the stage; its filmstrip and notes leave (its controls leave with the header),
   and the foot turns the slides. */
html.reviewing[data-review-kind=deck] .revstage{display:grid;place-items:center}
html.reviewing[data-review-kind=deck] .out-deck{width:100%}
html.reviewing[data-review-kind=deck] :is(.out-deck__list,.out-deck__notes){display:none!important}
html.reviewing[data-review-kind=deck] .out-deck__viewport{max-width:min(100%,calc((100vh - var(--revbar-h) - var(--revfoot-h) - 104px) * 16 / 9));margin:0 auto}
html.reviewing[data-review-kind=deck] .revfit{height:100%;display:flex;flex-direction:column;justify-content:center}
html.reviewing[data-review-kind=deck] .revfit>.out-deck{width:100%}
html.reviewing[data-review-kind=deck] .out-deck{margin:0}
/* The specification: one step per page, the journey's header above it. */
html.reviewing[data-review-kind=specification] .revstage>[data-review-page][hidden]{display:none!important}
html.reviewing[data-review-kind=specification] .revstage .pfsteps{display:block}
html.reviewing[data-review-kind=specification] .pfstep .body>ol.aclist>li[hidden],html.reviewing[data-review-kind=specification] .pfstep .body>ul.reqlist[hidden],html.reviewing[data-review-kind=specification] .pfstep .body>ol.aclist[hidden]{display:none!important}
/* The prototype: its frame fills the stage. */
html.reviewing[data-review-kind=prototype] .revstage{display:flex;flex-direction:column;padding:16px 32px}
html.reviewing[data-review-kind=prototype] .revframe{flex:1;min-height:0;height:auto;margin:0}
html.reviewing main.page.revstage{padding:16px 32px}
/* The start and finish pages (FR-278, FR-281): the items' frame. Their stage centres its content and, in a window too
   short for it, scrolls inside itself, so nothing is ever out of reach. */
html.reviewing .revstage.revflow{display:flex;overflow:auto}
html.reviewing .revflow>.revpage{margin:auto;width:100%;max-width:720px;padding:8px 0}
html.reviewing .revbar-title{display:inline;margin:0;font-size:inherit;line-height:inherit;letter-spacing:0}
.revslide{transition:opacity var(--settle) var(--ease)}
.revslide[data-arriving]{opacity:0}
.revslide .rows.flat{border:0}
.revslide>h2:first-child{margin-top:0}
.revslide :is(.qask,.roundask){font-size:18px}
html.reviewing .revfoot .btn.lg{font-size:13px;padding:5px 12px}
html.reviewing .revfoot .sendacts{display:flex;flex-direction:row-reverse;align-items:center;gap:8px;margin:0}
.sendpanel a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
.sendpanel a:hover{color:var(--ink)}
@media (max-width:760px){html.reviewing .revbar{flex-wrap:wrap;padding:6px 0}html.reviewing .revbar-where{flex:1 1 100%}html.reviewing .revbar-acts{flex:1 1 100%;min-width:0;flex-wrap:wrap;white-space:normal}}
/* ---------- the review's bars are its controls (FR-279): inverted, so the eye goes to the content between them ---------- */
html.reviewing :is(.pagehead.has-revbar,.revfoot){
  --bg:#121214;--panel:#1F1F22;--well:#2A2A2E;--ink:#F7F7F5;--ink-2:#D6D6D0;--ink-3:#A8A8AF;--ink-4:#85858D;--line:#323236;--line-2:#4A4A50;--focus:#9DB8FF;
  color-scheme:dark;background:var(--bg);color:var(--ink);border-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none
}
html.reviewing :is(.pagehead.has-revbar,.revfoot) .btn.dark:not(.revtip *){background:var(--ink);border-color:var(--ink);color:#121214}
html.reviewing :is(.pagehead.has-revbar,.revfoot) .btn.dark:not(.revtip *):hover{background:#FFFFFF;border-color:#FFFFFF}
html.reviewing :is(.pagehead.has-revbar,.revfoot) .btn.dark:not(.revtip *)[disabled]{background:var(--panel);border-color:var(--line);color:var(--ink-4)}
html.reviewing .revfoot .seg label:has(input:checked){background:var(--ink);color:#121214;box-shadow:none}
/* What floats from a bar belongs to the page: it keeps the page's light colours. */
html.reviewing :is(.revtip,.revfoot .roundask){
  --bg:#F7F7F5;--panel:#FFFFFF;--well:#F0F0EC;--ink:#121214;--ink-2:#4A4A52;--ink-3:#63636B;--ink-4:#85858D;--line:#E6E6E1;--line-2:#D6D6D0;--focus:#2F6FEB;
  color-scheme:light;color:var(--ink)
}
/* Close's confirm. */
dialog.revconfirm{box-sizing:border-box;width:min(440px,calc(100vw - 32px));padding:20px 22px;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--panel);color:var(--ink);box-shadow:0 12px 40px rgba(18,18,20,.24);transition:opacity var(--settle) var(--ease),translate var(--settle) var(--ease)}
dialog.revconfirm:is([data-arriving],[data-leaving]){opacity:0;translate:0 var(--lift)}
dialog.revconfirm::backdrop{background:rgba(18,18,20,.4)}
dialog.revconfirm h2{margin:0 0 8px;font-size:18px;letter-spacing:-.01em}
dialog.revconfirm p{margin:0 0 16px;color:var(--ink-2);line-height:1.5}
.revconfirm-acts{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
html.reviewing .revfoot .revend-on{gap:8px}
/* The screen sits in the middle of the stage; its caption gives its room to the screen. */
html.reviewing .viewer.revstage .stagewrap{flex:1;justify-content:center;min-height:0}
html.reviewing .viewer.revstage .stagewrap>.cap{display:none}
/* Comment shows when comment mode is on. */
html.reviewing .revbar [data-round-comment][aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
/* Pipeup draws the question and the comment bubbles: in a review they take the page's ink, through its documented options. */
html.reviewing{--pipeup-accent:#121214;--pipeup-ask-accent:#121214;--pipeup-ask-font:var(--sans);--pipeup-ask-radius:8px}
/* ---------- the navigation on a phone (FR-319): a bar with the product's mark and name, no toggle icon; tapping the mark opens every
   place as a sheet over the page (html[data-nav-sheet], app.js initNavSheet), groups open, and the mark closes it again.
   Collapsed or not, the sidebar is the same bar here: the collapse control is for wide screens. ---------- */
@media (max-width:760px){
  /* the bar is as tall as its row; on a short page the page, not the bar, takes the rest of the window */
  .frame,html[data-side=collapsed] .frame{grid-template-rows:auto minmax(0,1fr)}
  .side,html[data-side=collapsed] .side{position:sticky;top:0;z-index:var(--z-side);height:auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px;padding:calc(6px + env(safe-area-inset-top,0px)) 12px 6px;overflow:visible;border-right:0;border-bottom:1px solid var(--line);background:var(--bg)}
  .side>:not(.side-top),.side .footnav,html[data-side=collapsed] .side .footnav{display:none}
  .side-toggle{display:none}
  .side-top,html[data-side=collapsed] .side-top{flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-height:40px;margin:0;padding:0}
  .side-top>.brand,html[data-side=collapsed] .side-top>.brand{position:relative;flex:none;width:auto;height:auto;padding:4px 8px 4px 4px;border-radius:8px;cursor:pointer;transition:background-color var(--quick) var(--ease)}
  .side-top>.brand:is(:hover,:focus-visible),html[data-nav-sheet] .side-top>.brand{background:var(--well)}
  html[data-side=collapsed] .side :is(.lbl,.count,.brand>span:last-child){position:static;width:auto;height:auto;overflow:hidden;clip-path:none}
  /* no toggle icon on a phone: the mark and the name are the bar */
  .side-top>.brand .brandtoggle,html[data-side=collapsed] .side-top>.brand .brandtoggle{display:none}
  html[data-side=collapsed] .brand .mark{opacity:1}
  /* the sheet */
  html[data-nav-sheet] body{overflow:hidden}
  html[data-nav-sheet] .side{position:fixed;inset:0;overflow-y:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));border-bottom:0}
  html[data-nav-sheet] .side>.nav{display:flex}
  html[data-nav-sheet] .side>.navgroup{display:flex}
  html[data-nav-sheet] .side>.footnav{display:flex;flex-direction:column;margin-top:auto;padding-top:8px;border-top:1px solid var(--line)}
  html[data-nav-sheet] .side .nav,html[data-nav-sheet][data-side=collapsed] .side .nav{justify-content:flex-start;padding:9px 10px;font-size:15px}
  html[data-nav-sheet] .side .navitems .nav,html[data-nav-sheet][data-side=collapsed] .side .navitems .nav{padding-left:30px}
  html[data-nav-sheet] .side .navgroup[data-open] .navitems a.nav:not([aria-current]){display:flex}
  html[data-nav-sheet] .side .navhead .count{display:none}
  html[data-nav-sheet] .side .navhead .ico .si:first-child{opacity:1}
  html[data-nav-sheet] .side .navhead .ico .si:last-child{opacity:0}
  html[data-nav-sheet] .side{animation:navsheet-in var(--settle) var(--ease)}
  html[data-nav-leaving] .side{opacity:0;translate:0 calc(var(--lift) * 2);transition:opacity var(--settle) var(--ease),translate var(--settle) var(--ease)}
}
@keyframes navsheet-in{from{opacity:0;translate:0 calc(var(--lift) * 2)}}
/* On a phone, the path in the bar (FR-319, app.js initCrumbsBar): after a small separator, on one line; the product's
   name gives way to it (the path names the product), and a page head with nothing left in it closes up. */
.barcrumbs{display:none}
@media (max-width:760px){
  .side-top .barcrumbs{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;overflow:hidden}
  .side-top .barcrumbs::before{content:"";flex:none;width:1px;height:18px;background:var(--line-2)}
  .side-top .barcrumbs:empty{display:none}
  .barcrumbs nav{min-width:0}
  .barcrumbs .crumbs{flex-wrap:nowrap;white-space:nowrap;font-size:13px}
  html[data-crumbs-bar] .side .brand>span:last-child{display:none}
  html[data-crumbs-bar] .side-top>.brand{padding-right:4px}
  html[data-nav-sheet] .side-top .barcrumbs{display:none}
  html[data-nav-sheet][data-crumbs-bar] .side .brand>span:last-child{display:block}
  .pagehead[data-empty]{display:none}
}
