.topbar{position:relative;z-index:30;height:0}
.bell{position:absolute;top:10px;right:10px}
.bell-btn{position:relative;width:56px;height:56px;display:inline-grid;place-items:center;border:1px solid var(--gray-300);border-radius:var(--r-full);background:linear-gradient(180deg,var(--gray-0) 0%,var(--gray-100) 100%);color:var(--gray-900);cursor:pointer;box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 2px 4px rgba(16,24,40,.10),0 6px 14px rgba(16,24,40,.12);transition:box-shadow .15s,transform .15s}
.bell-btn:hover{background:linear-gradient(180deg,var(--gray-0) 0%,var(--gray-50) 100%);box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 3px 6px rgba(16,24,40,.14),0 10px 20px rgba(16,24,40,.14)}
.bell-btn:active{transform:translateY(1px)}
.bell-btn:focus-visible{outline:3px solid var(--primary-300);outline-offset:2px}
.bell-btn .i{width:34px;height:34px;stroke-width:1.9}
/* the number of «Уведомления» on the bell (the owner 2026-12-04): bright, red when one of them is red; 0 — no badge */
.bell-badge{position:absolute;top:-4px;right:-6px;min-width:24px;height:24px;padding:0 6px;display:inline-grid;place-items:center;border-radius:12px;border:2px solid var(--gray-0);background:var(--warn-500);color:var(--gray-0);font:700 13px/1 var(--font);box-shadow:0 2px 6px rgba(16,24,40,.25)}
.bell-badge--red{background:var(--err-600)}
.bell-badge[hidden]{display:none}
.bell-pop[hidden]{display:none}
.bell-pop{position:fixed;right:16px;top:74px;width:400px;max-width:calc(100vw - 32px);background:var(--gray-0);border:1px solid var(--gray-200);border-radius:var(--r-xl);box-shadow:0 12px 32px rgba(16,24,40,.18);overflow:hidden}
.bell-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--gray-200)}
.bell-close{display:inline-grid;place-items:center;width:28px;height:28px;margin:-4px -6px -4px 0;padding:0;border:0;border-radius:var(--r-full);background:none;color:var(--gray-500);cursor:pointer}
.bell-close:hover{background:var(--gray-50);color:var(--gray-700)}
.bell-list{max-height:min(420px,60vh);overflow-y:auto}
.bell-row{display:flex;gap:10px;padding:10px 16px;border-bottom:1px solid var(--gray-100);color:inherit;text-decoration:none}
.bell-row:hover{background:var(--gray-50)}
.bell-dot{flex:none;width:9px;height:9px;margin-top:6px;border-radius:50%;background:var(--ok-500)}
.bell-dot--red{background:var(--err-500)} .bell-dot--yellow{background:var(--warn-500)}
.bell-body{min-width:0;flex:1}
.bell-title{font-weight:600;color:var(--gray-900);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bell-details{color:var(--gray-500);font-size:var(--fs-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bell-do{margin-top:2px;color:var(--primary-700);font-size:var(--fs-sm);font-weight:500}
.bell-text{color:var(--gray-700);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.bell-time{color:var(--gray-500);font-size:var(--fs-xs);white-space:nowrap}
.bell-empty{padding:20px 16px;color:var(--gray-500)}
.bell-foot{display:flex;border-top:1px solid var(--gray-200)}
.bell-all{flex:1;display:block;padding:12px 16px;text-align:center;font-weight:600}
.bell-tasks{border-left:1px solid var(--gray-200)}
.alert-event-title{font-weight:600}
.alert-event-do{color:var(--primary-700);font-size:var(--fs-sm)}
.bell-btn.is-offline{opacity:.55}
.bell-btn.is-offline::after{content:"!";position:absolute;bottom:4px;right:6px;font:700 14px/1 var(--font);color:var(--warn-700)}
/* «Уведомления точек» (routes_point_notify, 2026-11-25): the switch of «Рабочее место», the ask «Разрешите уведомления», the «!» of «Оповещение» */
.notify-switch{position:relative;display:inline-block}
.notify-switch>summary{list-style:none;cursor:pointer;white-space:nowrap}
.notify-switch>summary::-webkit-details-marker{display:none}
.notify-switch>summary[data-notify-switch-state="off"]{color:var(--err-700);border-color:var(--err-200);background:var(--err-50)}
.notify-switch-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:40;width:280px;max-width:calc(100vw - 32px);display:grid;gap:var(--s-2);padding:var(--s-3);background:var(--gray-0);border:1px solid var(--gray-200);border-radius:var(--r-lg);box-shadow:var(--sh-lg)}
.notify-switch-pop form{display:grid;gap:var(--s-2)}
.notify-switch-hint{margin:0;color:var(--gray-600);font-size:var(--fs-sm)}
.notify-switch-office{white-space:nowrap}
.notify-switch-office[data-notify-switch-state="off"]{color:var(--err-700)}
.notify-ask{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:480px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-2);padding:var(--s-3);background:var(--gray-0);border:1px solid var(--primary-300);border-radius:var(--r-lg);box-shadow:var(--sh-xl)}
.notify-ask p{flex:1 1 220px;margin:0;color:var(--gray-800)}
.notice-urgent{background:var(--err-600)!important;color:var(--gray-0)!important}
