/* r1104: readable local text surfaces over either selected scene.
 * Paint stays inside ambience; native hidden/disclosure state and audio retain
 * their owners. The dark alpha is readable even over a white scene pixel. */
@layer sukun-r1104-ambience-readable {
html body #tab-amb #hybridLaunch {
 background:rgba(5,22,32,.94)!important;
 border-color:rgba(191,164,109,.55)!important;
 color:#fff1d5!important;
 box-shadow:inset 0 1px rgba(255,241,213,.12)!important;
}
html body #tab-amb #hybridLaunch .hybridLaunchText>b {
 color:#fff1d5!important;
 -webkit-text-fill-color:currentColor!important;opacity:1!important;
 text-shadow:none!important;
}
html body #tab-amb #hybridLaunch .hybridLaunchText>small {
 color:#dce9e5!important;
 -webkit-text-fill-color:currentColor!important;opacity:1!important;
 text-shadow:none!important;
}
html body #tab-amb :is(.r916EmptySounds,.hint,.pD,[role="status"]) {
 background:rgba(5,22,32,.94)!important;
 color:#dce9e5!important;
 -webkit-text-fill-color:currentColor!important;opacity:1!important;
 text-shadow:none!important;border-radius:10px!important;
}
html body #tab-amb :is(.hint,.pD) {
 padding:8px 10px!important;
}
html body #tab-amb :is(.bozet,.preAccN) {
 background:#071c2b!important;
 color:#fff1d5!important;
 -webkit-text-fill-color:currentColor!important;opacity:1!important;
 text-shadow:none!important;
}
/* Channel descriptions already have their own dark card. Brighten the text
 * without adding another frame or changing the compact control geometry. */
html body #tab-amb #mixer :is(.chName small,.r409AmbDiff),
html body #tab-amb #sessRow>.sess small {
 color:#dce9e5!important;
 -webkit-text-fill-color:currentColor!important;opacity:1!important;
 text-shadow:none!important;
}
html body #tab-amb #mixer .hybridBadge {
 background:#092b25!important;color:#c0f3dc!important;
 -webkit-text-fill-color:currentColor!important;opacity:1!important;
}
/* The hybrid editor is portalled outside the tab. Its labels and status use
 * the same readable palette when opened from the ambience launcher. */
html body #hybridSheet .hybridPanel {
 background:#071725!important;color:#fff1d5!important;
}
html body #hybridSheet :is(.hybridBox label,.hybridStatus,.hybridHint,.hybridMeter span) {
 color:#dce9e5!important;
 -webkit-text-fill-color:currentColor!important;opacity:1!important;
}
/* r1106: put the microphone immediately under the recorded ambience list. */
html body #tab-amb #mixer>#r1029MicCard {
 margin:0 0 12px!important;
}
/* r1107: native outer disclosure contains every preset filter and category. */
html body #tab-frq>#r1107PresetsBox {
 margin:12px 0!important;padding:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
html body #tab-frq>#r1107PresetsBox>summary {
 background:rgba(5,22,32,.94)!important;
 color:#fff1d5!important;min-height:44px!important;box-sizing:border-box;
 padding:8px 36px 8px 10px!important;border-radius:10px!important;
 cursor:pointer;list-style:none!important;
}
html body #tab-frq #r1106PresetsTitle {
 color:#fff1d5!important;-webkit-text-fill-color:currentColor!important;
 opacity:1!important;text-shadow:none!important;margin:0!important;
}
html body #tab-frq #r1106PresetsTitle::after {content:none!important;}
html body #tab-frq>#r1107PresetsBox>summary:focus-visible {
 outline:2px solid #fff1d5!important;outline-offset:3px!important;
}
html body #r1107PresetsBox>#presets {margin-top:10px!important;}
/* Hidden parents must not leave an expanded category clipped to a 2px measure.
 * Closing a category still uses its owner's existing zero-height rule. */
html body #r1107PresetsBox #presets .preAcc.open>.preAccBody {
 max-height:none!important;height:auto!important;
}
@media(prefers-reduced-transparency:reduce) {
 html body #tab-frq>#r1107PresetsBox>summary {background:#071725!important;}
 html body #tab-amb :is(#hybridLaunch,.r916EmptySounds,.hint,.pD,[role="status"]) {
  background:#071725!important;
 }
}
@media(forced-colors:active) {
 html body #tab-frq>#r1107PresetsBox>summary,
 html body #tab-frq #r1106PresetsTitle {
  background:Canvas!important;color:CanvasText!important;
  -webkit-text-fill-color:currentColor!important;
 }
 html body #tab-amb :is(#hybridLaunch,.r916EmptySounds,.hint,.pD,[role="status"],.bozet,.preAccN),
 html body #tab-amb #mixer .hybridBadge,
 html body #hybridSheet .hybridPanel {
  background:Canvas!important;color:CanvasText!important;
  border-color:CanvasText!important;box-shadow:none!important;
 }
 html body #tab-amb #hybridLaunch .hybridLaunchText>:is(b,small),
 html body #tab-amb #mixer :is(.chName small,.r409AmbDiff),
 html body #tab-amb #sessRow>.sess small,
 html body #hybridSheet :is(.hybridBox label,.hybridStatus,.hybridHint,.hybridMeter span) {
  color:CanvasText!important;-webkit-text-fill-color:currentColor!important;
 }
}
}
