/* Page illustrations (Portal.iso.scenes, iso-scenes.js).
   Colour: design-system tokens only. Motion: only when the visitor has not asked for reduced motion.
   The stage (grid, tile, route, node) uses the DS classes directly; the parts below are the shared props every scene is built from. */

.p-empty__svg.is-scene{
  --sc-paper:var(--white);--sc-edge:var(--sage-300);--sc-rim:var(--sage-500);--sc-line:var(--sage-200);--sc-ink:var(--sage-650);--sc-rule:var(--sage-300);
  --sc-soft:var(--mint-50);--sc-band:var(--action);--sc-on:var(--snow);--sc-slot:var(--sage-200);--sc-hl:var(--accent-a26);--sc-face:var(--sage-100);
  --ill-k:calc(var(--sc-vw,256) / var(--sc-w,216));   /* text keeps its design-system size on screen: drawing units per pixel */
  overflow:visible
}
[data-theme=dark] .p-empty__svg.is-scene{
  --sc-paper:var(--sage-700);--sc-edge:var(--forest-700);--sc-rim:var(--sage-400);--sc-line:var(--sage-500);--sc-ink:var(--sage-100);--sc-rule:var(--sage-500);
  --sc-soft:var(--forest-725);--sc-band:var(--primary);--sc-slot:var(--forest-700);--sc-hl:var(--accent-a33);--sc-face:var(--sage-600)
}


/* ---- where the scenes sit ---- */
.p-empty__art.is-scene{--sc-w:216;width:216px;max-width:44vw}
.p-empty.is-page .p-empty__art.is-scene{--sc-w:264;width:264px;max-width:72%}
.p-dash-pair .p-panel>.p-empty .p-empty__art.is-scene{--sc-w:176;width:176px;max-width:70%}
@media(max-width:560px){
  /* Narrow screens: the scene sits above the text, centred, instead of squeezing the text beside it */
  .p-empty:has(>.p-empty__art:is(.is-scene,.is-ticket)){grid-template-columns:minmax(0,1fr);grid-template-rows:none;justify-items:center;text-align:center}
  .p-empty:has(>.p-empty__art:is(.is-scene,.is-ticket))>*{grid-row:auto!important}
  .p-empty:has(>.p-empty__art.is-scene)>.p-empty__art{--sc-w:240;grid-row:auto;width:min(240px,78%);max-width:none}
  .p-empty:has(>.p-empty__art.is-scene)>:not(.p-empty__art){grid-column:1}
}

