/* Only PublicShell's internal branch loads this sheet. No home scene selector. */
[data-public-surface=inner]:has(.inner-rune-composition){--public-scene-height:240px;--public-art-clearance:192px}
[data-public-surface=inner] main:has(>.inner-rune-composition){padding-top:0}
[data-public-surface=inner] main>.inner-rune-composition{position:absolute;top:32px;right:max(var(--pad),calc((100% - var(--max))/2));display:block;width:30%;height:240px;max-width:360px;min-width:0;margin:0;pointer-events:none;isolation:isolate;contain:layout paint;z-index:1}
.inner-rune-composition .inner-rune-fallback{position:absolute;inset:12%;width:76%;height:76%;object-fit:contain;display:block;opacity:.9;filter:drop-shadow(0 12px 20px #07141666)}
.inner-rune-composition .inner-rune-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;visibility:hidden;pointer-events:none}
.inner-rune-composition[data-inner-rune-webgl=ready] .inner-rune-fallback{visibility:hidden}
/* Quiet pages retain the mark while the form or reading task stays primary. */
[data-public-surface=inner][data-public-reading=quiet] main>.inner-rune-composition{width:24%;max-width:240px;height:192px}
[data-public-surface=inner] main:has(.ag-co-hero)>.inner-rune-composition{top:64px;width:34%;height:320px;max-width:440px}
[data-public-surface=inner] .ag-inc-heroAside{margin-top:192px}
[data-public-surface=inner] main:has(.member-workspace)>.inner-rune-composition{width:120px;height:112px;top:0}
[data-public-surface=inner] main:has(.member-command)>.inner-rune-composition{height:92px}
@media(max-width:1000px){
 [data-public-surface=inner]:has(.inner-rune-composition){--public-scene-height:0px;--public-art-clearance:0px}
 [data-public-surface=inner] main:has(>.inner-rune-composition){padding-top:0}
 [data-public-surface=inner] main>.inner-rune-composition,
 [data-public-surface=inner][data-public-reading=quiet] main>.inner-rune-composition,
 [data-public-surface=inner] main:has(.ag-co-hero)>.inner-rune-composition{top:12px;right:var(--pad);width:96px;max-width:96px;height:96px}
 /* A compact signature belongs to the opening, not a separate 180px band. */
 [data-public-surface=inner] main:has(>.inner-rune-composition) :is([data-public-opening],.ag-co-hero):first-of-type,
 [data-public-surface=inner] main:has(>.inner-rune-composition) .ag-inc-launch>.ag-inc-workbench:first-child{padding-top:112px}
 [data-public-surface=inner] .ag-inc-heroAside{margin-top:0}
 [data-public-surface=inner] main:has(.member-workspace)>.inner-rune-composition{top:8px;width:96px;height:92px}
 [data-public-surface=inner] main:has(.member-workspace) .member-page-title{padding-top:1rem;padding-right:112px;min-height:104px}
}
@media(prefers-reduced-motion:reduce){.inner-rune-composition,.inner-rune-composition *{animation:none!important;transition:none!important}}
@media print{.inner-rune-composition .inner-rune-canvas{display:none}.inner-rune-composition .inner-rune-fallback{visibility:visible}}

/* The controller interpolates from the opening rectangle into the page journey.
   A fixed layer avoids sticky ancestor constraints; it never intercepts input. */
[data-public-surface=inner] main>.inner-rune-composition[data-inner-rune-mounted]{position:fixed;inset:auto;left:var(--inner-x);top:var(--inner-y);width:var(--inner-width);height:var(--inner-height);max-width:none;opacity:var(--inner-opacity,1);z-index:2}

/* A legible charter-coloured silhouette also works without a GPU. */
.inner-rune-composition:before{content:"";position:absolute;inset:15%;background:var(--ag-gradient-brand,linear-gradient(150deg,#00a791,#94d5e1 35%,#ffc930 60%,#ea212e 82%,#1c1862));mask:var(--inner-rune-mask) center/contain no-repeat;opacity:.85}
/* An illustrated mark is a foreground, not a pale panel. Explicit theme scope
   keeps the compatibility palette generator from bleaching its gradient. */
html[data-theme=light] [data-public-surface=inner] .inner-rune-composition:before{background:var(--ag-gradient-mark,linear-gradient(135deg,#007f77,#368e9d 34%,#a77700 62%,#c3464c 78%,#76347d));opacity:1}
.inner-rune-composition .inner-rune-fallback{visibility:hidden}
.inner-rune-composition[data-inner-rune-webgl=ready]:before{display:none}

/* A transparent scene belongs to the page, not to navigation chrome. */
[data-public-surface=inner] main:has(>[data-inner-rune-persistent]){padding-top:0}
[data-public-surface=inner] main>.inner-rune-composition[data-inner-rune-persistent]{position:fixed;inset:var(--public-header-height,88px) 0 0;left:0;top:var(--public-header-height,88px);width:100%;height:calc(100dvh - var(--public-header-height,88px));max-width:none;opacity:1;z-index:2;background:transparent;border:0;overflow:hidden;pointer-events:none}
[data-public-surface=inner]:has([data-inner-rune-persistent]) :is(h1,h2,h3,[id],input,select,textarea,button){scroll-margin-top:calc(var(--public-header-height,88px) + 24px)}
[data-public-surface=inner]:has([data-inner-rune-persistent]) .ag-inc-heroAside{margin-top:0}
[data-public-surface=inner] main:has(>[data-inner-rune-persistent]) .member-page-title{padding-right:0;min-height:0}
[data-public-surface=inner] main:has(>[data-inner-rune-persistent]) :is([data-public-opening],.ag-co-hero):first-of-type,
[data-public-surface=inner] main:has(>[data-inner-rune-persistent]) .ag-inc-launch>.ag-inc-workbench:first-child{padding-top:clamp(32px,5vw,72px)}
html[data-theme] [data-public-surface=inner] .inner-rune-composition[data-inner-rune-persistent]{mix-blend-mode:normal}
/* A restrained, static edge signature is the no-GPU fallback. */
html[data-theme] [data-inner-rune-persistent]:before{inset:20% -10% 20% 65%;opacity:.1}
@media print{[data-public-surface=inner] main>.inner-rune-composition[data-inner-rune-persistent]{display:none}}

/* Sculptural breathing room belongs to each chapter, never to a fixed header band. */
[data-public-surface=inner] main:has(>[data-inner-rune-persistent])>:is(section,article,.ag-co,.ag-inc-launch),
[data-public-surface=inner] main:has(>[data-inner-rune-persistent])>.member-workspace>.member-page-title{padding-bottom:clamp(320px,26vw,420px)}

@media(max-width:600px){
 [data-public-surface=inner] main:has(>[data-inner-rune-persistent])>:is(section,article,.ag-co,.ag-inc-launch):not(.member-workspace):first-of-type h1{margin-bottom:320px}
}
html[data-theme] [data-inner-rune-persistent][data-inner-rune-slots]:before{inset:auto;left:var(--rune-fallback-x,20px);top:var(--rune-fallback-y,20px);width:var(--rune-fallback-size,0px);height:var(--rune-fallback-size,0px);opacity:1}

@media(min-width:1001px){[data-public-surface=inner] main>.inner-hero .promise-card{padding-top:320px}}
/* AGARTHA_LIGHT_PALETTE */html[data-theme=light] .inner-rune-composition:before{background:var(--ag-gradient-brand,linear-gradient(150deg,#70feeb,#e7f6f8 35%,#fff7e0 60%,#fce3e5 82%,#adaae9))}html[data-theme=light] [data-public-surface=inner] main>.inner-rune-composition[data-inner-rune-persistent]{background:transparent;border:0}
