/* Portal-only owner correction: live audio controls on the original forest.
   The shared glass, controller, audio, copy and other three sites stay intact. */
body[data-site="portal"] main .r5-portal-workflow .r5-step-listening{
  background:transparent;border:0;box-shadow:none;backdrop-filter:none;
  -webkit-backdrop-filter:none;color:#fff;border-radius:18px;isolation:isolate;
}
body[data-site="portal"] main .r5-portal-workflow .r5-step-listening::before{
  content:"";display:block;position:absolute;inset:0;z-index:-1;
  background:url('./assets/portal-practice-forest-r4.webp') center/cover no-repeat;
  opacity:1;border-radius:inherit;pointer-events:none;
}
body[data-site="portal"] main .r5-portal-workflow .r5-step-listening::after{display:none}
body[data-site="portal"] main .r5-portal-workflow .r5-step-listening :is(h3,h3 small,.r5-track-name,.r5-clock,.r5-remaining,.r5-seek-label,.r5-text-control){
  color:#fff;text-shadow:0 1px 3px #102218,0 1px 8px #102218;
}
body[data-site="portal"] main .r5-portal-workflow .r5-player-toggle{
  background:#005b48;border-color:#d9bc7d;
}
body[data-site="portal"] main .r5-portal-workflow .r5-step-listening :is(button,input):focus-visible{
  outline-color:#fff;outline-offset:4px;
}
body[data-site="portal"] main .r5-portal-workflow .r5-step-listening .r5-complete:disabled{
  background:#e7ece3;color:#687362;border-color:#d5dbc9;text-shadow:none;
}
@media(min-width:1101px){
  /* One continuous forest in the original frame opening; no second crop. */
  body[data-site="portal"] main .r5-portal-workflow .r5-step-listening::before{display:none}
}
/* The original desktop raster contains an unrelated reflection at rows0..31.
   Its first real portal pixel is row33: exclude only the empty source band.
   The finite stone edge is framed at the viewport edge, never outpainted. */
@media(min-width:761px){
  body[data-site="portal"] main .r4-portal-final{
    width:100%;max-width:none;padding-right:0;
    padding-left:max(60px,calc((100vw - 1320px)/2));
  }
  body[data-site="portal"] main .r4-portal-final .r4-lead-art{
    justify-self:end;max-width:950px;
  }
  body[data-site="portal"] main .r4-portal-final .r4-lead-art img{
    clip-path:inset(6.86695% 0 0 0);
  }
}
@media(min-width:761px) and (max-width:1100px){
  body[data-site="portal"] main .r4-portal-final{padding-left:32px}
}
