/* Settings → Discord Backup (v3.1.173). Own classes only (.sb-db-*); cards, switches, chips and
   buttons are the site's shared ones. See HOOKS.md ("Discord Backup"). */
#screen .sb-db{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
#screen .sb-db .card{margin-bottom:14px}
#screen .sb-db .cc-status{display:inline-flex;align-items:center;gap:7px;text-transform:uppercase}
#screen .sb-db .cc-status[data-state="idle"]{color:#b7aabe}
#screen .sb-db-big{margin:14px 0 6px;font-size:20px;font-weight:750;color:#f5edff;line-height:1.3;overflow-wrap:anywhere}
#screen .sb-db-hint,#screen .sb-db-meta{display:block;color:#b7aabe;font-size:12.5px;line-height:1.45}
#screen .sb-db-meta{margin:14px 0 0}
#screen .sb-db-warn{margin:12px 0 0;color:#f0c36a;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#screen .sb-db-ok{margin:14px 0 0;color:#6fdc9c;font-size:14px;line-height:1.5}
#screen .sb-db-note{margin:10px 0 0;color:#c9b8d8;font-size:13px;line-height:1.5;overflow-wrap:anywhere}

/* Daily switch and time */
#screen .sb-db-switchrow{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:14px 0 12px;border-top:1px solid rgba(200,180,230,.12)}
#screen .sb-db-switchtext{display:flex;flex-direction:column;gap:3px;min-width:0}
#screen .sb-db-switchtext strong{font-size:15px;color:#f1e8fb;font-weight:650}
#screen .sb-db-switchtext small{color:#b7aabe;font-size:12.5px;line-height:1.45}
#screen .sb-db-switchrow .live-switch{margin-top:0}
#screen .sb-db-timerow{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:14px;row-gap:6px}
#screen .sb-db-timerow .field{margin:0!important}
#screen .sb-db input.sb-db-time{justify-self:end;width:140px!important;max-width:100%;box-sizing:border-box;text-align:center;color-scheme:dark;-webkit-appearance:none;appearance:none}
#screen .sb-db input.sb-db-time::-webkit-date-and-time-value{text-align:center}
#screen .sb-db-timerow .sb-db-hint{grid-column:1 / -1}
#screen .sb-db-actions{display:flex;flex-direction:column;gap:10px}
#screen .sb-db-actions button.secondary{width:100%}

/* Running job */
#screen .sb-db-jobtext{margin:12px 0 10px;font-size:15px;color:#f1e8fb;line-height:1.45;overflow-wrap:anywhere}
#screen .sb-db-bar{position:relative;height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;margin-bottom:8px}
#screen .sb-db-bar span{position:absolute;inset:0 auto 0 0;border-radius:99px;background:linear-gradient(90deg,#9d6ad8,#a3e635);transition:width .4s ease}
#screen .sb-db-bar span[data-indeterminate]{width:30%!important;animation:sb-db-slide 1.4s ease-in-out infinite}
@keyframes sb-db-slide{0%{left:-30%}100%{left:100%}}
#screen .sb-db-spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(179,136,235,.3);border-top-color:#b388eb;animation:sb-db-spin .9s linear infinite}
@keyframes sb-db-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#screen .sb-db-spinner,#screen .sb-db-bar span[data-indeterminate]{animation:none}}
#screen .sb-db-x{flex:none;width:44px;height:44px;min-height:0;padding:0;border-radius:50%;border:1px solid rgba(200,180,230,.25);background:none;color:#c9b8d8;font-size:14px;cursor:pointer;box-shadow:none}

/* Snapshot list */
#screen .sb-db-count{color:#b7aabe;font-size:13px}
#screen .sb-db-snap{display:flex;flex-direction:column;gap:4px;padding:14px 0;border-top:1px solid rgba(200,180,230,.1)}
#screen .sb-db-list .row + .sb-db-snap{margin-top:10px}
#screen .sb-db-snap[data-picked="true"]{border-top-color:rgba(163,230,53,.45)}
#screen .sb-db-snaphead{display:flex;align-items:center;justify-content:space-between;gap:10px}
#screen .sb-db-snaptitle{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
#screen .sb-db-snaptitle strong{font-size:15px;color:#f5edff}
#screen .sb-db-kind{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11.5px;line-height:1.35;border:1px solid rgba(179,136,235,.35);color:#d8c4f2}
#screen .sb-db-kind[data-kind="daily"]{color:#a3e635;border-color:rgba(163,230,53,.4)}
#screen .sb-db-kind[data-kind="before"]{color:#7cc4ff;border-color:rgba(124,196,255,.4)}
#screen .sb-db-trash{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:0;padding:0;border-radius:50%;border:1px solid rgba(243,161,180,.35);background:none;color:#f3a1b4;cursor:pointer;box-shadow:none}
#screen .sb-db-trash svg{width:18px;height:18px}
#screen .sb-db-trash:disabled{opacity:.4}
#screen .sb-db-changes,#screen .sb-db-snapmeta{font-size:12.5px;color:#b7aabe;line-height:1.45;overflow-wrap:anywhere}
#screen .sb-db-snapwarn{font-size:12.5px;color:#f0c36a;line-height:1.45}
#screen .sb-db-changesbtn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;background:none;border:0;color:#dcc6f5;font:inherit;font-size:13px;text-align:left;cursor:pointer;box-shadow:none;-webkit-tap-highlight-color:transparent}
#screen .sb-db-chev{flex:none;width:7px;height:7px;border-right:2px solid #b388eb;border-bottom:2px solid #b388eb;transform:rotate(-45deg);transition:transform .2s}
#screen [aria-expanded="true"] > .sb-db-chev{transform:rotate(45deg)}
#screen .sb-db-lines{margin:0 0 4px;padding-left:18px;color:#e9dcf5;font-size:13px;line-height:1.55}
#screen .sb-db-lines li{overflow-wrap:anywhere}
#screen .sb-db-more{list-style:none;margin-left:-18px;color:#b7aabe}
#screen .sb-db-snapacts{display:flex;gap:8px;margin-top:6px}
#screen .sb-db-small{min-height:44px!important;padding:6px 14px}

