/* Evening review, revision 9. Small controls, precise scopes, stable shared header.
   Native controllers still own state, history, focus and theme effects. */
html body #ar-cyber-customize-panel {
 width:min(352px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;
 padding:14px!important;gap:12px!important;max-height:min(720px,calc(100dvh - 96px));
 overflow:auto;scrollbar-gutter:auto;overscroll-behavior:contain;
}
/* The earlier personal-data opener hid every non-reset child in non-Cyber.
   Restore only the intended theme groups; Cyber-only effects stay hidden. */
html body:not(.ar-cyber) #ar-cyber-customize-panel > :is(#ar-normal-accent,#ar-color-background,#ar-color-reset,#ar-color-status,#ar-theme-reset-help){display:block!important}
html body #ar-cyber-customize-panel :is(.ar-color-field,#ar-cyber-accent-label){padding:0!important;border:0!important;margin:0!important}
html body #ar-cyber-customize-panel .ar-color-field[hidden],html body #ar-cyber-customize-panel #ar-cyber-accent-label[hidden]{display:none!important}
html body #ar-cyber-customize-panel :is(.ar-color-field legend,#ar-cyber-accent-label){font:600 12px/1.4 system-ui,sans-serif!important;margin:0 0 7px!important;color:inherit!important}
html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette){
 display:flex!important;flex-wrap:wrap;justify-content:flex-start!important;align-items:center;
 width:100%!important;gap:7px!important;padding:3px!important;margin:0!important;
 border:0!important;box-shadow:none!important;background:transparent!important;box-sizing:border-box;
}
html body #ar-cyber-customize-panel #ar-cyber-palette[hidden]{display:none!important}
html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette) > button {
 flex:0 0 24px!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;
 box-sizing:border-box!important;padding:0!important;margin:0!important;border:1px solid #ffffff80!important;
 border-radius:3px!important;background:var(--swatch)!important;color:inherit!important;clip-path:none!important;
 box-shadow:inset 0 0 0 1px #0002!important;filter:none!important;cursor:pointer;
}
html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette) > button::before,
html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette) > button::after{content:none!important}
html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette) > button:is([aria-checked="true"],[aria-pressed="true"]){outline:2px solid #f5f0e8!important;outline-offset:2px!important;box-shadow:0 0 0 3px #151515!important}
html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette) > button:focus-visible{outline:3px solid #fff!important;outline-offset:3px!important}
html body #ar-cyber-customize-panel #ar-cyber-art-controls{margin:0!important;padding:0!important;border:0!important}
html body #ar-cyber-customize-panel #ar-cyber-art-options{margin:0!important}
/* Native title tooltips and aria-labels avoid the old permanently crowded labels. */
html body #ar-cyber-customize-panel #ar-cyber-art-options [data-tooltip]::after{content:none!important}
html body #ar-cyber-customize-panel #ar-color-reset{
 display:block!important;align-self:center!important;width:auto!important;max-width:100%!important;min-height:38px!important;
 margin:2px auto 0!important;padding:8px 14px!important;border:1px solid currentColor!important;border-radius:7px!important;
 background:transparent!important;color:inherit!important;font:500 12px/1.4 system-ui,sans-serif!important;text-align:center!important;clip-path:none!important;
}
html body #ar-cyber-customize-panel #ar-color-reset:hover{background:#ffffff0d!important}
html body #ar-cyber-customize-panel #ar-color-reset:focus-visible{outline:3px solid currentColor!important;outline-offset:3px!important}
html body #ar-cyber-customize-panel #ar-color-status:empty{display:none!important}
html body #ar-cyber-customize-panel .ar-color-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html body #ar-cyber-customize-panel .ar-personal-reset{order:99!important;margin-top:3px!important}
@media(pointer:coarse){
 html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette){gap:10px!important}
 html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette)>button{flex-basis:28px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}
 html body #ar-cyber-customize-panel #ar-color-reset{min-height:44px!important}
}
@media(max-width:900px){html body #ar-cyber-customize-panel{width:min(352px,calc(100vw - 40px))!important;max-height:65dvh}}
@media(forced-colors:active){
 html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette)>button{forced-color-adjust:none}
 html body #ar-cyber-customize-panel :is(.ar-color-options,#ar-cyber-palette)>button:is([aria-checked="true"],[aria-pressed="true"]){outline-color:Highlight!important}
}
/* Transparent moving verse plates in both ordinary rain and full-screen rain.
   Text color, glow, opacity, animation and pointer behavior remain native. */
