/* JoyJoy V515 — timer cleanup: no native duplicate, calm controls and polished preview. */
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"]
  .shieldy-message-timer-card .custom-delivery-field > #custom-timer-channel-id.jj-channel-native-v512,
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"]
  .shieldy-message-timer-card #custom-timer-channel-id[hidden]{
  display:none!important;
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none!important;
  overflow:hidden!important;
}

/* The primary scheduler fields use soft filled controls instead of detached border strips. */
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields{
  gap:14px 18px!important;
  align-items:start!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields>.custom-delivery-field{
  padding:0!important;
  overflow:visible!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields
  .custom-delivery-field>:is(select,.timer-datepicker),
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields
  .custom-delivery-field>.jj-channel-picker-v512{
  width:100%!important;
  min-width:0!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields
  :is(select,.timer-datepicker-trigger,.jj-channel-trigger-v512){
  border:0!important;
  background:var(--shieldy-tools-input,var(--account-surface-soft,#eef6fc))!important;
  box-shadow:0 1px 2px rgba(30,56,82,.08)!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields
  :is(select,.timer-datepicker-trigger,.jj-channel-trigger-v512):hover,
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields
  :is(select,.timer-datepicker-trigger,.jj-channel-trigger-v512):focus-visible,
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields
  .jj-channel-picker-v512.is-open .jj-channel-trigger-v512{
  background:var(--shieldy-tools-surface,var(--account-surface,#fff))!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--shieldy-accent,#2da44e) 18%,transparent),0 4px 12px rgba(30,56,82,.08)!important;
  outline:0!important;
}
html[data-theme="dark"] body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-primary-fields
  :is(select,.timer-datepicker-trigger,.jj-channel-trigger-v512){
  box-shadow:0 1px 2px rgba(0,0,0,.28)!important;
}

/* Preview header */
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .shieldy-message-timer-preview{
  gap:10px!important;
  padding:12px!important;
  border-color:color-mix(in srgb,var(--shieldy-accent,#2da44e) 22%,var(--account-border))!important;
  border-radius:16px!important;
  background:var(--shieldy-tools-surface,var(--account-surface,#fff))!important;
  box-shadow:0 8px 24px rgba(31,61,89,.07)!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-card-title{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:2px 2px 1px!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-card-title::before{
  content:""!important;
  width:32px!important;
  height:32px!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--shieldy-accent,#2da44e) 12%,var(--shieldy-tools-soft,var(--account-surface-soft,#eef6fc)))!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232da44e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-card-title>div{
  gap:2px!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] #custom-timer-preview-channel{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  max-width:150px!important;
  min-height:28px!important;
  padding:5px 9px!important;
  overflow:hidden!important;
  border:1px solid var(--account-border)!important;
  border-radius:999px!important;
  background:var(--shieldy-tools-soft,var(--account-surface-soft,#eef6fc))!important;
  color:var(--account-muted,#667085)!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font:900 10px/1.2 Nunito,sans-serif!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] #custom-timer-preview-channel.is-ready{
  border-color:color-mix(in srgb,var(--shieldy-accent,#2da44e) 38%,var(--account-border))!important;
  background:color-mix(in srgb,var(--shieldy-accent,#2da44e) 10%,var(--shieldy-tools-surface,var(--account-surface,#fff)))!important;
  color:var(--shieldy-accent,#2da44e)!important;
}

/* Lolka-like preview window without excessive empty space. */
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-lolka-preview{
  overflow:hidden!important;
  border:1px solid var(--account-border)!important;
  border-radius:13px!important;
  background:var(--shieldy-tools-soft,var(--account-surface-soft,#eef6fc))!important;
  box-shadow:none!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-lolka-preview .lolka-preview-appbar{
  min-height:50px!important;
  padding:8px 10px!important;
  border:0!important;
  background:#1e293b!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-lolka-preview .lolka-preview-app-identity img{
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-lolka-preview .lolka-preview-chat-area{
  min-height:205px!important;
  padding:14px 12px 12px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--shieldy-tools-soft,var(--account-surface-soft,#eef6fc)) 72%,#fff) 0%,var(--shieldy-tools-soft,var(--account-surface-soft,#eef6fc)) 100%)!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-message{
  display:grid!important;
  gap:6px!important;
  align-content:start!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-message .welcome-message-author{
  margin:0!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-message .welcome-message-author>img{
  width:36px!important;
  height:36px!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-plain-text,
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-embed,
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-buttons{
  margin-left:46px!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-plain-text{
  margin-top:0!important;
  padding:0!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-lolka-preview .lolka-preview-composer{
  min-height:42px!important;
  margin:0 10px 10px!important;
  border:1px solid var(--account-border)!important;
  border-radius:11px!important;
  background:var(--shieldy-tools-surface,var(--account-surface,#fff))!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-meta{
  gap:7px!important;
}
body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-meta>div{
  min-height:48px!important;
  padding:8px 10px!important;
  border:0!important;
  background:var(--shieldy-tools-soft,var(--account-surface-soft,#eef6fc))!important;
}
html[data-theme="dark"] body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .shieldy-message-timer-preview{
  box-shadow:0 10px 28px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-lolka-preview .lolka-preview-chat-area{
  background:linear-gradient(180deg,#10283d 0%,#0e2235 100%)!important;
}

@media(max-width:620px){
  body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] .timer-preview-card-title{
    grid-template-columns:32px minmax(0,1fr)!important;
  }
  body[data-account-page="bots"] #panel-bot-control [data-module-panel="sh-other"] #custom-timer-preview-channel{
    grid-column:1/-1!important;
    justify-self:start!important;
    max-width:100%!important;
  }
}
