/* The industries beyond the six (tools/standalone/sectors.cjs): an opening, then a scene of its own for each page, set
   in type and line, held on screen while its steps pass (bodies-sectors.js), then the ending. Without the scripts, or
   with reduced motion, every step reads down the page and every piece of the drawing stands as it ends. */
.b-sx { --ink: #11151b; --soft: #3f4954; --rule: rgba(13, 17, 23, .18); --paper: #ffffff; --mark: #b8303f; }
[data-tone="dark"] .b-sx { --ink: #eef1f4; --soft: #b4bcc4; --rule: rgba(236, 240, 244, .16); --paper: #11161d; --mark: #e0586b; }
[data-topic="banking"], [data-topic="hospitality"] { --b-bg: #080b10; }
[data-topic="construction"], [data-topic="insurance"] { --b-bg: #0a0d12; }

.s-open { --col: max(var(--gutter), (100% - 1240px) / 2); padding: 24vh var(--col) 14vh; }
.s-open .b-lede { max-width: 19ch; margin: 0; text-align: left; color: var(--ink); }
.s-open .b-p { max-width: 46ch; margin: 6vh 0 0 auto; color: var(--soft); }
.b-sx[data-scene="contract"] .s-open .b-lede, .b-sx[data-scene="tower"] .s-open .b-lede { margin-left: auto; text-align: right; }
.b-sx[data-scene="contract"] .s-open .b-p, .b-sx[data-scene="tower"] .s-open .b-p { margin-left: 0; }

.s-scene { --col: max(var(--gutter), (100% - 1320px) / 2); position: relative; display: grid; align-items: center; column-gap: 6vw; row-gap: 7vh; padding: 10vh var(--col); color: var(--ink); }
.s-scene .s-stage { position: relative; }
.s-step { padding: 4vh 0; }
.s-tag { font: italic 400 clamp(19px, 1.4vw, 24px)/1.2 "Instrument Serif", Georgia, serif; color: var(--soft); }
.s-step h3 { margin-top: 1.4vh; max-width: 14ch; font: 200 clamp(34px, 3.4vw, 60px)/1.04 var(--sys-display); letter-spacing: -.014em; text-wrap: balance; }
.s-desc { max-width: 40ch; margin-top: 3vh; font: 400 clamp(17px, 1.2vw, 20px)/1.55 var(--sys-body); color: var(--soft); text-wrap: pretty; }
/* held on screen: the steps stand in one place, each brought in and put away by the scroll */
.bodies-live .s-scene { min-height: 100svh; }
.bodies-live .s-words { display: grid; }
.bodies-live .s-step { grid-area: 1 / 1; padding: 0; }

/* the layouts: the drawing beside the words (left or right), or above them */
.s-file, .s-vault, .s-facade { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.s-contract, .s-tower { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.s-contract .s-stage, .s-tower .s-stage { order: 2; }
.s-close, .s-claim, .s-network { grid-template-columns: minmax(0, 1fr); align-content: center; }
.s-close .s-words, .s-claim .s-words, .s-network .s-words { max-width: 760px; }
.s-claim .s-words { justify-self: end; }

.s-item { transition: opacity .5s var(--sys-ease), transform .8s var(--sys-ease), background-color .5s var(--sys-ease), color .4s var(--sys-ease), box-shadow .5s var(--sys-ease); }

/* Real estate: the transaction file. Each document lands on the stack, and is marked reviewed once the next arrives */
.s-file .s-stage { height: 64vh; }
.s-doc { --w: min(330px, 25vw); position: absolute; left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) * .65); width: var(--w); aspect-ratio: 8.5 / 11; padding: calc(var(--w) * .09); border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); box-shadow: 0 22px 44px -26px rgba(8, 12, 18, .45);
  transform: translate(calc(var(--i) * 16px), calc(var(--i) * -14px)) rotate(calc(var(--i) * 1.6deg - 2.4deg)); }
.s-doc[data-k="1"] { --i: 1; } .s-doc[data-k="2"] { --i: 2; } .s-doc[data-k="3"] { --i: 3; } .s-doc[data-k="0"] { --i: 0; }
.s-doc-name { display: block; margin-bottom: calc(var(--w) * .07); font: 400 clamp(15px, 1.1vw, 18px)/1.2 var(--sys-body); color: var(--ink); }
.s-doc i { display: block; height: 5px; margin-top: calc(var(--w) * .05); border-radius: 3px; background: var(--rule); }
.s-doc i:nth-of-type(2) { width: 86%; } .s-doc i:nth-of-type(3) { width: 92%; } .s-doc i:nth-of-type(4) { width: 58%; }
.s-doc-ok { position: absolute; right: calc(var(--w) * .09); bottom: calc(var(--w) * .09); font: italic 400 18px/1 "Instrument Serif", Georgia, serif; color: var(--mark); }
.s-doc-ok::before { content: "✓ "; font-style: normal; }
.bodies-live .s-doc:not(.is-on) { opacity: 0; transform: translate(calc(var(--i) * 16px), calc(var(--i) * -14px + 70px)) rotate(calc(var(--i) * 1.6deg - 2.4deg)); }
.bodies-live .s-doc:not(.is-past) .s-doc-ok { opacity: 0; }
.s-doc-ok { transition: opacity .4s var(--sys-ease); }

/* Construction: the tower. A floor rises for each phase, and the phase in hand is marked */
.s-tower .s-stage { height: 70vh; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); }
.s-floor { width: min(420px, 78%); height: 13vh; display: flex; align-items: center; padding: 0 22px; border: 1px solid var(--rule); border-radius: 2px; background: rgba(236, 240, 244, .03); font: 300 clamp(16px, 1.2vw, 20px)/1 var(--sys-display); color: var(--soft); }
.s-floor.is-on:not(.is-past) { box-shadow: inset 3px 0 0 var(--mark); color: var(--ink); background: rgba(236, 240, 244, .07); }
.bodies-live .s-floor:not(.is-on) { opacity: 0; transform: translateY(-36px); }

/* Legal: the contract. The clause in hand is marked in the margin as its review is read */
.s-contract .s-stage { padding: 6vh 4vw; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); box-shadow: 0 30px 60px -40px rgba(8, 12, 18, .35); }
.s-clause { position: relative; display: block; padding: 1.7vh 0; border-bottom: 1px solid var(--rule); font: 300 clamp(18px, 1.45vw, 24px)/1.2 var(--sys-display); color: var(--ink); }
.s-clause:last-child { border-bottom: 0; }
.s-num { display: inline-block; width: 2.2em; color: var(--soft); font-variant-numeric: tabular-nums; }
.bodies-live .s-clause { color: rgba(17, 21, 27, .32); }
.s-clause::before { content: ""; position: absolute; left: -2vw; top: 1.4vh; bottom: 1.4vh; width: 2px; background: var(--mark); opacity: 0; transform: scaleY(.3); transition: opacity .4s var(--sys-ease), transform .6s var(--sys-ease); }
.bodies-live .s-clause.is-on { color: var(--ink); }
.bodies-live .s-clause.is-on::before { opacity: 1; transform: none; }

/* Accounting: the close. Ten working days; the days of the task in hand fill, the days done are checked */
.s-close .s-stage { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.s-day { position: relative; height: 15vh; min-height: 96px; padding: 14px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); }
.s-day-n { font: 200 clamp(24px, 2.2vw, 40px)/1 var(--sys-display); font-variant-numeric: tabular-nums; }
.s-day::after { content: "✓"; position: absolute; right: 12px; bottom: 10px; font: 400 16px/1 var(--sys-body); color: var(--mark); opacity: 0; transition: opacity .4s var(--sys-ease); }
.bodies-live .s-day.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bodies-live .s-day.is-past::after { opacity: 1; }
.bodies-live .s-day.is-past { color: var(--soft); }

/* Banking: the layers of access, from the branches in to the vault; the layer in hand is lit, the ones passed open */
.s-vault .s-stage { height: min(64vh, 40vw); aspect-ratio: 1; justify-self: center; }
.s-ring { position: absolute; border: 1px solid var(--rule); border-radius: 4px; padding: 12px 16px; }
.s-ring[data-k="0"] { inset: 0; } .s-ring[data-k="1"] { inset: 12%; } .s-ring[data-k="2"] { inset: 24%; } .s-ring[data-k="3"] { inset: 36%; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.s-ring-name { font: italic 400 clamp(15px, 1.1vw, 19px)/1 "Instrument Serif", Georgia, serif; color: var(--soft); }
.bodies-live .s-ring.is-on { border-color: var(--mark); box-shadow: 0 0 0 1px var(--mark), 0 0 40px -12px var(--mark); }
.bodies-live .s-ring.is-on .s-ring-name { color: var(--ink); }
.bodies-live .s-ring.is-past { opacity: .32; }

/* Insurance: the claim's path. The claim travels the line, stage by stage */
.s-claim .s-stage { container-type: inline-size; height: 16vh; margin: 0 4vw; }
.s-line { position: absolute; left: 0; right: 0; top: 30%; height: 1px; background: var(--rule); }
.s-line::after { content: ""; position: absolute; inset: 0; background: var(--mark); transform-origin: 0 50%; transform: scaleX(calc(var(--at, 3) / 3)); transition: transform .9s var(--sys-ease); }
.s-dot { position: absolute; left: 0; top: 30%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 24px var(--mark); transform: translateX(calc(var(--at, 3) * 100cqw / 3)); transition: transform .9s var(--sys-ease); }
.s-stop { position: absolute; top: 30%; width: 0; }
.s-stop[data-k="0"] { left: 0; } .s-stop[data-k="1"] { left: 33.333%; } .s-stop[data-k="2"] { left: 66.667%; } .s-stop[data-k="3"] { left: 100%; }
.s-stop::before { content: ""; position: absolute; left: -6px; top: -6px; width: 11px; height: 11px; border: 1px solid var(--soft); border-radius: 50%; background: var(--b-bg, #0a0d12); }
.s-stop span { position: absolute; top: 26px; left: 0; translate: -50% 0; white-space: nowrap; font: italic 400 clamp(17px, 1.3vw, 22px)/1 "Instrument Serif", Georgia, serif; color: var(--soft); }
.s-stop[data-k="0"] span { translate: 0 0; } .s-stop[data-k="3"] span { translate: -100% 0; }
.bodies-live .s-stop.is-on span { color: var(--ink); }

/* Retail: one operation, every store. Head office, then the distribution centres, then the stores light; last, the
   line back from every location */
.s-network .s-stage { display: flex; justify-content: space-between; align-items: center; height: 26vh; margin: 0 4vw; }
.s-col { position: relative; display: grid; gap: 14px; justify-items: center; }
.s-col:nth-child(3) { grid-template-columns: repeat(4, auto); gap: 16px 22px; }
.s-col::after { content: attr(data-name); position: absolute; top: calc(100% + 18px); left: 50%; translate: -50% 0; white-space: nowrap; font: italic 400 clamp(17px, 1.3vw, 22px)/1 "Instrument Serif", Georgia, serif; color: var(--soft); }
.s-node { width: 16px; height: 16px; border: 1px solid var(--soft); border-radius: 50%; }
.s-col:first-child .s-node { width: 26px; height: 26px; }
.bodies-live .s-node.is-on, html:not(.bodies-live) .s-node { background: var(--mark); border-color: var(--mark); box-shadow: 0 0 18px -4px var(--mark); }
.s-back { position: absolute; left: 0; right: 0; bottom: -4vh; height: 1px; background: var(--mark); transform-origin: 100% 50%; }
.bodies-live .s-back:not(.is-on) { transform: scaleX(0); }

/* Hospitality: the group's properties at night; with each step more windows are lit */
.s-facade .s-stage { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 12px; width: min(440px, 100%); justify-self: center; }
.s-win { aspect-ratio: 3 / 4; border: 1px solid rgba(236, 240, 244, .1); border-radius: 2px; background: rgba(236, 240, 244, .03); }
.bodies-live .s-win.is-on, html:not(.bodies-live) .s-win { background: linear-gradient(rgba(255, 214, 150, .78), rgba(232, 156, 92, .55)); border-color: rgba(255, 200, 130, .35); box-shadow: 0 0 18px -8px rgba(255, 180, 100, .6); }


/* All industries' opening: every word in the open sky above the city, close together, on a soft dark ground of its own */
[data-topic="industries-all"] .t-hero-text { top: 10vh; }
[data-topic="industries-all"] .t-title { font-size: clamp(56px, 6vw, 112px); }
[data-topic="industries-all"] .t-statement { margin-top: .3em; font-size: clamp(24px, 2.3vw, 42px); }
[data-topic="industries-all"] .t-line { margin-top: 14px; }
@media (max-width: 760px) { [data-topic="industries-all"] .t-hero-text { top: 12vh; } [data-topic="industries-all"] .t-title { font-size: clamp(44px, 12vw, 56px); } }

/* All industries: each family under its name, centred; every industry a card of its own painting with its name and who
   it is for. A family's cards come up together as it is reached (bodies-sectors.js), on the compositor */
.b-sx-all { --col: max(var(--gutter), (100% - 1320px) / 2); padding: 16vh var(--col) 2vh; color: var(--sys-text); }
.s-fam { padding: 0 0 14vh; text-align: center; }
.s-fam-h { margin: 0 0 5vh; font: italic 400 clamp(28px, 2.6vw, 44px)/1.1 "Instrument Serif", Georgia, serif; color: #e9ecef; }
.s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: center; gap: 22px; margin: 0; padding: 0; list-style: none; text-align: left; }
.s-cards:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 880px); margin: 0 auto; }
.s-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 22px; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 3px; background: #0b0d10; color: #fff; text-decoration: none; }
.s-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 11, 0) 38%, rgba(5, 7, 11, .82)); }
.s-card-name, .s-card-for { position: relative; z-index: 1; }
.s-card-name { font: 200 clamp(24px, 1.9vw, 34px)/1.05 var(--sys-display); letter-spacing: -.01em; }
.s-card-for { font: 400 14px/1.35 var(--sys-body); color: #c3cad1; }
/* (the answer to the pointer comes at once; only the way back is eased) */
.s-fam.is-landed .s-card:hover img, .s-fam.is-landed .s-card:focus-visible img { transform: scale(1.04); transition-duration: .5s; }
.s-card:focus-visible { outline: 2px solid #87c8e7; outline-offset: 4px; }
/* (a family comes in as it is reached: its name first, then its cards one after another, each rising while its painting
   settles from a little closer and its name and line follow it up. Transform and opacity only, each card on its own
   layer only while it moves) */
.bodies-live .s-fam:not(.is-in) .s-fam-h { opacity: 0; transform: translateY(18px); }
.bodies-live .s-fam:not(.is-in) .s-cards > li { opacity: 0; transform: translateY(48px); }
.bodies-live .s-fam:not(.is-in) .s-card img { transform: scale(1.14); }
.bodies-live .s-fam:not(.is-in) :is(.s-card-name, .s-card-for) { opacity: 0; transform: translateY(14px); }
.s-fam-h { transition: opacity .9s var(--sys-ease), transform 1.1s var(--sys-ease); }
.s-cards > li { --d: calc(var(--i, 0) * 110ms + 160ms); transition: opacity .9s var(--sys-ease) var(--d), transform 1.3s cubic-bezier(.16, 1, .3, 1) var(--d); }
.s-fam.is-in .s-card img { transition: transform 1.8s cubic-bezier(.16, 1, .3, 1) var(--d); }
.s-card-name { transition: opacity .7s var(--sys-ease) calc(var(--d) + .35s), transform .9s var(--sys-ease) calc(var(--d) + .35s); }
.s-card-for { transition: opacity .7s var(--sys-ease) calc(var(--d) + .48s), transform .9s var(--sys-ease) calc(var(--d) + .48s); }
.s-fam.is-landed .s-card img { transition: transform .9s var(--sys-ease); }

@media (max-width: 760px) {
  .s-open { padding: 16vh var(--gutter) 8vh; }
  .s-open .b-lede, .b-sx[data-scene] .s-open .b-lede { margin: 0; text-align: left; font-size: clamp(30px, 8.4vw, 36px); }
  .s-open .b-p, .b-sx[data-scene] .s-open .b-p { margin: 4vh 0 0; font-size: 16px; }
  .s-scene, .bodies-live .s-scene { display: block; min-height: 0; padding: 0 var(--gutter) 4vh; }
  .s-scene .s-stage { display: none; }
  .bodies-live .s-words { display: block; }
  .s-step, .bodies-live .s-step { padding: 4vh 0; border-top: 1px solid var(--rule); }
  .s-step h3 { max-width: none; font-size: clamp(28px, 8vw, 36px); }
  .s-desc { font-size: 16px; }
  .b-sx-all { padding: 10vh var(--gutter) 2vh; }
  .s-fam { padding-bottom: 9vh; }
  .s-cards, .s-cards:has(> li:nth-child(2):last-child) { grid-template-columns: 1fr; width: auto; gap: 14px; }
  .s-card { padding: 18px; }
  .s-card-name { font-size: 26px; }
}

/* Real estate: the brokerage's own system, as Acme Corp. would have it, drawn the way DX Sidekick and the Zedstar page
   draw software (with DX Sidekick's sharper Mission values of 2026-12-02: rim .14, highlight .15, lines .12, fg-3
   #9ba7bd, a deeper shadow, small labels at 500, icon strokes 1.8) (Mission: navy glass, a floating sidebar, the crimson marker, pill tabs; Geist and Newsreader from
   assets/zedstar/fonts.css). It is laid out at 960 by 600 and scaled to its place (--k, bodies-sectors.js). The tab in
   hand is lit and its screen shown; each screen's own moment (the lead finding its agent, the reminder, the flag) plays
   as the screen comes on. */
.s-app { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.s-app .s-stage { aspect-ratio: 960 / 600; }
.ap { --k: 1; position: absolute; left: 0; top: 0; width: 960px; height: 600px; transform: scale(var(--k)); transform-origin: 0 0;
  --fg: #eef2f8; --fg-2: #cdd4df; --fg-3: #9ba7bd; --line: rgba(255, 255, 255, .12); --rim: rgba(255, 255, 255, .14); --control: rgba(255, 255, 255, .06); --control-line: rgba(255, 255, 255, .13);
  --accent: #e04a5c; --accent-text: #ff8b98; --button: #c9384c; --ice: #9fb8d8; --ok: #8fd0b0;
  color: var(--fg); font: 400 13px/1.35 Geist, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-align: left; }
.ap p { margin: 0; }
.ap-win { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; background: radial-gradient(70% 80% at 70% 0%, rgba(69, 118, 217, .22), transparent 60%), radial-gradient(60% 70% at 100% 100%, rgba(184, 50, 75, .18), transparent 60%), #05080e; box-shadow: 0 50px 90px -40px rgba(4, 8, 16, .75), 0 0 0 1px rgba(255, 255, 255, .06); }
.ap-glass { position: relative; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 40%), rgba(10, 15, 26, .55); box-shadow: inset 0 0 0 1px var(--rim), inset 0 1.5px 0 rgba(255, 255, 255, .15), 0 16px 36px -18px rgba(0, 0, 0, .9), 0 1px 2px rgba(0, 0, 0, .45); }
.ap-glass::after { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent 4%, rgba(224, 74, 92, .85) 26%, rgba(255, 255, 255, .9) 50%, rgba(111, 140, 181, .9) 74%, transparent 96%); }
.ap-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--fg-3); }

