/* Illustration polish (hub #1345, 11 Nov 2026). Loaded after canvas.css and shape.css on / and /sena. */

/* ---- 1. Phone scenes composed like Diksha's: the phone leans, the receipt tucks under it,
        the stamp sits across the seam and the tag pins to the phone's corner. ---- */
.cvs.cvs .c-phone { --r: 0deg; transform: rotate(var(--r)); }
.cvs.cvs .c-phone.c-up { --an: upr; }
.cvs.cvs .c-paper { z-index: 1; }
.cvs.cvs .c-tag.c-tpin { z-index: 4; background: var(--card); }
/* the shared photo leans too, its tag hangs over the frame's edge */
.cvs.cvs .c-phf.c-tilt { --r: 0deg; transform: rotate(var(--r)); overflow: visible; }
.cvs.cvs .c-phf.c-tilt.c-up { --an: upr; }
.cvs.cvs .c-phf.c-tilt img { border-radius: inherit; }
.cvs.cvs .c-phf.c-tilt .c-ptag2 { left: calc(-12 * var(--u)); top: calc(14 * var(--u)); z-index: 2; }

/* ---- 2. No label under 11px on desktop (rule: art direction doc 2, §4). Generated from every
        scene rule in canvas.css that sets a smaller size; the scene unit still scales them up.
        Phones get their own layouts later (hub #1345, stage 5), so the floor starts at 1024px. ---- */
