/* R14: blend the outer Cyber workspace shell into the existing line field.
 * Only this noninteractive background is feathered. Text, result cards, panels,
 * layout, rain exclusion zones and the reader's selected colors stay intact.
 * Nine static background slices avoid blur, filter, mask, JS and animation.
 */
@media screen and (forced-colors:none){
 html body.ar-cyber #workspace > :is(.workspace-panel,#panel-welcome,.workspace-footer){
  position:relative;
  isolation:isolate;
  background:transparent!important;
  background-color:transparent!important;
 }
 html body.ar-cyber #workspace > :is(.workspace-panel,#panel-welcome,.workspace-footer)::before{
  content:"";
  position:absolute;
  inset:-28px -24px;
  z-index:-1;
  pointer-events:none;
  /* Dark reading centre and four edge/corner fades, with no whole-panel filter.
   * At the original content inset, side opacity is 1; full top opacity is
   * reached 8px below its boundary. The bottom fades into the existing gap.
   */
  background:
   linear-gradient(#000,#000) left 24px top 36px/calc(100% - 48px) calc(100% - 64px) no-repeat,
   linear-gradient(180deg,transparent,#000) left 24px top/calc(100% - 48px) 36px no-repeat,
   linear-gradient(0deg,transparent,#000) left 24px bottom/calc(100% - 48px) 28px no-repeat,
   linear-gradient(90deg,transparent,#000) left top 36px/24px calc(100% - 64px) no-repeat,
   linear-gradient(270deg,transparent,#000) right top 36px/24px calc(100% - 64px) no-repeat,
   radial-gradient(ellipse 24px 36px at right bottom,#000,transparent) left top/24px 36px no-repeat,
   radial-gradient(ellipse 24px 36px at left bottom,#000,transparent) right top/24px 36px no-repeat,
   radial-gradient(ellipse 24px 28px at right top,#000,transparent) left bottom/24px 28px no-repeat,
   radial-gradient(ellipse 24px 28px at left top,#000,transparent) right bottom/24px 28px no-repeat;
 }
}

/* The referenced search artwork is an aria-hidden inline SVG. Keep its existing
 * responsive box and all form controls untouched; fade only the small art strip.
 * This bounded (84–130px high) two-gradient alpha mask uses no blur or animation.
 */
@media screen and (forced-colors:none){
 html body.ar-cyber #workspace #search-form > .explorer-art-banner{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 clamp(18px,4vw,72px),#000 calc(100% - clamp(18px,4vw,72px)),transparent),linear-gradient(180deg,transparent,#000 8px,#000 calc(100% - 12px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 clamp(18px,4vw,72px),#000 calc(100% - clamp(18px,4vw,72px)),transparent),linear-gradient(180deg,transparent,#000 8px,#000 calc(100% - 12px),transparent);
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
 }
}

/* R28: restore the runner's approved background-only lower-edge feather in
 * Cyber. The earlier ar-simple important layer forced this runner solid black,
 * defeating runner-restore-r20 and leaving a straight rectangular backdrop edge.
 * Keep the black core and all dimensions, nav treatments, reading surfaces,
 * rain, palette and effect preferences unchanged. No mask or extra overlay. */
@layer ar-simple {
 @media screen and (forced-colors:none) {
  html[data-ar-theme="cyber"] body.ar-cyber #ar-site-header[data-ar-nav-page="explorer"] {
   background:linear-gradient(to bottom,#000 0,#000 calc(100% - 6px),transparent 100%)!important;
   background-origin:border-box!important;
   background-clip:border-box!important;
  }
 }
}

/* Bound Cyber background feather to the mobile workspace's 12px gutters.
   Keep the dark reading centre at the original panel edge. */
@media screen and (max-width:900px) and (forced-colors:none){
 html body.ar-cyber #workspace > :is(.workspace-panel,#panel-welcome,.workspace-footer)::before{
  left:-12px!important;right:-12px!important;
  background:
   linear-gradient(#000,#000) left 12px top 36px/calc(100% - 24px) calc(100% - 64px) no-repeat,
   linear-gradient(180deg,transparent,#000) left 12px top/calc(100% - 24px) 36px no-repeat,
   linear-gradient(0deg,transparent,#000) left 12px bottom/calc(100% - 24px) 28px no-repeat,
   linear-gradient(90deg,transparent,#000) left top 36px/12px calc(100% - 64px) no-repeat,
   linear-gradient(270deg,transparent,#000) right top 36px/12px calc(100% - 64px) no-repeat,
   radial-gradient(ellipse 12px 36px at right bottom,#000,transparent) left top/12px 36px no-repeat,
   radial-gradient(ellipse 12px 36px at left bottom,#000,transparent) right top/12px 36px no-repeat,
   radial-gradient(ellipse 12px 28px at right top,#000,transparent) left bottom/12px 28px no-repeat,
   radial-gradient(ellipse 12px 28px at left top,#000,transparent) right bottom/12px 28px no-repeat;
 }
 html body.ar-cyber #sidebar::after{right:0!important;}
}

