/* Окно настроек уведомлений (push.js) */
.lbpu { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.lbpu.show { opacity: 1; pointer-events: auto; }
.lbpu-box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 22px 20px 18px; border-radius: 26px;
  background: #fff; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55); font: 500 .9rem/1.45 var(--font-body, inherit); color: #334155;
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.lbpu.show .lbpu-box { transform: none; }
.lbpu-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 12px; display: grid; place-items: center; background: #f1f5f9; color: #475569; cursor: pointer; }
.lbpu-x:hover { background: #e2e8f0; color: #0f172a; }
.lbpu-h { display: flex; gap: 12px; align-items: center; padding-right: 44px; margin-bottom: 14px; }
.lbpu-ic { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.45rem; background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.lbpu-h b { display: block; font: 800 1.15rem var(--font-display, inherit); color: #0f172a; }
.lbpu-h small { display: block; font-size: .8rem; color: #64748b; }
.lbpu-main { display: block; width: 100%; margin: 4px 0 12px; padding: 13px 16px; border: 0; border-radius: 15px; font: 800 .95rem var(--font-body, inherit); color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 12px 24px -12px rgba(29, 78, 216, .9); }
.lbpu-main:disabled { opacity: .6; cursor: default; }
.lbpu-on { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; padding: 11px 12px; border-radius: 15px; background: #f0fdf4; box-shadow: inset 0 0 0 1px #bbf7d0; }
.lbpu-on > i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; background: #22c55e; }
.lbpu-on b { display: block; color: #14532d; font-size: .88rem; } .lbpu-on small { display: block; color: #15803d; font-size: .74rem; }
.lbpu-on > div { flex: 1; min-width: 0; }
.lbpu-link { flex: none; border: 0; background: #fff; color: #15803d; font: 800 .78rem var(--font-body, inherit); padding: 8px 11px; border-radius: 11px; cursor: pointer; box-shadow: 0 1px 4px rgba(15, 23, 42, .08); }
.lbpu-ios, .lbpu-warn { margin: 4px 0 12px; padding: 12px 14px; border-radius: 15px; background: #fff7ed; color: #7c2d12; font-size: .84rem; box-shadow: inset 0 0 0 1px #fed7aa; }
.lbpu-ios b { display: block; margin-bottom: 4px; color: #9a3412; }
.lbpu-ios ol { margin: 4px 0; padding-left: 20px; } .lbpu-ios li { margin: 3px 0; } .lbpu-ios small { color: #9a3412; opacity: .8; }
.lbpu-k { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 6px; background: #fff; font-weight: 700; color: #1d4ed8; }
.lbpu-sec { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 6px; }
.lbpu-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer; border-top: 1px solid #f1f5f9; }
.lbpu-row:first-child { border-top: 0; }
.lbpu-row > span { flex: 1; min-width: 0; }
.lbpu-row b { display: block; font-size: .9rem; color: #0f172a; } .lbpu-row small { display: block; font-size: .74rem; color: #64748b; }
.lbpu-row input { position: absolute; opacity: 0; pointer-events: none; }
.lbpu-sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 10px; background: #cbd5e1; transition: background .2s; }
.lbpu-sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 7px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .2s; }
.lbpu-row input:checked + .lbpu-sw { background: #2563eb; }
.lbpu-row input:checked + .lbpu-sw::after { transform: translateX(18px); }
.lbpu-row input:focus-visible + .lbpu-sw { outline: 3px solid rgba(59, 130, 246, .4); outline-offset: 2px; }
.lbpu-row.is-dis { opacity: .5; cursor: default; }
.lbpu-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px; }
.lbpu-chips.is-dis { opacity: .4; pointer-events: none; }
.lbpu-chip { padding: 6px 11px; border: 0; border-radius: 11px; background: #f1f5f9; color: #475569; font: 700 .76rem var(--font-body, inherit); cursor: pointer; }
.lbpu-chip.on { background: #dbeafe; color: #1d4ed8; box-shadow: inset 0 0 0 1.5px #3b82f6; }
.lbpu-ann { margin: 8px 0; padding: 10px 12px; border-radius: 15px; background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; }
.lbpu-ann summary { cursor: pointer; font-weight: 800; color: #0f172a; } .lbpu-ann summary small { font-weight: 600; color: #64748b; }
.lbpu-ann input[type=text], .lbpu-ann textarea, .lbpu-ann select { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; font: 500 .88rem var(--font-body, inherit); background: #fff; color: #0f172a; resize: vertical; }
.lbpu-annrow { display: flex; gap: 10px; align-items: center; } .lbpu-annrow select { flex: 1; }
.lbpu-urg { flex: none; display: flex; gap: 6px; align-items: center; margin-top: 8px; font-weight: 700; color: #c2410c; }
.lbpu-ann .lbpu-main { margin: 10px 0 2px; }
.lbpu-note { margin: 8px 0 0; font-size: .74rem; color: #94a3b8; }
.lbpu-off { display: block; margin: 8px auto 0; padding: 8px 12px; border: 0; border-radius: 11px; background: none; color: #64748b; font: 700 .8rem var(--font-body, inherit); cursor: pointer; text-decoration: underline; }
html.lbpu-open { overflow: hidden; }
@media (max-width: 560px) {
  .lbpu { place-items: end center; padding: 0; }
  .lbpu-box { width: 100%; border-radius: 26px 26px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); max-height: 92dvh; transform: translateY(40px); }
}
[data-push-open].is-on::after { content: ' ✓'; }

/* главная кнопка — внизу окна, прилипает к краю при прокрутке */
.lbpu-foot { position: sticky; bottom: -18px; margin: 12px -20px -18px; padding: 12px 20px 18px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 30%); z-index: 2; }
.lbpu-foot .lbpu-main { margin: 0; }
.lbpu-main.is-done { background: #0f172a; box-shadow: none; }
.lbpu-hint { margin: 2px 0 10px; padding: 10px 12px; border-radius: 13px; background: #eff6ff; color: #1e3a8a; font-size: .82rem; }
.lbpu-ios.flash { animation: lbpuFlash 1s ease 2; }
@keyframes lbpuFlash { 50% { box-shadow: inset 0 0 0 2px #f97316, 0 0 0 6px rgba(249,115,22,.2); } }
@media (max-width: 560px) {
  .lbpu-foot { bottom: calc(-18px - env(safe-area-inset-bottom)); margin-bottom: calc(-18px - env(safe-area-inset-bottom)); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
/* значок — тот же колокольчик, что в верхнем меню; «Готово» — фирменный синий, как остальные кнопки */
.lbpu-ic { color: #2563eb; }
.lbpu-main.is-done { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .7) !important; color: #fff !important; }
.lbpu-main .luc-ic { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
.lbpu-ios .luc-ic { width: 15px; height: 15px; vertical-align: -2px; }
