/*
 * StileJuventus V9.429 — correzioni di contrasto chirurgiche Giorno/Notte.
 * Caricato per ultimo su frontend e amministrazione.
 */

/* Modifica profilo: fotocamera e rimozione vivono sopra immagini/scuri.
   Le geometrie SVG devono restare realmente bianche, non solo ereditare color. */
html[data-slr-theme] body.slr-author-social-page :is(
  .slr-author-edit-media-actions label,
  .slr-author-edit-media-actions button,
  .slr-author-edit-avatar label
){
  background:rgba(15,20,25,.84)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:rgba(255,255,255,.18)!important;
}
html[data-slr-theme] body.slr-author-social-page :is(
  .slr-author-edit-media-actions label,
  .slr-author-edit-media-actions button,
  .slr-author-edit-avatar label
):is(:hover,:focus-visible,:active){
  background:rgba(15,20,25,.97)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:rgba(255,255,255,.38)!important;
}
html[data-slr-theme] body.slr-author-social-page :is(
  .slr-author-edit-media-actions label,
  .slr-author-edit-media-actions button,
  .slr-author-edit-avatar label
) svg{
  color:#fff!important;
  fill:none!important;
  stroke:#fff!important;
}
html[data-slr-theme] body.slr-author-social-page :is(
  .slr-author-edit-media-actions label,
  .slr-author-edit-media-actions button,
  .slr-author-edit-avatar label
) svg :is(path,circle,line,polyline,polygon,rect){
  fill:none!important;
  stroke:#fff!important;
}

/* Admin > Nuovo/Modifica articolo > Approfondimenti collegati.
   Il vecchio fallback --admin-panel era nero anche nel tema Giorno. */
html[data-slr-theme] body.admin-shell .slr-internal-links-admin :is(
  .slr-internal-links-summary,
  .slr-internal-link-selected,
  .slr-internal-link-suggestion,
  .slr-internal-links-empty
){
  background:var(--admin-surface-soft,var(--panel2))!important;
  color:var(--admin-text,var(--text))!important;
  -webkit-text-fill-color:var(--admin-text,var(--text))!important;
  border-color:var(--admin-border,var(--line))!important;
}
html[data-slr-theme] body.admin-shell .slr-internal-links-admin :is(
  h2,
  .slr-internal-links-summary strong,
  .slr-internal-links-suggestions-head strong,
  .slr-internal-link-selected strong,
  .slr-internal-link-suggestion strong
){
  color:var(--admin-text,var(--text))!important;
  -webkit-text-fill-color:var(--admin-text,var(--text))!important;
}
html[data-slr-theme] body.admin-shell .slr-internal-links-admin :is(
  .slr-internal-links-summary small,
  .slr-internal-links-suggestions-head small,
  .slr-internal-link-selected small,
  .slr-internal-link-suggestion small,
  .slr-internal-links-empty
){
  color:var(--admin-muted,var(--muted))!important;
  -webkit-text-fill-color:var(--admin-muted,var(--muted))!important;
  opacity:1!important;
}
html[data-slr-theme] body.admin-shell .slr-internal-links-admin .slr-internal-link-suggestion:hover,
html[data-slr-theme] body.admin-shell .slr-internal-links-admin .slr-internal-link-suggestion:focus-visible{
  background:var(--admin-surface-hover,var(--panel2))!important;
  color:var(--admin-text,var(--text))!important;
  -webkit-text-fill-color:var(--admin-text,var(--text))!important;
  border-color:var(--admin-nav-active,var(--accent))!important;
}
html[data-slr-theme] body.admin-shell .slr-internal-links-admin .slr-internal-link-suggestion:disabled{
  background:var(--admin-surface-soft,var(--panel2))!important;
  color:var(--admin-muted,var(--muted))!important;
  -webkit-text-fill-color:var(--admin-muted,var(--muted))!important;
  opacity:.62!important;
}
html[data-slr-theme="light"] body.admin-shell .slr-internal-links-admin .slr-internal-link-reasons i{
  background:#f8edf1!important;
  color:#821a38!important;
  -webkit-text-fill-color:#821a38!important;
}
html[data-slr-theme="dark"] body.admin-shell .slr-internal-links-admin .slr-internal-link-reasons i{
  background:#26200f!important;
  color:#f0b90b!important;
  -webkit-text-fill-color:#f0b90b!important;
}
html[data-slr-theme] body.admin-shell .slr-internal-links-admin .slr-internal-link-suggestion.is-selected{
  border-color:var(--admin-success-text,#168a52)!important;
}
html[data-slr-theme] body.admin-shell .slr-internal-links-admin .slr-internal-link-order button{
  background:var(--admin-surface,var(--panel))!important;
  color:var(--admin-text,var(--text))!important;
  -webkit-text-fill-color:var(--admin-text,var(--text))!important;
  border-color:var(--admin-border,var(--line))!important;
}
html[data-slr-theme] body.admin-shell .slr-internal-links-admin .slr-internal-link-order button:hover{
  background:var(--admin-surface-hover,var(--panel2))!important;
  border-color:var(--admin-nav-active,var(--accent))!important;
}