/* ---- password reset (auth scene kind 'reset', drawn by iso.js with the DS auth engine) ---- */
[data-auth-scene=reset] .auth-label-a{left:26%;top:8%}
[data-auth-scene=reset] .auth-label-c{left:37%;top:30%}
[data-auth-scene=reset] .auth-label-d{left:72%;top:14%}
.auth-env path{fill:none;stroke:var(--sage-500);stroke-width:.9;stroke-linejoin:round;stroke-linecap:round}
.auth-env-seal{fill:var(--primary)}
.auth-env-tick{fill:none;stroke:var(--snow);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.auth-keyglyph path{fill:var(--snow)}
.auth-keyglyph{transform-box:fill-box;transform-origin:center}

/* Text beside a scene: centred on the scene, whether it has a title only, or a title, a line and a button */
.p-empty:not(.is-page):has(>.p-empty__art:is(.is-scene,.is-ticket)){grid-template-rows:1fr auto auto auto 1fr}
.p-empty:not(.is-page):has(>.p-empty__art:is(.is-scene,.is-ticket))>.p-empty__art{grid-row:1/span 5}
.p-empty:not(.is-page):has(>.p-empty__art:is(.is-scene,.is-ticket))>.p-empty__title{grid-row:2}
.p-empty:not(.is-page):has(>.p-empty__art:is(.is-scene,.is-ticket))>.p-empty__text{grid-row:3}
.p-empty:not(.is-page):has(>.p-empty__art:is(.is-scene,.is-ticket))>.p-empty__action{grid-row:4}
.p-dash-pair .p-panel>.p-empty:has(>.p-empty__art:is(.is-scene,.is-ticket)),
.p-empty:has(>.p-empty__art:is(.is-scene,.is-ticket)).is-page{grid-template-rows:none}
.p-dash-pair .p-panel>.p-empty:has(>.p-empty__art:is(.is-scene,.is-ticket))>*{grid-row:auto}

/* ---- shared parts ---- */
.is-scene .sc-shadow{fill:var(--ink-900);opacity:.14}
.is-scene .sc-paper{fill:var(--sc-paper)}
.is-scene .sc-edge{fill:var(--sc-edge);stroke:var(--sc-edge);stroke-width:1;stroke-linejoin:round}
.is-scene .sc-rim{fill:none;stroke:var(--sc-rim);stroke-width:.9;stroke-linejoin:round}
.is-scene .sc-band{fill:var(--sc-band)}
.is-scene .sc-on{fill:var(--sc-on)}
.is-scene .sc-on.is-dim{opacity:.62}
.is-scene .sc-line{fill:var(--sc-line)}
.is-scene .sc-line.is-dim{opacity:.7}
.is-scene .sc-ink{fill:var(--sc-ink)}
.is-scene .sc-rule{stroke:var(--sc-rule);stroke-width:1}
.is-scene .sc-hl{fill:var(--sc-hl)}
.is-scene .sc-row{fill:none;stroke:var(--sc-rule);stroke-width:.8;stroke-dasharray:3 3}
.is-scene .sc-stamp{fill:none;stroke:var(--primary);stroke-width:1.2;stroke-dasharray:3 2.6}
.is-scene .sc-tick{fill:none;stroke:var(--primary);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.is-scene .sc-ghost polygon{fill:none;stroke:var(--primary);stroke-width:.9;stroke-dasharray:4 3}
.is-scene .sc-plus{fill:none;stroke:var(--primary);stroke-width:1.6;stroke-linecap:round}
.is-scene .sc-gold{fill:var(--amber-300);stroke:var(--amber-400);stroke-width:.7}
.is-scene .sc-gold-line{fill:none;stroke:var(--amber-400);stroke-width:.8}
.is-scene .sc-wave path{fill:none;stroke:var(--sc-on);stroke-width:1.5;stroke-linecap:round;opacity:.85}
.is-scene .sc-slot{fill:var(--forest-950);stroke:var(--primary);stroke-width:.8}
.is-scene .sc-u{fill:var(--sage-600)}
.is-scene .sc-uo{fill:var(--primary)}
.is-scene .sc-uh{fill:var(--mint-200);opacity:.85}
.is-scene .sc-us{fill:none;stroke:var(--sage-500);stroke-width:1}
.is-scene .sc-arrow{fill:none;stroke:var(--primary);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.is-scene .sc-socket{fill:none;stroke:var(--primary);stroke-width:1;stroke-dasharray:4 3}
.is-scene .sc-socket-pin{stroke:var(--sage-500);stroke-width:1.2;stroke-linecap:round}
.is-scene .sc-dropline{stroke:var(--sage-500);stroke-width:.8;stroke-dasharray:2 3;opacity:.7}
.is-scene .sc-pivot{fill:none;stroke:none}
.is-scene .is-off .rack-led{fill:var(--sage-500);animation:none}
.is-scene .sc-led{fill:var(--green-500)}
.is-scene .sc-sweep{fill:var(--sc-hl);opacity:0}
.is-scene .sc-mark{fill:var(--snow);font-size:calc(var(--ill-fs-m) * var(--ill-k,1));letter-spacing:var(--ill-ls-m)}
.is-scene .sc-cloudmark path{fill:none;stroke:var(--sc-line);stroke-width:2.4;stroke-linecap:round}
.is-scene .sc-ring{fill:none;stroke:var(--sc-on);stroke-width:1;opacity:.7}
.is-scene .sc-hub{fill:var(--sc-on)}
.is-scene .sc-blade{fill:var(--sc-on);opacity:.9}
.is-scene .sc-hover,.is-scene .sc-spin,.is-scene .sc-scan,.is-scene .sc-run,.is-scene .sc-run2{transform-box:fill-box;transform-origin:center}
.is-scene .sc-run,.is-scene .sc-run2{opacity:0}   /* travelling parts only exist while they move */

.is-scene .sc-label{fill:var(--forest-700);stroke:var(--sage-600);stroke-width:.7}
.is-scene .sc-labelbar{fill:var(--sage-300);opacity:.9}
.is-scene .sc-labelbar.is-dim{opacity:.55}
.is-scene .sc-bracket{fill:none;stroke:var(--primary);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.is-scene .sc-focus{transform-box:fill-box;transform-origin:center}
.is-scene .sc-clockface{fill:var(--sc-soft);stroke:var(--sage-500);stroke-width:.8}
.is-scene .sc-prompt{fill:none;stroke:var(--primary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.is-scene .sc-cursor{fill:var(--mint-200)}
.is-scene .sc-swing{transform-box:fill-box;transform-origin:50% 0}
.is-scene .sc-check{fill:none;stroke:var(--sc-on);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.is-scene .sc-boundary{fill:none;stroke:var(--primary);stroke-width:1.2;stroke-dasharray:5 4}
.is-scene .sc-flat{stroke:var(--primary);stroke-width:1.4;stroke-dasharray:4 3;opacity:.8}
.is-scene .sc-scanx{transform-box:fill-box;transform-origin:center}
.is-scene .sc-power path{fill:none;stroke:var(--sage-300);stroke-width:1.6;stroke-linecap:round}
.is-scene .sc-brick{stroke:var(--sage-500);stroke-width:.8;opacity:.8}
.is-scene .sc-hole{fill:var(--forest-800)}
.is-scene .sc-lip{fill:none;stroke:var(--mint-300);stroke-width:.8}
.is-scene .sc-field{fill:var(--sc-soft);stroke:var(--sc-rule);stroke-width:.7}
.is-scene .sc-dot{fill:var(--sc-ink)}
.is-scene .sc-drop{transform-box:fill-box;transform-origin:center}
.is-scene .sc-gear{fill:var(--sc-on)}
.is-scene .sc-node{fill:var(--sc-on)}
.is-scene .sc-mark.is-ghost{fill:var(--primary)}
.is-scene .sc-mark.is-big{font-size:calc(var(--ill-fs-l) * var(--ill-k,1));letter-spacing:var(--ill-ls-l)}
.is-scene .sc-mark.is-s{font-size:calc(var(--ill-fs-s) * var(--ill-k,1));letter-spacing:var(--ill-ls-s)}
.is-scene .sc-ringline{fill:none;stroke:var(--sage-500);stroke-width:.8;opacity:.8}
.is-scene .sc-blip{fill:var(--primary-on-dark)}
.is-scene .sc-mark.is-ink{fill:var(--primary-text)}
.is-scene .sc-pill{fill:var(--sc-soft);stroke:var(--primary);stroke-width:.8}
.is-scene .sc-glyph-on{fill:none;stroke:var(--sc-on);stroke-width:1}
.is-scene .sc-uurl{fill:var(--sage-600)}
.is-scene .sc-uhero{fill:var(--sage-600)}
.is-scene .sc-uhill{fill:var(--sage-500);opacity:.9}
.is-scene .sc-u2{fill:var(--forest-700)}
.is-scene .sc-tile{fill:var(--sage-600);stroke:var(--sage-500);stroke-width:.6}
.is-scene .sc-globe{fill:none;stroke:var(--mint-200);stroke-width:1.1;opacity:.85}
.is-scene .sc-wedge{fill:var(--green-500);opacity:.5}
.is-scene .sc-pingring{fill:none;stroke:var(--primary);stroke-width:1;opacity:.5;transform-box:fill-box;transform-origin:center}
.is-scene .sc-beat{fill:none;stroke:var(--primary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.is-scene .sc-bar{fill:var(--sc-line)}
.is-scene .sc-bar.is-warn{fill:var(--amber-400)}
.is-scene .sc-border{fill:none;stroke:var(--sc-rule);stroke-width:.9}
.is-scene .sc-sign{fill:none;stroke:var(--sc-ink);stroke-width:1.1;stroke-linecap:round}
.is-scene .sc-ribbon{fill:var(--green-700);stroke:var(--green-800);stroke-width:.6}
.is-scene .sc-seal{fill:var(--sc-band)}
.is-scene .sc-sealring{fill:none;stroke:var(--sc-on);stroke-width:.9;opacity:.7}
.is-scene .sc-lockarc{fill:none;stroke:var(--sc-ink);stroke-width:3;stroke-linecap:round}
.is-scene .sc-keyhole{fill:var(--sc-on);stroke:var(--sc-on);stroke-width:1.6;stroke-linecap:round}
.is-scene .sc-bracket-s{stroke-width:1.8}
.is-scene .sc-lm{fill:var(--primary)}
.is-scene .sc-mesh{fill:none;stroke:var(--primary);stroke-width:.6;opacity:.7}
.is-scene .sc-glyph{fill:none;stroke:var(--sc-on);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.is-scene .sc-glyph circle{fill:var(--sc-on);stroke:none}
.is-scene .sc-routeoff{opacity:.5}
.is-scene .sc-routeoff path{stroke-dasharray:3 4}
.is-scene .sc-pinshadow{fill:var(--ink-900);opacity:.18}
.is-scene .sc-warn{fill:var(--amber-300)}
.is-scene .sc-bang{fill:none;stroke:var(--amber-700);stroke-width:3.4;stroke-linecap:round}
.is-scene .sc-bangdot{fill:var(--amber-700)}
.is-scene .sc-spark{fill:none;stroke:var(--amber-400);stroke-width:1.6;stroke-linecap:round}
.is-scene .sc-pulse{opacity:.55}
.is-scene .sc-shackle,.is-scene .sc-glitch{transform-box:fill-box;transform-origin:center}

/* ---- motion ---- */
@media(prefers-reduced-motion:no-preference){
  @keyframes sc-hover{0%,100%{transform:translateY(0)}50%{transform:translateY(calc(var(--a,5px) * -1))}}
  @keyframes sc-spin{to{transform:rotate(360deg)}}
  @keyframes sc-march{to{stroke-dashoffset:-14}}
  @keyframes sc-scan{0%{transform:translateY(0);opacity:0}12%{opacity:1}80%{opacity:1}100%{transform:translateY(var(--h,60px));opacity:0}}
  @keyframes sc-run{0%{transform:translate(0,0);opacity:0}12%{opacity:1}88%{opacity:1}100%{transform:translate(var(--x1),var(--y1));opacity:0}}
  @keyframes sc-run2{0%{transform:translate(0,0);opacity:0}10%{opacity:1}50%{transform:translate(var(--x1),var(--y1))}90%{opacity:1}100%{transform:translate(var(--x2),var(--y2));opacity:0}}
  @keyframes sc-row{0%,100%{opacity:0}10%,26%{opacity:1}38%{opacity:0}}
  @keyframes sc-wave{0%,100%{opacity:.25}35%{opacity:1}}
  @keyframes sc-card{0%,100%{transform:translateY(0)}50%{transform:translateY(7px)}}
  .p-empty__svg.is-scene{animation:none}
  .is-scene .sc-hover{animation:sc-hover var(--t,6s) ease-in-out var(--d,0s) infinite}
  .is-scene .sc-spin{animation:sc-spin var(--t,8s) linear infinite}
  .is-scene .sc-scan{animation:sc-scan 3.6s ease-in-out infinite}
  .is-scene .sc-run{animation:sc-run var(--t,4s) ease-in-out var(--d,0s) infinite}
  .is-scene .sc-run2{animation:sc-run2 var(--t,4s) ease-in-out var(--d,0s) infinite}
  .is-scene .sc-ghost polygon{animation:sc-march 1.6s linear infinite}
  .is-scene .sc-stamp{animation:sc-spin 24s linear infinite;transform-box:fill-box;transform-origin:center}
  .is-scene .sc-rowlit{animation:sc-row 5.2s ease-in-out infinite;animation-delay:calc(var(--i,0) * 1.1s);opacity:0}
  .is-scene .sc-wave path{animation:sc-wave 2.4s ease-in-out infinite}
  .is-scene .sc-wave path:nth-child(2){animation-delay:.25s}
  .is-scene .sc-wave path:nth-child(3){animation-delay:.5s}
  .is-scene .sc-card{animation:sc-card 4.4s ease-in-out infinite}
  @keyframes sc-focus{0%,100%{transform:scale(1)}50%{transform:scale(.93)}}
  @keyframes sc-swing{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
  @keyframes sc-blink{0%,45%,100%{opacity:1}55%,90%{opacity:.15}}
  @keyframes sc-scanx{0%{transform:translateX(0);opacity:0}12%{opacity:1}85%{opacity:1}100%{transform:translateX(var(--w,60px));opacity:0}}
  @keyframes sc-drop{0%{transform:translateY(-30px);opacity:0}20%{opacity:1}68%{transform:translateY(22px);opacity:1}82%,100%{transform:translateY(26px);opacity:0}}
  @keyframes sc-dot{0%,100%{opacity:1}50%{opacity:.25}}
  .is-scene .sc-focus{animation:sc-focus 3.6s ease-in-out infinite}
  .is-scene .sc-swing{animation:sc-swing 5s ease-in-out infinite}
  .is-scene .sc-cursor,.is-scene .sc-blink{animation:sc-blink 1.2s steps(2,jump-none) infinite}
  .is-scene .sc-scanx{animation:sc-scanx 4.2s ease-in-out infinite}
  .is-scene .sc-drop{animation:sc-drop 3.8s ease-in infinite;animation-delay:var(--d,0s)}
  .is-scene .sc-dot{animation:sc-dot 2.2s ease-in-out infinite;animation-delay:calc(var(--i,0) * .18s)}
  .is-scene .sc-boundary{animation:sc-march 2.4s linear infinite}
  @keyframes sc-blip{0%,100%{opacity:.25}40%{opacity:1}}
  .is-scene .sc-blip{animation:sc-blip 2.8s ease-in-out infinite;animation-delay:calc(var(--i,0) * .9s)}
  @keyframes sc-pingring{0%{transform:scale(.6);opacity:.6}80%,100%{transform:scale(3.4);opacity:0}}
  @keyframes sc-beat{0%{stroke-dashoffset:1}55%,100%{stroke-dashoffset:0}}
  @keyframes sc-shackle{0%,55%,100%{transform:translateY(0)}70%,85%{transform:translateY(-4px)}}
  @keyframes sc-pulse{0%,100%{opacity:.35}40%{opacity:1}}
  @keyframes sc-tile{0%,100%{fill:var(--sage-600)}50%{fill:var(--forest-600)}}
  @keyframes sc-lm{0%,100%{opacity:.35;transform:scale(.8)}40%{opacity:1;transform:scale(1.3)}}
  @keyframes sc-glitch{0%,70%,100%{transform:translateX(0)}76%{transform:translateX(-5px)}82%{transform:translateX(4px)}88%{transform:translateX(-2px)}}
  @keyframes sc-spark{0%,60%,100%{opacity:0}70%,85%{opacity:1}}
  @keyframes sc-warnpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
  @keyframes sc-pinshadow{0%,100%{transform:scale(1);opacity:.18}50%{transform:scale(.7);opacity:.1}}
  .is-scene .sc-pingring{animation:sc-pingring 2.6s ease-out infinite;animation-delay:var(--d,0s)}
  .is-scene .sc-beat{stroke-dasharray:1;animation:sc-beat 3.4s ease-in-out infinite}
  .is-scene .sc-shackle{animation:sc-shackle 4.4s ease-in-out infinite}
  .is-scene .sc-pulse{animation:sc-pulse 2.6s ease-in-out infinite;animation-delay:calc(var(--i,0) * .32s)}
  .is-scene .sc-tile{animation:sc-tile 4.8s ease-in-out infinite;animation-delay:calc(var(--i,0) * .7s)}
  .is-scene .sc-lm{animation:sc-lm 2.8s ease-in-out infinite;animation-delay:calc(var(--i,0) * .3s);transform-box:fill-box;transform-origin:center}
  .is-scene .sc-glitch{animation:sc-glitch 4.2s ease-in-out infinite}
  .is-scene .sc-spark{animation:sc-spark 3s ease-in-out infinite;animation-delay:calc(var(--i,0) * 1.1s)}
  .is-scene .sc-ping-wrap{transform-box:fill-box;transform-origin:center}
  .is-scene .sc-pinshadow{animation:sc-pinshadow 3.8s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
  @keyframes sc-keyturn{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}
  .auth-scene.is-in .auth-keyglyph{animation:sc-keyturn 4.2s ease-in-out 1s infinite}
}
