.scm-banner[hidden], .scm-modal[hidden], .scm-preferences-button[hidden] { display: none !important; }
.scm-banner { position: fixed; z-index: 999999; left: 24px; bottom: 24px; width: min(560px, calc(100vw - 48px)); background: #fff; color: #151515; border: 1px solid rgba(0,0,0,.14); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.2); font-family: inherit; }
.scm-banner__inner { padding: 22px; }
.scm-banner__content h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.scm-banner__content p { margin: 0 0 12px; line-height: 1.5; }
.scm-banner__actions, .scm-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.scm-btn { appearance: none; border: 1px solid #1b1b1b; border-radius: 8px; padding: 11px 16px; cursor: pointer; font: inherit; font-weight: 600; }
.scm-btn--primary { background: #1b1b1b; color: #fff; }
.scm-btn--secondary { background: #fff; color: #1b1b1b; }
.scm-modal { position: fixed; z-index: 1000000; inset: 0; display: grid; place-items: center; padding: 20px; }
.scm-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.scm-modal__panel { position: relative; width: min(680px, 100%); max-height: 86vh; overflow: auto; background: #fff; color: #151515; border-radius: 14px; padding: 26px; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.scm-modal__close { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.scm-modal-open { overflow: hidden; }
.scm-category { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid #e6e6e6; }
.scm-category__copy { display: grid; gap: 5px; }
.scm-category__copy small { color: #5e5e5e; line-height: 1.4; }
.scm-switch { position: relative; flex: 0 0 auto; }
.scm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.scm-switch__track { display: block; width: 46px; height: 26px; background: #b9b9b9; border-radius: 999px; position: relative; transition: .2s; }
.scm-switch__track::after { content: ''; width: 20px; height: 20px; border-radius: 50%; background: #fff; position: absolute; left: 3px; top: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.scm-switch input:checked + .scm-switch__track { background: #1b1b1b; }
.scm-switch input:checked + .scm-switch__track::after { transform: translateX(20px); }
.scm-switch input:disabled + .scm-switch__track { opacity: .65; }
.scm-preferences-button { position: fixed; z-index: 999998; left: 18px; bottom: 18px; border: 1px solid rgba(0,0,0,.2); background: #fff; color: #151515; border-radius: 999px; padding: 9px 13px; box-shadow: 0 5px 20px rgba(0,0,0,.16); cursor: pointer; font: inherit; }
.scm-embed-placeholder { width: 100%; min-height: 260px; display: grid; place-items: center; align-content: center; gap: 14px; padding: 30px; text-align: center; background: #202020; color: #fff; border-radius: 8px; box-sizing: border-box; }
.scm-embed-placeholder p { margin: 0; font-size: 18px; }
.scm-embed-placeholder .scm-btn { border-color: #fff; }
.scm-debug { position: fixed; z-index: 1000001; right: 12px; bottom: 12px; max-width: min(720px, calc(100vw - 24px)); padding: 10px 12px; background: #171717; color: #fff; border-radius: 6px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 5px 20px rgba(0,0,0,.25); }
@media (max-width: 640px) {
  .scm-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .scm-banner__inner, .scm-modal__panel { padding: 18px; }
  .scm-banner__actions, .scm-modal__actions { display: grid; }
  .scm-btn { width: 100%; }
  .scm-preferences-button { left: 12px; bottom: 12px; }
  .scm-embed-placeholder { min-height: 200px; padding: 20px; }
}
