#stockAlertButton {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 5px !important;
  border-radius: 8px;
  box-shadow: none !important;
  background-image: none !important;
  overflow: visible;
}
#stockAlertButton[hidden], .stock-alert-count[hidden], .stock-alert-error[hidden] { display: none !important; }
#stockAlertButton .stock-alert-count {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #07111b;
  background: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
#stockAlertButton.stock-alert-new .nav-bell { animation: stock-alert-ring 300ms ease-in-out 2; }
@keyframes stock-alert-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
body.stock-alert-open { overflow: hidden; }
.stock-alert-panel {
  --alert-bg: #09151f;
  --alert-surface: #10212d;
  --alert-text: #e8f2f8;
  --alert-muted: #abc0cf;
  --alert-line: #2c4352;
  --alert-accent: #fbbf24;
  --alert-link: #7dc8ff;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(400px, 100%);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--alert-line);
  border-radius: 0;
  color: var(--alert-text);
  background: var(--alert-bg);
  box-shadow: none;
  font-family: inherit;
  letter-spacing: 0;
  overflow: hidden;
}
.stock-alert-panel[open] { display: flex; flex-direction: column; }
.stock-alert-panel::backdrop { background: rgb(0 0 0 / 45%); }
.stock-alert-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 16px 14px;
  border-bottom: 1px solid var(--alert-line);
}
.stock-alert-heading { flex: 1; min-width: 0; }
.stock-alert-panel h2 { margin: 0 0 7px; font-size: 16px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0; }
.stock-alert-panel p { margin: 0; }
#stockAlertSummary { color: var(--alert-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.stock-alert-panel .stock-alert-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--alert-line);
  border-radius: 6px;
  color: var(--alert-text);
  background: var(--alert-surface);
  font-family: inherit;
  line-height: 1;
  font-size: 28px;
  cursor: pointer;
}
.stock-alert-list { flex: 1; min-height: 0; padding: 12px 12px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.stock-alert-item { display: flex; gap: 12px; margin-bottom: 10px; padding: 14px 12px; border: 1px solid var(--alert-line); border-radius: 6px; background: var(--alert-surface); }
.stock-alert-avatar { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #204c61; color: #dbf4ff; font-size: 13px; font-weight: 700; }
.stock-alert-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.stock-alert-panel h3 { margin: 0; font-size: 14px; line-height: 1.4; letter-spacing: 0; }
.stock-alert-panel .stock-alert-site { margin-top: 3px; color: var(--alert-muted); font-size: 12px; line-height: 1.5; }
.stock-alert-panel .stock-alert-status { margin-top: 10px; color: var(--alert-accent); font-size: 12px; font-weight: 700; }
.stock-alert-plans { margin: 6px 0 8px; padding: 0; list-style: none; font-size: 13px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.stock-alert-panel .stock-alert-client { min-height: 44px; padding: 5px 0; border: 0; border-radius: 3px; color: var(--alert-link); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.stock-alert-panel .stock-alert-client:hover { text-decoration: underline; }
.stock-alert-panel .stock-alert-client:disabled { opacity: .65; cursor: wait; }
.stock-alert-panel .stock-alert-empty { padding: 24px 12px; color: var(--alert-muted); font-size: 14px; line-height: 1.6; }
.stock-alert-panel .stock-alert-error { padding: 12px 16px; color: var(--alert-accent); font-size: 13px; line-height: 1.5; border-top: 1px solid var(--alert-line); }
#stockAlertButton:focus-visible, .stock-alert-panel button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
body[data-theme="light"] .stock-alert-panel { --alert-bg: #fff; --alert-surface: #f3f7fa; --alert-text: #182b38; --alert-muted: #4a6373; --alert-line: #cbd8df; --alert-accent: #8c4900; --alert-link: #075c9c; }
@media (prefers-reduced-motion: reduce) { #stockAlertButton.stock-alert-new .nav-bell { animation: none; } }
