/* JoyJoy V467 — Shieldy log accordions and TuneTune save dock placement. */
body[data-account-page="bots"] [data-module-panel="sh-punishments"]{
  --shieldy-log-card-bg:var(--account-surface,#fff);
  --shieldy-log-head-bg:var(--account-surface-soft,#edf7f0);
  --shieldy-log-item-bg:var(--account-surface-soft,#edf7f0);
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] :is(
  .log-collection-master,
  .shieldy-routing-pro-card,
  .unified-log-card,
  .log-style-card
){
  background:var(--shieldy-log-card-bg)!important;
  color:var(--account-text,#173326)!important;
  border-color:var(--account-border,#cfe2d5)!important;
  opacity:1!important;
  filter:none!important;
  box-shadow:0 8px 24px rgba(20,55,38,.055)!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-head{
  background:var(--shieldy-log-head-bg)!important;
  color:var(--account-text,#173326)!important;
  border-radius:13px!important;
  opacity:1!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area{
  background:transparent!important;
  color:inherit!important;
  pointer-events:auto!important;
  cursor:pointer!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area:hover,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area:focus-visible{
  background:color-mix(in srgb,var(--account-accent,#23865a) 8%,var(--shieldy-log-head-bg))!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-body{
  background:var(--shieldy-log-card-bg)!important;
  color:var(--account-text,#173326)!important;
  opacity:1!important;
  filter:none!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card:not(.is-open)>.unified-log-body,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-body[hidden]{
  display:none!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card.is-open>.unified-log-body:not([hidden]){
  display:grid!important;
  gap:16px!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] :is(
  .log-event-grid>label,
  .bot-log-picker>label,
  .log-display-grid>.toggle-row,
  .shieldy-routing-toggle-grid>.routing-display-item
){
  background:var(--shieldy-log-item-bg)!important;
  color:var(--account-text,#173326)!important;
  border-color:var(--account-border,#cfe2d5)!important;
  opacity:1!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] :is(input,select,textarea){
  background:var(--account-surface-soft,#edf7f0)!important;
  color:var(--account-text,#173326)!important;
  border-color:var(--account-border,#cfe2d5)!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card.is-disabled{
  opacity:1!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card.is-disabled .unified-log-head{
  opacity:.72!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card.is-disabled .unified-log-body{
  opacity:.55!important;
}
html[data-theme="dark"] body[data-account-page="bots"] [data-module-panel="sh-punishments"]{
  --shieldy-log-card-bg:var(--account-surface,#0e2118);
  --shieldy-log-head-bg:var(--account-surface-soft,#132c20);
  --shieldy-log-item-bg:var(--account-surface-soft,#132c20);
}
/* The canonical TuneTune dock now belongs after the journal, not between sections. */
body[data-account-page="bots"] [data-module-panel="tt-general"]>.tt-general-dock-after-journal-v467{
  margin-top:18px!important;
}
body[data-account-page="bots"] [data-module-panel="tt-general"] .journal-save-bar-v202.is-merged-into-general-save-v466,
body[data-account-page="bots"] [data-module-panel="tt-general"] .journal-save-bar-v202[aria-hidden="true"]{
  display:none!important;
}

/* V471: General and Journal share one save dock on all three bot pages. */
body[data-account-page="bots"] :is(
  [data-module-panel="tt-general"],
  [data-module-panel="sh-general"],
  [data-module-panel="gm-general"]
) .journal-save-bar-v202 {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body[data-account-page="bots"] :is(
  [data-module-panel="tt-general"],
  [data-module-panel="sh-general"],
  [data-module-panel="gm-general"]
) > .general-dock-after-journal-v471 {
  margin-top: 18px !important;
}

/* V473: final opaque and uniform Shieldy log row colors.
   The previous hover rule painted only the button portion of the row, leaving
   the switch cell in the base color. Disabled rows were also faded with opacity,
   allowing the decorative page background to show through. */
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-head,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-body {
  background-image:none!important;
  filter:none!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card {
  background-color:var(--shieldy-log-card-bg)!important;
  opacity:1!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-head,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card.is-open>.unified-log-head,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card.is-disabled>.unified-log-head {
  background-color:var(--shieldy-log-head-bg)!important;
  opacity:1!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area:hover,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area:focus,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area:focus-visible,
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-toggle-area:active {
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-head:has(.unified-log-toggle-area:hover),
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-head:has(.unified-log-toggle-area:focus-visible) {
  background-color:var(--shieldy-log-head-bg)!important;
  border-color:var(--account-border-strong,var(--account-border,#cfe2d5))!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-card.is-disabled :is(
  .unified-log-title,
  .unified-log-icon,
  .unified-log-count,
  .unified-log-head,
  .unified-log-body
) {
  opacity:1!important;
  filter:none!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] .unified-log-body {
  background-color:var(--shieldy-log-card-bg)!important;
}
body[data-account-page="bots"] [data-module-panel="sh-punishments"] :is(
  .log-event-grid>label,
  .bot-log-picker>label,
  .log-display-grid>.toggle-row,
  .shieldy-routing-toggle-grid>.routing-display-item,
  .log-scope-grid
) {
  background-color:var(--shieldy-log-item-bg)!important;
  background-image:none!important;
}