html body.ar-cyber :is(#ar-cyber-rain,#ar-cyber-search-atmosphere) :is(.cy-verse-code,.ar-csa-scripture,.ar-truth-rain-trigger){
 background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
}
html body.ar-cyber :is(#ar-cyber-rain,#ar-cyber-search-atmosphere) :is(.cy-verse-code,.ar-csa-scripture,.ar-truth-rain-trigger)::before,
html body.ar-cyber :is(#ar-cyber-rain,#ar-cyber-search-atmosphere) :is(.cy-verse-code,.ar-csa-scripture,.ar-truth-rain-trigger)::after{background:transparent!important;box-shadow:none!important}
/* Explorer now uses exactly the other pages' short utility line and header geometry. */
html body .ar-site-top-runner.site-runner > .ar-site-runner-inner{justify-content:center!important}
html body .welcome-site-tagline{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 8px}
/* Four real destinations. The same nodes follow the search form into Cyber. */
html body #workspace .ar-library-shortcuts{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:7px!important;
 margin:12px 0 0!important;width:100%;box-sizing:border-box;
}
html body #workspace .ar-library-shortcuts > button{
 display:flex!important;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px!important;
 padding:8px 6px!important;font:600 13px/1.4 system-ui,sans-serif!important;white-space:normal!important;
 text-align:center;clip-path:none!important;border-radius:7px!important;
}
html body #workspace .ar-library-shortcuts > button svg{width:21px!important;height:21px!important;min-width:21px;opacity:.95!important}
html body.ar-cyber #workspace > .ar-library-shortcuts{width:min(1180px,calc(100% - 40px));margin:10px auto 20px!important}
html body.ar-cyber #workspace .ar-library-shortcuts>button{color:var(--cyber-bright)!important;background:#07090b!important;border:1px solid var(--cyber-line)!important}
html body.ar-cyber #workspace .ar-library-shortcuts>button:hover{background:var(--cyber-deep)!important}
html body.ar-cyber #workspace .ar-library-shortcuts>button:focus-visible{outline:2px solid var(--cyber-bright)!important;outline-offset:3px!important}
@media(max-width:700px){html body #workspace .ar-library-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1450px){html body.ar-cyber #workspace > .ar-library-shortcuts{width:min(1180px,calc(100% - 300px))!important}}
@media(forced-colors:none){
 /* Reuse the accepted bronze/taupe control family, including its custom accent. */
 html body:not(.ar-cyber) #ar-site-header .ar-site-nav > .ar-site-nav-item{
 color:var(--ec-ink,#f0e5d5)!important;border:1px solid var(--ec-edge,#907253)!important;
 background:var(--ec-fill,linear-gradient(175deg,#3a2b20,#241a13))!important;
 border-radius:8px!important;box-shadow:var(--ec-shadow,inset 0 1px 0 #fff1)!important;text-shadow:none!important;filter:none!important;
 }
 html body:not(.ar-cyber) #ar-site-header .ar-site-nav > .ar-site-nav-item:is(.current,:hover,:focus-visible){
 color:var(--ec-ink,#f0e5d5)!important;background:var(--ec-selected,linear-gradient(175deg,#57412c,#38291d))!important;
 border-color:var(--ec-edge-active,#c3a06c)!important;
 }
 html body:not(.ar-cyber) #ar-site-header .ar-site-nav > a:focus-visible{outline:3px solid var(--ec-gold,#d0ad70)!important;outline-offset:3px!important}
 html body:not(.ar-cyber) #ar-site-header .ar-site-nav > .ar-site-nav-item::before,
 html body:not(.ar-cyber) #ar-site-header .ar-site-nav > .ar-site-nav-item::after{border-color:var(--ec-edge,#907253)!important;background:none!important;box-shadow:none!important}
 html body.ar-monochrome #ar-site-header{--ec-ink:#e5e0d8;--ec-edge:#797268;--ec-edge-active:#aaa193;--ec-gold:#beb6a7;--ec-fill:linear-gradient(175deg,#302c26,#201d19);--ec-selected:linear-gradient(175deg,#474036,#302b24)}
 /* The per-theme accent must reach the newer, privately tokenized controls. */
 html body[data-ar-accent-custom]:not(.ar-cyber),html body.ar-monochrome[data-ar-accent-custom] #ar-site-header{
 --ec-gold:var(--ar-colors-accent)!important;--ec-edge:var(--ar-colors-line)!important;--ec-edge-active:var(--ar-colors-accent)!important;
 --ec-top:color-mix(in srgb,var(--ar-colors-accent) 14%,#1a1815)!important;--ec-bottom:#191715!important;
 --ec-hover-top:color-mix(in srgb,var(--ar-colors-accent) 22%,#1a1815)!important;--ec-hover-bottom:#23201c!important;
 --ec-selected-top:color-mix(in srgb,var(--ar-colors-accent) 28%,#1a1815)!important;--ec-selected-bottom:#29241f!important;
 --ec-cta-top:var(--ar-colors-accent)!important;--ec-cta-bottom:color-mix(in srgb,var(--ar-colors-accent) 80%,#171410)!important;
 --ec-cta-ink:var(--ar-colors-on-accent)!important;
 }
 /* Neutral-settings controls may show their earthy preview even in Grim. */
 html body.ar-monochrome #ar-cyber-customize,html body.ar-monochrome #ar-cyber-customize *,html body.ar-monochrome #ar-site-header{filter:none!important}
 html body.ar-monochrome:is([data-ar-accent-custom],[data-ar-background-custom]) :is(#ar-embed-scroll,#workspace,#sidebar,.workspace-top,#ar-workspace-actions){filter:none!important}
 html body.ar-monochrome:is([data-ar-accent-custom],[data-ar-background-custom]) #ar-workspace-actions *{filter:none!important}
 /* The dashboard Support action and related legacy action rows use the same finish. */
 html body:not(.ar-cyber) #workspace :is(.dashboard-support67>a,.dashboard-share66 button,.dashboard-share66>a,.reading-shortcuts>button,.overview57-actions>button,.overview57-links>button,.section-bridge56>button,.ar-related-tools>a){
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px!important;padding:10px 15px!important;
 border:1px solid var(--ec-edge)!important;border-radius:9px!important;background:var(--ec-fill)!important;color:var(--ec-ink)!important;
 box-shadow:var(--ec-shadow)!important;clip-path:none!important;text-shadow:none!important;text-decoration:none;
 }
 html body:not(.ar-cyber) #workspace :is(.dashboard-support67>a,.dashboard-share66 button,.dashboard-share66>a,.reading-shortcuts>button,.overview57-actions>button,.overview57-links>button,.section-bridge56>button,.ar-related-tools>a):hover{background:var(--ec-hover)!important;border-color:var(--ec-edge-active)!important}
 html body:not(.ar-cyber) #workspace :is(.dashboard-support67>a,.dashboard-share66 button,.dashboard-share66>a,.reading-shortcuts>button,.overview57-actions>button,.overview57-links>button,.section-bridge56>button,.ar-related-tools>a):focus-visible{outline:3px solid var(--ec-gold)!important;outline-offset:3px!important}
}
@media(forced-colors:none){
 /* Custom Grim hues are already muted mathematically. A second whole-subtree
    grayscale would erase the user's choice; keep photo/character leaf finishes. */
 html body.ar-monochrome:is([data-ar-accent-custom],[data-ar-background-custom]) .ar-mono-filter:not(img):not(svg){filter:none!important}
 /* Additional audited old action classes. Exclude semantic and companion UIs. */
 html body:not(.ar-cyber) #workspace :is(.ref-button:not(.cp58-verse-chip),.section-tabs>button,.study-navigation>button,.study-navigation>a,.related-studies>button,.related-studies>a,button.text-link,.guide-jump67 button,.cx-themes>button,.cx-step-list>button,.cx-related>button,.cx-related>a):not(:where(#ar-avdi-cage *,#ar-companion-dock *,#ar-personal-reset-dialog *,.danger,.error,.success,[data-status])){
 border:1px solid var(--ec-edge)!important;border-radius:8px!important;background:var(--ec-fill)!important;color:var(--ec-ink)!important;box-shadow:var(--ec-shadow)!important;clip-path:none!important;text-shadow:none!important;
 }
 html body:not(.ar-cyber) #workspace :is(.ref-button:not(.cp58-verse-chip),.section-tabs>button,.study-navigation>button,.study-navigation>a,.related-studies>button,.related-studies>a,button.text-link,.guide-jump67 button,.cx-themes>button,.cx-step-list>button,.cx-related>button,.cx-related>a):hover{background:var(--ec-hover)!important;border-color:var(--ec-edge-active)!important}
 html body:not(.ar-cyber) #workspace :is(.ref-button:not(.cp58-verse-chip),.section-tabs>button,.study-navigation>button,.study-navigation>a,.related-studies>button,.related-studies>a,button.text-link,.guide-jump67 button,.cx-themes>button,.cx-step-list>button,.cx-related>button,.cx-related>a):focus-visible{outline:3px solid var(--ec-gold)!important;outline-offset:3px!important}
 html body:not(.ar-cyber) #workspace :is(.gold-button,.outline-button,.quiet-button,.close-button):not(:where(#ar-avdi-cage *,#ar-companion-dock *,#ar-personal-reset-dialog *)){border-radius:9px!important}
 html body:not(.ar-cyber) .mobile-entry-actions>button{background:var(--ec-fill)!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important;border-radius:9px!important}
 html body:not(.ar-cyber) .mobile-entry-actions>button:hover{background:var(--ec-hover)!important}
 html body:not(.ar-cyber) .mobile-entry-actions>button:focus-visible{outline:3px solid var(--ec-gold)!important;outline-offset:3px!important}
}
@media(forced-colors:none){
 /* These settings controls are created after the original audited panels. */
 html body.ar-cyber #ar-cyber-customize-panel{background:var(--ar-cyber-panel-05,#050505)!important}
 html body.ar-cyber #ar-cyber-customize-toggle{background:var(--ar-cyber-panel-05,#050505)!important}
 html body.ar-cyber #ar-cyber-customize-toggle[aria-expanded="true"]{background:var(--ar-cyber-panel-12,#121212)!important}
 html body.ar-cyber #ar-cyber-layer-settings button{background:var(--ar-cyber-panel-08,#06080a)!important}
 html body.ar-cyber #ar-cyber-art-options button{background:var(--ar-cyber-panel-08,#06080a)!important}
}
/* Four eight-reference groups: 4 + 4 only when the group itself has room.
   Container width, not viewport width, also respects sidebars and reading zoom. */
html body #dashboard-message56 .message59-reference-group{container-type:inline-size;container-name:love-passages}
html body #dashboard-message56 .message59-reference-group .cp57-text-refs{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
}
html body #dashboard-message56 .message59-reference-group .cp57-text-refs>li{min-width:0!important}
html body #dashboard-message56 .message59-reference-group .cp58-verse-chip{min-height:44px!important;border-radius:8px!important;overflow-wrap:anywhere!important}
@container love-passages (min-width:536px){html body #dashboard-message56 .message59-reference-group .cp57-text-refs{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@container love-passages (max-width:279px){html body #dashboard-message56 .message59-reference-group .cp57-text-refs{grid-template-columns:minmax(0,1fr)!important}}

/* Revision 10: the beta notice is an Explorer-only content banner, outside
   both the header/runner and app shell. The margins are deliberate air gaps. */
html body #ar-embed-scroll > #ar-explorer-beta-banner{
 box-sizing:border-box!important;display:block!important;position:relative!important;inset:auto!important;z-index:auto!important;
 width:min(660px,calc(100% - 40px))!important;max-width:660px!important;min-height:0!important;
 margin:16px auto 20px!important;padding:7px 12px!important;
 border:1px solid var(--line,#5e4b38)!important;border-radius:7px!important;
 background:var(--surface,#17120e)!important;color:var(--muted,#c7bb9f)!important;
 font:400 11px/1.6 system-ui,sans-serif!important;letter-spacing:0!important;text-align:center!important;
 box-shadow:none!important;transform:none!important;float:none!important;clear:both!important;
}
html body #ar-explorer-beta-banner p{margin:0!important;padding:0!important;font:inherit!important;color:inherit!important}
html body #ar-explorer-beta-banner strong{font-weight:650!important;color:inherit!important}
html body #ar-explorer-beta-banner a{color:inherit!important;text-decoration:underline!important;text-underline-offset:3px}
html body #ar-explorer-beta-banner a:focus-visible{outline:2px solid currentColor!important;outline-offset:3px!important}
html body #ar-explorer-beta-banner .ar-explorer-mobile-tip{display:none}
html body.ar-monochrome #ar-embed-scroll > #ar-explorer-beta-banner{background:var(--ar-colors-surface,#151412)!important;color:var(--ar-colors-muted,#beb8ae)!important;border-color:var(--ar-colors-line,#56524c)!important}
html body.ar-cyber #ar-embed-scroll > #ar-explorer-beta-banner{background:var(--ar-cyber-panel-08,#080808)!important;color:var(--cyber-soft,#b5b9be)!important;border-color:var(--cyber-line,#65555a)!important;border-radius:3px!important}
@media(max-width:760px){
 html body #ar-embed-scroll > #ar-explorer-beta-banner{width:calc(100% - 32px)!important;margin:12px auto 16px!important;padding:7px 10px!important}
 html body #ar-explorer-beta-banner .ar-explorer-mobile-tip{display:block;font-size:10px;line-height:1.5}
}
@media(forced-colors:active){html body #ar-embed-scroll > #ar-explorer-beta-banner{background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important}}
@media print{html body #ar-embed-scroll > #ar-explorer-beta-banner{display:none!important}}