/* Restore preview */
#screen .sb-db-preview{border-color:rgba(163,230,53,.35)}
#screen .sb-db-part{border-top:1px solid rgba(200,180,230,.12);padding:2px 0}
#screen .sb-db-preview .hint + .sb-db-part,#screen .sb-db-preview .sb-db-note + .sb-db-part{margin-top:12px}
#screen .sb-db-part[data-on="false"] .sb-db-parttext strong{color:#c9b8d8}
#screen .sb-db-parthead{display:flex;align-items:center;gap:12px}
#screen .sb-db-partbtn{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:14px 0;background:none;border:0;color:inherit;text-align:left;font:inherit;cursor:pointer;min-height:44px;box-shadow:none;-webkit-tap-highlight-color:transparent}
#screen .sb-db-partbtn:focus-visible{outline:2px solid #b388eb;outline-offset:4px;border-radius:12px}
#screen .sb-db-parttext{display:flex;flex-direction:column;gap:3px;min-width:0}
#screen .sb-db-parttext strong{font-size:15px;color:#f5edff;font-weight:700;overflow-wrap:anywhere}
#screen .sb-db-parttext small{font-size:12.5px;color:#b7aabe}
#screen .sb-db-partbtn .sb-db-chev{margin-left:auto}
#screen .sb-db-parthint{display:block;margin:-4px 0 10px;font-size:12.5px;color:#b7aabe;line-height:1.45}
#screen .sb-db-items{list-style:none;margin:0 0 10px;padding:0}
#screen .sb-db-item{padding:0;border-top:1px solid rgba(200,180,230,.07)}
#screen .sb-db-itemrow{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:10px 0;cursor:pointer;-webkit-tap-highlight-color:transparent}
#screen .sb-db-item[data-blocked="true"]{opacity:.65;padding:10px 0 10px 38px}
/* design-system.css makes every #screen input full width, 48 px tall with padding (all !important). */
#screen .sb-db input.sb-db-check{flex:none;display:block;box-sizing:border-box;width:26px!important;height:26px!important;min-height:26px!important;max-width:26px;padding:0!important;margin:1px 0 0;
  -webkit-appearance:none;appearance:none;border-radius:8px!important;border:1.5px solid rgba(179,136,235,.6)!important;background:rgba(11,9,19,.38)!important;cursor:pointer;transition:background .15s,border-color .15s!important}
#screen .sb-db input.sb-db-check:checked{background:#9d6ad8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat!important;border-color:#9d6ad8!important}
#screen .sb-db input.sb-db-check:disabled{opacity:.4;cursor:default}
#screen .sb-db input.sb-db-check:focus-visible{outline:2px solid #b388eb;outline-offset:2px}
#screen .sb-db-itemtext{display:flex;flex-direction:column;gap:3px;min-width:0}
#screen .sb-db-itemtext strong{font-size:14px;color:#f1e8fb;overflow-wrap:anywhere}
#screen .sb-db-itemtext small{font-size:12.5px;color:#b7aabe;line-height:1.45;overflow-wrap:anywhere}
#screen .sb-db-item[data-blocked="true"] small{color:#f0c36a}
#screen .sb-db-result .sb-db-big{font-size:16px}
/* v3.1.174: checkup fixes */
/* A 46×44 tap area around the 38×22 switch (design-system.css sizes every input with !important). */
#screen .sb-db .live-switch .live-switch-input{inset:auto!important;left:-4px!important;top:-11px!important;width:46px!important;height:44px!important;min-height:44px!important;max-width:none!important;padding:0!important}
#screen .sb-db-swspacer{flex:none;width:38px}
#screen .sb-db-preview{scroll-margin-top:90px}
#screen .sb-db-snap{scroll-margin-top:90px}
#screen .sb-db-jobcount:empty,#screen .sb-db-jobnote:empty{display:none}
