.sn-panel {
  --sn-red: var(--sp-red, #ff1f2f);
  --sn-red-deep: var(--sp-red-deep, #b50b18);
  --sn-panel: var(--sp-panel, #0d1317);
  --sn-soft: var(--sp-panel-soft, #11191e);
  --sn-text: var(--sp-text, #f7f7f8);
  --sn-muted: var(--sp-muted, #9ba3a9);
  --sn-line: rgba(255, 255, 255, .085);
  color: var(--sn-text);
}

.sn-panel *, .sn-public-host *, .sn-toast * { box-sizing: border-box; }
.sn-panel [hidden], .sn-toast[hidden], .sn-public-toast[hidden] { display: none !important; }

.sn-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 210px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 55, 70, .23);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 45%, rgba(255, 31, 47, .26), transparent 29%),
    linear-gradient(135deg, #12181d 0%, #090d10 58%, #17090c 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .28);
}

.sn-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 55, 70, .18);
  border-radius: 50%;
}

.sn-hero h2 { margin: 5px 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; color: #fff; }
.sn-hero p:last-child { max-width: 680px; margin: 0; color: #b7bec3; font-size: 16px; line-height: 1.7; }
.sn-hero > img { position: relative; z-index: 1; flex: 0 0 auto; width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 16px 40px rgba(255, 31, 47, .24); }

.sn-grid { display: grid; gap: 18px; }
.sn-grid--lead { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); margin-top: 20px; }

.sn-card, .sn-section {
  border: 1px solid var(--sn-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 25, 30, .96), rgba(10, 15, 18, .98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.sn-card { padding: 24px; }
.sn-card--master { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.sn-card__icon { --sp-nav-red: #e0201f; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(224, 32, 31, .36); border-radius: 17px; background: linear-gradient(145deg, rgba(224, 32, 31, .16), rgba(224, 32, 31, .065)); box-shadow: 0 0 18px rgba(224, 32, 31, .1); color: #fff; }
.sn-card__icon .sp-nav-icon__svg { height: 24px; width: 24px; }
.sn-card__copy h3 { margin: 3px 0 5px; color: #fff; font-size: 20px; }
.sn-card__copy p:last-child { margin: 0; color: var(--sn-muted); line-height: 1.5; }
.sn-kicker { margin: 0; color: var(--sn-red); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.sn-switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.sn-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sn-switch > span {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: #252d32;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.sn-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f4f5f5;
  box-shadow: 0 3px 9px rgba(0,0,0,.35);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.sn-switch input:checked + span { border-color: var(--sn-red); background: linear-gradient(135deg, var(--sn-red), var(--sn-red-deep)); box-shadow: 0 0 0 4px rgba(255,31,47,.1); }
.sn-switch input:checked + span::after { transform: translateX(20px); }
.sn-switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.sn-switch--large > span { width: 62px; height: 34px; }
.sn-switch--large > span::after { width: 26px; height: 26px; }
.sn-switch--large input:checked + span::after { transform: translateX(28px); }

.sn-device { display: flex; flex-direction: column; justify-content: center; }
.sn-device__status { display: flex; align-items: center; gap: 10px; }
.sn-device__status > span { width: 10px; height: 10px; border-radius: 50%; background: #a36f22; box-shadow: 0 0 0 5px rgba(216,145,39,.1); }
.sn-device[data-state="active"] .sn-device__status > span { background: #31c775; box-shadow: 0 0 0 5px rgba(49,199,117,.11); }
.sn-device[data-state="blocked"] .sn-device__status > span { background: var(--sn-red); box-shadow: 0 0 0 5px rgba(255,31,47,.11); }
.sn-device p { margin: 10px 0 17px; color: var(--sn-muted); line-height: 1.55; }
.sn-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sn-button, .sn-public-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sn-button:hover, .sn-public-action:hover { transform: translateY(-1px); }
.sn-button:focus-visible, .sn-public-action:focus-visible, .sn-icon-button:focus-visible, .sn-search-results button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sn-button:disabled, .sn-public-action:disabled { opacity: .55; cursor: wait; transform: none; }
.sn-button--primary { color: #fff; background: linear-gradient(135deg, var(--sn-red), var(--sn-red-deep)); box-shadow: 0 10px 24px rgba(181,11,24,.23); }
.sn-button--ghost { color: #dfe3e5; border-color: var(--sn-line); background: rgba(255,255,255,.035); }

.sn-section { margin-top: 20px; padding: clamp(22px, 4vw, 34px); }
.sn-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.sn-section__head h3 { margin: 4px 0 0; color: #fff; font-size: clamp(22px, 2.5vw, 30px); }
.sn-section__head > p { max-width: 480px; margin: 0; color: var(--sn-muted); line-height: 1.55; text-align: right; }

.sn-region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sn-region { display: flex; align-items: center; gap: 14px; min-height: 86px; padding: 17px; border: 1px solid var(--sn-line); border-radius: 18px; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.sn-region:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.17); }
.sn-region input { position: absolute; opacity: 0; }
.sn-region__mark { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: transparent; transition: .2s ease; }
.sn-region strong, .sn-region small { display: block; }
.sn-region strong { color: #fff; font-size: 16px; }
.sn-region small { margin-top: 3px; color: var(--sn-muted); }
.sn-region.is-selected { border-color: rgba(255,31,47,.55); background: linear-gradient(135deg, rgba(255,31,47,.13), rgba(255,31,47,.035)); }
.sn-region.is-selected .sn-region__mark { border-color: var(--sn-red); color: #fff; background: var(--sn-red); box-shadow: 0 6px 18px rgba(255,31,47,.22); }
.sn-region input:focus-visible ~ .sn-region__mark { outline: 2px solid #fff; outline-offset: 3px; }

.sn-followed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sn-artist-card, .sn-reminder { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-width: 0; padding: 12px; border: 1px solid var(--sn-line); border-radius: 17px; background: rgba(255,255,255,.025); }
.sn-avatar { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #282f34, #13181c); font-size: 13px; font-weight: 800; text-decoration: none; }
.sn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sn-artist-card > div, .sn-reminder > div { min-width: 0; }
.sn-artist-card strong, .sn-artist-card small, .sn-reminder strong, .sn-reminder small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-artist-card strong, .sn-reminder strong { color: #fff; }
.sn-artist-card small, .sn-reminder small { margin-top: 4px; color: var(--sn-muted); font-size: 11px; }
.sn-artist-card small span { color: #31c775; }
.sn-icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--sn-line); border-radius: 10px; color: #aeb5ba; background: rgba(255,255,255,.025); font-size: 20px; line-height: 1; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.sn-icon-button:hover { color: #fff; border-color: rgba(255,31,47,.4); background: rgba(255,31,47,.1); }

.sn-artist-search { position: relative; margin-top: 18px; }
.sn-artist-search > label { display: block; margin-bottom: 8px; color: #fff; font-weight: 750; }
.sn-search-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--sn-line); border-radius: 14px; background: #090d10; transition: border-color .18s ease, box-shadow .18s ease; }
.sn-search-box:focus-within { border-color: rgba(255,31,47,.6); box-shadow: 0 0 0 4px rgba(255,31,47,.09); }
.sn-search-box span { color: var(--sn-muted); font-size: 22px; }
.sn-search-box input { width: 100%; min-height: 48px; padding: 0; border: 0 !important; outline: 0 !important; color: #fff !important; background: transparent !important; box-shadow: none !important; font: inherit; }
.sn-search-results { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; left: 0; max-height: 330px; overflow: auto; padding: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: #0d1317; box-shadow: 0 24px 55px rgba(0,0,0,.52); }
.sn-search-results button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px; border: 0; border-radius: 12px; color: #fff; background: transparent; text-align: left; cursor: pointer; }
.sn-search-results button:hover { background: rgba(255,255,255,.055); }
.sn-search-results button:disabled { opacity: .52; cursor: default; }
.sn-search-results button .sn-avatar { width: 44px; height: 44px; border-radius: 12px; }
.sn-search-results button > span:last-child strong, .sn-search-results button > span:last-child small { display: block; }
.sn-search-results button small { margin-top: 3px; color: var(--sn-red); }
.sn-search-results > p { margin: 0; padding: 14px; color: var(--sn-muted); }

.sn-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sn-category { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 104px; padding: 17px; border: 1px solid var(--sn-line); border-radius: 18px; background: rgba(255,255,255,.024); transition: border-color .18s ease, background .18s ease; }
.sn-category:has(input:checked) { border-color: rgba(255,31,47,.25); background: linear-gradient(135deg, rgba(255,31,47,.065), rgba(255,255,255,.02)); }
.sn-category__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.045); font-size: 21px; }
.sn-category h4 { margin: 0 0 4px; color: #fff; font-size: 15px; }
.sn-category p { margin: 0; color: var(--sn-muted); font-size: 12px; line-height: 1.45; }

.sn-reminder-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sn-reminder > img, .sn-reminder__fallback { width: 58px; height: 50px; border-radius: 13px; object-fit: cover; }
.sn-reminder__fallback { display: grid; place-items: center; color: var(--sn-red); background: rgba(255,31,47,.09); font-size: 22px; }
.sn-reminder a { color: inherit; text-decoration: none; }
.sn-reminder a:hover { color: var(--sn-red); }
.sn-reminder__copy { display: grid; gap: 7px; }
.sn-reminder__copy > small { margin-top: 0; white-space: normal; }
.sn-reminder__timing { display: flex; align-items: center; gap: 8px; color: var(--sn-muted); font-size: 11px; }
.sn-reminder__timing select { min-width: 0; max-width: 180px; min-height: 34px; padding: 5px 30px 5px 10px; border: 1px solid var(--sn-line); border-radius: 10px; color: #fff; background: #090d10; font: inherit; cursor: pointer; }
.sn-reminder__timing select:focus-visible { outline: 2px solid var(--sn-red); outline-offset: 2px; }
.sn-reminder__timing select:disabled { opacity: .55; cursor: not-allowed; }
.sn-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed rgba(255,255,255,.12); border-radius: 14px; color: var(--sn-muted); text-align: center; }

.sn-toast { position: fixed; z-index: 999999; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid rgba(49,199,117,.35); border-radius: 14px; color: #fff; background: rgba(11,18,21,.96); box-shadow: 0 18px 45px rgba(0,0,0,.45); backdrop-filter: blur(18px); }
.sn-toast.is-error { border-color: rgba(255,31,47,.48); }

.sn-public-host { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; box-sizing: border-box; margin: 6px; vertical-align: middle; }
.sn-public-action { min-height: 46px; color: #fff; border-color: rgba(255,31,47,.42); background: linear-gradient(135deg, rgba(255,31,47,.14), rgba(181,11,24,.08)); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.sn-public-action__icon { display: inline-grid; flex: 0 0 20px; height: 20px; place-items: center; width: 20px; }
.sn-public-action .sn-public-action__bell { display: block; height: 20px; max-height: none; max-width: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; vector-effect: non-scaling-stroke; width: 20px; }
.sn-public-action .sn-public-action__bell-accent { stroke: #e0201f; }
.sn-public-action.is-active { border-color: var(--sn-red, #ff1f2f); background: linear-gradient(135deg, #ff1f2f, #b50b18); box-shadow: 0 12px 28px rgba(181,11,24,.24); }
.sn-public-action.is-active .sn-public-action__bell-accent { stroke: #ffe4e5; }
.sn-public-reminder-control { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 5px 8px 5px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: #b7c0c6; background: rgba(9,13,16,.9); font: 600 12px/1.2 Inter, system-ui, sans-serif; }
.sn-public-reminder-control[hidden], .sn-public-reminder-status[hidden] { display: none !important; }
.sn-public-reminder-control select { min-height: 34px; padding: 5px 30px 5px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: #fff; background: #11171b; font: inherit; cursor: pointer; }
.sn-public-reminder-control select:focus-visible { outline: 2px solid #ff1f2f; outline-offset: 2px; }
.sn-public-reminder-control select:disabled { opacity: .6; cursor: not-allowed; }
.sn-public-reminder-status { display: block; flex: none; width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; padding: 0 4px; overflow-wrap: anywhere; white-space: normal; color: #aeb8be; font: 500 11px/1.35 Inter, system-ui, sans-serif; }
.sn-public-toast { font-family: Inter, system-ui, sans-serif; }

@media (max-width: 900px) {
  .sn-grid--lead, .sn-category-grid, .sn-followed-grid, .sn-reminder-list { grid-template-columns: 1fr; }
  .sn-section__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sn-section__head > p { max-width: none; text-align: left; }
}

@media (max-width: 620px) {
  .sn-hero { min-height: 0; padding: 26px 22px; border-radius: 22px; }
  .sn-hero > img { width: 64px; height: 64px; border-radius: 18px; }
  .sn-hero h2 { font-size: 30px; }
  .sn-grid--lead { grid-template-columns: minmax(0, 1fr); }
  .sn-card--master { grid-template-columns: auto 1fr; }
  .sn-card--master .sn-switch { grid-column: 1 / -1; justify-self: end; }
  .sn-region-grid { grid-template-columns: 1fr; }
  .sn-section, .sn-card { padding: 18px; border-radius: 18px; }
  .sn-category { grid-template-columns: auto 1fr; }
  .sn-category .sn-switch { grid-column: 2; }
  .sn-toast { right: 16px; bottom: 16px; }
  .sn-public-host { align-items: stretch; flex-direction: column; width: min(100%, 330px); max-width: 100%; margin-right: 0; margin-left: 0; }
  .sn-public-action, .sn-public-reminder-control { justify-content: center; width: 100%; }
  .sn-public-reminder-status { align-self: stretch; width: 100%; padding: 0 2px; }
  .sn-public-host--reminder { flex: 1 1 100%; width: 100%; max-width: 100%; margin: 8px 0 0; gap: 10px; }
  .sn-public-host--reminder .sn-public-action { min-height: 52px; justify-content: center; width: 100%; padding: 12px 18px; border-radius: 16px; }
  .sn-public-host--reminder .sn-public-reminder-control { min-height: 48px; justify-content: space-between; width: 100%; padding: 6px 8px 6px 14px; border-radius: 14px; }
  .sn-public-host--reminder .sn-public-reminder-control select { flex: 0 1 190px; max-width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .sn-panel *, .sn-public-host * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