/* the sidebar */
.ap-side { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 236px; padding: 14px 10px; }
.ap-brand { display: flex; align-items: center; gap: 10px; height: 20px; padding: 0 4px; }
.ap-brand img { width: 74px; height: auto; }
.ap-brand i { width: 1px; height: 16px; background: rgba(255, 255, 255, .17); }
.ap-brand span { font-weight: 500; color: var(--fg-2); }
.ap-lab { margin-top: 22px !important; padding: 0 4px; font-size: 11px; font-weight: 500; color: var(--fg-3); }
.ap-org { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 0; font: 400 20px/1.2 Newsreader, Georgia, serif; }
.ap-org .ap-i { width: 14px; height: 14px; }
.ap-search { display: flex; align-items: center; gap: 8px; height: 34px; margin-top: 16px !important; padding: 0 8px 0 10px; border-radius: 10px; background: var(--control); box-shadow: inset 0 0 0 1px var(--control-line); color: var(--fg-3); }
.ap-search .ap-i { width: 14px; height: 14px; }
.ap-search span { flex: 1; }
.ap-search kbd { min-width: 16px; height: 18px; padding: 0 4px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17), 0 1px 0 rgba(255, 255, 255, .17); font: 500 10px/18px "Geist Mono", ui-monospace, monospace; text-align: center; }
.ap-nav { position: relative; margin-top: 18px; }
.ap-lit { position: absolute; left: 0; right: 0; top: 0; height: 38px; border-radius: 10px; background: var(--control); box-shadow: inset 0 0 0 1px var(--control-line); transform: translateY(calc(var(--at, 0) * 40px)); transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
.ap-row { position: relative; display: flex; align-items: center; gap: 12px; height: 38px; margin-bottom: 2px !important; padding: 0 12px; color: var(--fg-2); }
.ap-row b { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--control); font: 600 11px/20px Geist, sans-serif; text-align: center; color: var(--fg-2); }
.ap-row b.is-hot { background: var(--button); color: #fff; }
.ap-row.is-on { color: var(--fg); font-weight: 500; }
.ap-row.is-on .ap-i { color: var(--accent); }
.ap-me { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ap-me b { width: 30px; height: 30px; border-radius: 50%; background: rgba(159, 184, 216, .22); font: 600 11px/30px Geist, sans-serif; text-align: center; }
.ap-me span { font-weight: 500; }
.ap-me small { display: block; font-size: 12px; font-weight: 500; color: var(--fg-3); }

/* the page in hand */
.ap-main { position: absolute; left: 264px; right: 18px; top: 18px; bottom: 18px; }
.ap-screen { position: absolute; inset: 0; }
.bodies-live .s-app .ap-screen:not(.is-on) { opacity: 0; transform: translateY(10px); pointer-events: none; }
.ap-screen { transition: opacity .45s var(--sys-ease), transform .6s var(--sys-ease); }
.ap-ctx { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--fg-3); }
.ap-ctx i { width: 3px; height: 12px; border-radius: 2px; background: var(--accent); }
.ap-title { margin-top: 6px !important; font: 400 30px/1.1 Newsreader, Georgia, serif; letter-spacing: -.01em; }
.ap-desc { margin-top: 4px !important; font-weight: 500; color: var(--fg-3); }
.ap-tabs { display: flex; gap: 4px; margin-top: 14px !important; }
.ap-tabs span { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--fg-3); }
.ap-tabs span.is-on { background: var(--control); box-shadow: inset 0 0 0 1px var(--control-line); color: var(--fg); }
.ap-cols { position: absolute; left: 0; right: 0; top: 150px; bottom: 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.ap-cols.is-split { grid-template-columns: 1fr 1.35fr; }
.ap-pill, .ap-ok, .ap-warn, .ap-to { padding: 3px 9px; border-radius: 999px; font-size: 11px; }
.ap-pill { background: var(--control); color: var(--fg-2); }
.ap-ok { background: rgba(143, 208, 176, .14); color: var(--ok); }
.ap-warn { background: rgba(224, 74, 92, .18); color: var(--accent-text); }
.ap-to { color: var(--ice); padding-left: 0; }
.ap-list { padding: 8px 14px; }
.ap-li { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.ap-li:last-child { border-bottom: 0; }
.ap-li b { font-weight: 500; margin-right: auto; }
.ap-li > span:not([class]) { color: var(--fg-3); font-size: 12px; font-weight: 500; }
.ap-li.is-open { margin: 0 -8px; padding: 0 8px; border-radius: 10px; background: var(--control); box-shadow: inset 0 0 0 1px var(--control-line); }

/* Leads: the territories; the new lead travels to its agent's area */
.ap-map { padding: 12px; }
.ap-map svg { width: 100%; height: auto; }
.ap-zone { fill: rgba(159, 184, 216, .06); stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.ap-zone.is-hit { fill: rgba(224, 74, 92, .16); stroke: rgba(224, 74, 92, .6); }
.ap-pin { fill: var(--fg-3); }
.ap-lead { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.ap-chip { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(224, 74, 92, .18); font-size: 11px; color: var(--accent-text); }
.ap-li.is-new { animation: none; }
.bodies-live .ap-screen[data-k="0"] .ap-lead { transform: translate(-150px, 150px); transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) .35s; }
.bodies-live .ap-screen[data-k="0"].is-on .ap-lead { transform: none; }
.bodies-live .ap-screen[data-k="0"] .ap-li.is-new { opacity: 0; transform: translateY(-8px); transition: opacity .4s ease 1.2s, transform .5s ease 1.2s; }
.bodies-live .ap-screen[data-k="0"].is-on .ap-li.is-new { opacity: 1; transform: none; }

/* Deals: the contract's dates, the next one due lit; the reminder slides in */
.ap-deal { position: absolute; left: 0; right: 0; top: 150px; padding: 20px 22px 26px; }
.ap-deal-h { display: flex; justify-content: space-between; align-items: baseline; }
.ap-deal-h b { font: 400 22px/1.2 Newsreader, Georgia, serif; }
.ap-deal-h span { color: var(--fg-3); font-size: 12px; font-weight: 500; }
.ap-time { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 34px; }
.ap-time::before { content: ""; position: absolute; left: 10%; right: 10%; top: 7px; height: 1px; background: rgba(255, 255, 255, .16); }
.ap-stop { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; font-size: 12px; color: var(--fg-3); }
.ap-stop i { width: 15px; height: 15px; border-radius: 50%; background: #0a0f1a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.ap-stop.is-done i { background: var(--ice); box-shadow: none; }
.ap-stop.is-due { color: var(--fg); font-weight: 500; }
.ap-stop.is-due i { background: var(--accent); box-shadow: 0 0 0 5px rgba(224, 74, 92, .2), 0 0 16px var(--accent); }
.ap-stop b { padding: 3px 9px; border-radius: 999px; background: rgba(224, 74, 92, .18); color: var(--accent-text); font-size: 11px; font-weight: 500; }
.ap-toast { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.ap-toast .ap-i { color: var(--accent); }
.bodies-live .ap-screen[data-k="1"] .ap-toast { opacity: 0; transform: translateY(14px); transition: opacity .4s ease .9s, transform .6s cubic-bezier(.22, 1, .36, 1) .9s; }
.bodies-live .ap-screen[data-k="1"].is-on .ap-toast { opacity: 1; transform: none; }

/* Compliance: the file open beside the queue, one document missing */
.ap-file, .ap-copy, .ap-note { padding: 18px 20px; }
.ap-file-h { margin-bottom: 10px !important; font: 400 18px/1.2 Newsreader, Georgia, serif; }
.ap-doc { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ap-doc .ap-i { width: 15px; height: 15px; color: var(--ok); }
.ap-doc.is-miss { color: var(--fg); }
.ap-doc.is-miss .ap-i { color: var(--accent); }
.ap-doc em { flex-basis: 100%; padding-left: 25px; font-style: normal; font-size: 11px; color: var(--accent-text); }
.ap-btns { display: flex; gap: 8px; margin-top: 16px !important; }
.ap-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--control); box-shadow: inset 0 0 0 1px var(--control-line); font-size: 12px; font-weight: 500; color: var(--fg-2); }
.ap-btn.is-main { background: var(--button); box-shadow: none; color: #fff; }
.ap-btn .ap-i { width: 13px; height: 13px; color: #fff; }
.bodies-live .ap-screen[data-k="2"] .ap-doc.is-miss { opacity: 0; transition: opacity .5s ease .7s; }
.bodies-live .ap-screen[data-k="2"].is-on .ap-doc.is-miss { opacity: 1; }

/* Listings: the phrase marked as the review reads it, the suggestion beside it */
.ap-text { font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.ap-text mark { color: var(--fg); background: linear-gradient(transparent 88%, var(--accent) 88%) no-repeat 0 0 / 100% 100%; }
.bodies-live .ap-screen[data-k="3"] .ap-text mark { background-size: 0 100%; transition: background-size .8s cubic-bezier(.65, 0, .35, 1) .6s; }
.bodies-live .ap-screen[data-k="3"].is-on .ap-text mark { background-size: 100% 100%; }
.ap-note-h { display: flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 500; }
.ap-note-h .ap-i { color: var(--accent); }
.ap-note-p { margin-top: 10px !important; color: var(--fg-2); }
.ap-note-s { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); }
.ap-note-s span { display: block; margin-top: 6px; font-size: 13px; color: var(--fg); }

/* Ask: the question, the answer with its source */
.ap-chat { position: absolute; left: 0; right: 0; top: 150px; bottom: 0; padding: 22px; }
.ap-q { width: fit-content; max-width: 70%; margin-left: auto !important; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: rgba(159, 184, 216, .16); }
.ap-a { max-width: 80%; margin-top: 16px !important; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: var(--control); box-shadow: inset 0 0 0 1px var(--control-line); line-height: 1.5; color: var(--fg-2); }
.ap-src { display: flex; align-items: center; gap: 7px; width: fit-content; margin-top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(159, 184, 216, .14); font-size: 11px; color: var(--ice); }
.ap-src .ap-i { width: 13px; height: 13px; color: var(--ice); }
.ap-ask { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(10, 15, 26, .5); box-shadow: inset 0 0 0 1px var(--control-line); color: var(--fg-3); }
.bodies-live .ap-screen[data-k="4"] .ap-a { opacity: 0; transform: translateY(8px); transition: opacity .45s ease .8s, transform .6s cubic-bezier(.22, 1, .36, 1) .8s; }
.bodies-live .ap-screen[data-k="4"].is-on .ap-a { opacity: 1; transform: none; }

/* on a phone, each step shows its own screen above its words, still */
.s-step .s-shot { position: relative; aspect-ratio: 700 / 600; margin-bottom: 3vh; overflow: hidden; border-radius: 12px; }
/* (the screen alone, without the sidebar, so it is drawn larger on a narrow screen) */
.s-shot .ap { width: 700px; }
.s-shot .ap-side { display: none; }
.s-shot .ap-main { left: 18px; }
.s-step .s-shot .ap-screen:not(.is-on) { display: none; }
@media (min-width: 761px) { .s-step .s-shot { display: none; } }