@media (min-width: 1024px) {
.cvs.cvs .c-ic{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-st{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-lb{font-size:max(11px,calc(9.8*var(--u)))}
.cvs.cvs .c-chip{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-tb{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-tb>.c-th{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-tag{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-seg{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-kv{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-cd.c-ghost b{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-cd.c-ghost .c-st{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-cd.c-task .c-st{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-hl{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-qrow.c-qh .c-lb{font-size:max(11px,calc(9.3*var(--u)))}
.cvs.cvs .c-ab{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-knob{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-flag{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-bw span{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-sb{font-size:max(11px,calc(8.5*var(--u)))}
.cvs.cvs .c-shr{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-phone .c-kv{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-phone .c-st{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-nums em{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-src{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-sl{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-chip.c-city{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-fl b{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-fl em{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-fl .c-ic.c-fx,.cvs.cvs .c-ovr .c-ic.c-fx{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-ovr{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-opt{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-lr{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-ptag{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-ict{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-stamp.c-tm{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-capm b{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-mt{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-qm{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-qt{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-tvA i{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-tvB span{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-tvB i{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-tvD .c-more{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-tvE em{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-cur span{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-qt{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-sena-b i{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-sena-b b{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-sena-b em{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-sena-c i{font-size:max(11px,calc(8.5*var(--u)))}
.cvs.cvs .c-sena-c em{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-sena-d b{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-sena-d em{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-sena-e em{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-sv i{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-sv.c-mini i{font-size:max(11px,calc(7*var(--u)))}
.cvs.cvs .c-sena-f .c-pl{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-sena-f em{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-sena-g>span{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-sena-h>span{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-sena-h em{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-sena-h .c-okc{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-chipw{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-chipw em{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-tv b{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-sena-j em,.cvs.cvs .c-sena-m em,.cvs.cvs .c-sena-o em,.cvs.cvs .c-sena-k em{font-size:max(11px,calc(9*var(--u)))}
.cvs.cvs .c-bub{font-size:max(11px,calc(9.5*var(--u)))}
.cvs.cvs .c-rx{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-av41{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-ict{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-edgev .c-seg button{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-lockov em{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-enote{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-eth b{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-eax{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-sval{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-sctl{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-sres{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-cal .c-cm{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-cal em{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-lane{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-ckp{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-ptag2{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-ch{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-det2 span{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-cause{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-met{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-sbadge{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-term{font-size:max(11px,calc(11*var(--u)))}
.cvs.cvs .c-term .c-tb span{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-vb{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-vsb{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-more2{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-vsc .c-stamp.c-st2{font-size:max(11px,calc(10.5*var(--u)))}
.cvs.cvs .c-ptag2{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-ghostb+.c-p.c-st{font-size:max(11px,calc(10*var(--u)))}
.cvs.cvs .c-qcnt{font-size:max(11px,calc(10.5*var(--u)))}
  /* SVG text is sized in the drawing's own units: lift it where the drawing is shrunk */
  .cvs.cvs.cvs-layers-2 svg text { font-size: 13.5px; }
  .cvs.cvs.cvs-gap-2 svg text, .cvs.cvs.cvs-changes-2 svg text { font-size: 11px; }
  .cvs.cvs.cvs-meet-3 svg text { font-size: 11px; }
}

/* ---- One phone for every scene (Vlad, 11 Nov): iPhone 17 Pro proportions (71.9 × 150 mm),
        status bar with the Dynamic Island, an app header, a tab bar and the home indicator.
        Everything inside is sized from the phone's own width (cqw), so it reads the same
        wherever the phone stands. The phone is a physical object: it keeps its round corners. ---- */
.cvs.cvs .c-phone.c-ip {
  height: auto !important; aspect-ratio: 71.9 / 150; container-type: inline-size;
  padding: calc(3.6 * var(--u)); border-radius: 17% / 8.15%; background: #0B0F0E; border: 1px solid #3A4441;
  box-shadow: 0 0 0 calc(1.8 * var(--u)) #1E2523 inset;
}
.cvs.cvs .c-ip .c-scr {
  position: relative; height: 100%; box-sizing: border-box; border-radius: 14.5cqw;
  padding: 0 5.5cqw 0; gap: 3.2cqw; display: flex; flex-direction: column;
  background: var(--card); color: var(--fg); overflow: hidden;
}
.cvs.cvs .c-ip .c-isb { position: relative; display: flex; align-items: center; justify-content: space-between; height: 12.5cqw; padding: 1.6cqw 2.5cqw 0; font-weight: 600; flex: none; }
.cvs.cvs .c-ip .c-itime { font-size: max(11px, 8.4cqw); letter-spacing: -.01em; }
.cvs.cvs .c-ip .c-idi { position: absolute; left: 50%; top: 2.6cqw; width: 30cqw; height: 8.6cqw; margin-left: -15cqw; border-radius: 99px; background: #050707; }
.cvs.cvs .c-ip .c-istat { display: flex; align-items: center; gap: 1.6cqw; }
.cvs.cvs .c-ip .c-istat svg { display: block; height: 5.6cqw; width: auto; fill: currentColor; }
.cvs.cvs .c-ip .c-ibat { position: relative; display: block; width: 9.5cqw; height: 4.8cqw; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 1.4cqw; box-sizing: border-box; padding: .7cqw; }
.cvs.cvs .c-ip .c-ibat b { display: block; height: 100%; width: 78%; background: currentColor; border-radius: .7cqw; }
.cvs.cvs .c-ip .c-ihd { display: flex; align-items: center; gap: 3cqw; font-size: max(11px, 9cqw); flex: none; margin-top: 1cqw; }
.cvs.cvs .c-ip .c-ihd svg { width: 4cqw; height: auto; color: var(--acc); }
.cvs.cvs .c-ip .c-icard { border: 1px solid var(--ln); border-radius: 5cqw; overflow: hidden; background: var(--card2); flex: none; }
.cvs.cvs .c-ip .c-iph { display: block; height: 52cqw; }
.cvs.cvs .c-ip .c-iph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cvs.cvs .c-ip .c-irow { display: flex; justify-content: space-between; align-items: baseline; padding: 3cqw 4cqw; font-size: max(11px, 8.4cqw); }
.cvs.cvs .c-ip .c-irow span { color: var(--mute); }
.cvs.cvs .c-ip .c-ishare { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 3.4cqw 4cqw; border: 1px solid var(--ln); border-radius: 5cqw; background: var(--card2); font-size: max(11px, 8.4cqw); line-height: 1.2; flex: none; }
.cvs.cvs .c-ip .c-ishare .c-sw { position: relative; flex: none; width: 17cqw; height: 10cqw; border-radius: 99px !important; background: var(--mk); }
.cvs.cvs .c-ip .c-ishare .c-sw i { position: absolute; top: 1cqw; left: 8cqw; width: 8cqw; height: 8cqw; border-radius: 50% !important; background: #fff; }
.cvs.cvs .c-ip .c-inote { text-align: center; color: var(--mute); font-size: max(11px, 7.6cqw); flex: none; }
.cvs.cvs .c-ip .c-itab { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 3.4cqw 0 2cqw; border-top: 1px solid var(--ln); flex: none; color: var(--mute); }
.cvs.cvs .c-ip .c-itab svg { width: 9cqw; height: 9cqw; fill: currentColor; }
.cvs.cvs .c-ip .c-itab svg.on { color: var(--acc); }
.cvs.cvs .c-ip .c-ihome { display: block; flex: none; width: 36cqw; height: 1.5cqw; border-radius: 99px; margin: 0 auto 2.6cqw; background: var(--fg); opacity: .85; }

/* ---- 4. "Every figure traced" proves its own second half: the source runs thin, Sena suggests
        real-world data (it no longer repeats Step 05's file/system/photo tree). ---- */
.cvs.cvs .c-thin { display: inline-flex; align-items: center; gap: calc(5 * var(--u)); color: var(--gap); font-weight: 600; font-size: max(11px, calc(10.5 * var(--u))); }
.cvs.cvs .c-thin::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); background: var(--gap); }
.cvs.cvs.cvs-quality-2 .c-hd .c-ict { width: auto; height: auto; padding: calc(3 * var(--u)) calc(6 * var(--u)); font-size: max(11px, calc(10 * var(--u))); }

/* ---- 3. Row alignment and one shadow rule.
        Panels in a scene sit flat (art direction doc 2: no decorative shadows); only physical
        objects cast one: paper and the phone. ---- */
.cvs.cvs { --shd: none !important; }
.cvs.cvs .c-paper { box-shadow: 0 1px 2px rgba(10, 30, 22, .14), 0 6px 14px -8px rgba(10, 30, 22, .28); }
/* home: square avatars stand side by side instead of overlapping */
html:not(.cvs-soft) .dk-set-home .cvs.cvs .c-sv i { margin-left: calc(4 * var(--u)); }
html:not(.cvs-soft) .dk-set-home .cvs.cvs .c-sv i:first-child { margin-left: 0; }
/* each drawing sits centred between its card text and the card bottom (or the card's link) */
@media (min-width: 1024px) {
  .cvs.cvs.cvs-changes-1 > .c-sc > * { translate: 0 -2.9%; }
  .cvs.cvs.cvs-changes-3 > .c-sc > * { translate: 0 2.5%; }
  .cvs.cvs.cvs-layers-1 > .c-sc > * { translate: 0 2.9%; }
  .cvs.cvs.cvs-layers-2 > .c-sc > * { translate: 0 3.2%; }
  .cvs.cvs.cvs-layers-3 > .c-sc > * { translate: 0 4.3%; }
  .cvs.cvs.cvs-trust-3 > .c-sc > * { translate: 0 4%; }
}

/* ---- 5. Breathing room (Vlad, 11 Nov: "content sticks together"): nothing closer than 8px to its
        neighbour or to its frame. ---- */
.cvs.cvs.cvs-quality-2 .c-blk5 { justify-content: center !important; gap: calc(8 * var(--u)) !important; }
.cvs.cvs.cvs-gap-1 .c-src { width: max-content !important; padding-right: calc(10 * var(--u)); }

/* Company data leans like Diksha's (Vlad, 11 Nov): the records card turns -3deg, the slipped
   flag sits on its corner at -5deg, the source chips overlap the card's lower edge. */
.cvs.cvs .c-tilt { --r: 0deg; transform: rotate(var(--r)); }
.cvs.cvs .c-tilt.c-up { --an: upr; }
.cvs.cvs .c-flag.c-tilt { z-index: 3; }
.cvs.cvs.cvs-gap-1 .c-src { z-index: 2; }
.cvs.cvs.cvs-gap-1 .c-nums b { font-size: calc(26 * var(--u)); }

/* ---- Price test: the price line can be dragged again (Vlad, 11 Nov, as in Diksha's mockup). ---- */
.cvs.cvs .c-vwhit { position: absolute; z-index: 3; cursor: ew-resize; touch-action: pan-y; outline: none; }
.cvs.cvs .c-vwknob { position: absolute; top: 100%; width: calc(22 * var(--u)); height: calc(22 * var(--u)); transform: translate(-50%, -50%); box-sizing: border-box; background: var(--card); border: 2px solid var(--fg); border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cvs.cvs .c-vwknob i { width: calc(8 * var(--u)); height: calc(6 * var(--u)); border-left: 2px solid var(--fg); border-right: 2px solid var(--fg); }
.cvs.cvs .c-sc:not(.c-vwon) .c-vwknob { animation: vwhint 1.6s ease-in-out 3.2s 2; }
@keyframes vwhint { 50% { box-shadow: 0 0 0 calc(5 * var(--u)) color-mix(in srgb, var(--mk) 35%, transparent); } }
.cvs.cvs [data-vw="stbox"].c-out { border-color: var(--gap) !important; }
.cvs.cvs [data-vw="stbox"].c-out .c-ck { stroke: var(--gap); }
@media (prefers-reduced-motion: reduce) { .cvs.cvs .c-vwknob { animation: none; } }
/* the card's stretched link sits over the scene: lift only the drag surface above it */
.cvs.cvs .c-sc:has([data-vw="hit"]) > .c-lay { z-index: 3; pointer-events: none; }
.cvs.cvs .c-sc:has([data-vw="hit"]) .c-vwhit { pointer-events: auto; }

/* Decisions: the metric sliders can be dragged again */
.cvs.cvs .c-sc[data-dm="root"] > .c-lay { z-index: 3; pointer-events: none; }
.cvs.cvs .c-sc[data-dm="root"] .c-met .c-tr { pointer-events: auto; cursor: ew-resize; touch-action: pan-y; outline: none; }
.cvs.cvs .c-sc[data-dm="root"] .c-met .c-tr::before { content: ""; position: absolute; inset: calc(-10 * var(--u)) calc(-8 * var(--u)); }
.cvs.cvs .c-sc[data-dm="root"] .c-met .c-tr i { transition: width .12s ease-out; }
.cvs.cvs .c-sc[data-dm="root"] .c-met .c-tr b { transition: left .12s ease-out; }
.cvs.cvs .c-sc[data-dm="root"]:not(.c-vwon) .c-met:first-child .c-tr b { animation: vwhint 1.6s ease-in-out 3s 2; }

.cvs.cvs [data-vw="stbox"].c-out .c-ck { display: none; }

/* no frame around the drag areas, even on keyboard focus (Vlad, 11 Nov) */
.cvs.cvs .c-vwhit:focus, .cvs.cvs .c-vwhit:focus-visible, .cvs.cvs .c-sc[data-dm="root"] .c-met .c-tr:focus, .cvs.cvs .c-sc[data-dm="root"] .c-met .c-tr:focus-visible { outline: none !important; box-shadow: none !important; }

/* Price test: the slider under the chart (Vlad, 11 Nov), same as UK share; fill in the chart greys, not the ageing orange */
.cvs.cvs .c-vwtr .c-efill { background: var(--ln3); }
.cvs.cvs .c-sc:has(.c-vwtr) > .c-lay { z-index: 3; pointer-events: none; }
.cvs.cvs .c-sc:has(.c-vwtr) .c-vwtr { pointer-events: auto; }
.cvs.cvs .c-sc:not(.c-vwon) .c-vwtr .c-eth { animation: vwhint 1.6s ease-in-out 3.2s 2; }
@media (prefers-reduced-motion: reduce) { .cvs.cvs .c-vwtr .c-eth { animation: none; } }

/* ---- More markets, same team (Vlad, 11 Nov: too many greens): the cities are quiet rows with a
        country code, the lines are grey, 190+ is ink. Only the team stays mint: the one thing
        that does not change. ---- */
.cvs.cvs .c-chip.c-city.c-qcity { justify-content: space-between; padding: 0 calc(12 * var(--u)); background: var(--card); color: var(--fg); border: 1px solid var(--ln2); font-weight: 500; font-size: max(11px, calc(12 * var(--u))); }
.cvs.cvs .c-qcity .c-cc { font-family: var(--mono); font-size: max(11px, calc(10 * var(--u))); letter-spacing: .06em; color: var(--mute); }
.cvs.cvs.cvs-changes-1 .c-cn.c-lit { stroke: var(--ln3); }
/* the price test is taller now (slider under the chart): no downward nudge, or its bottom gets cut */
@media (min-width: 1024px) { .cvs.cvs.cvs-layers-2 > .c-sc > * { translate: 0 0; } }
/* option A: the "+184 more" row is the list's quiet tail */
.cvs.cvs .c-qcity.c-more { border-style: dashed; color: var(--mute); }
