/* Уведомления: колокольчик — пункт навигации (на телефоне в нижней панели), панель центра уведомлений, мягкая просьба после прогноза */
.nt-bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 34px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.nt-bell:hover, .nt-bell[aria-expanded="true"] { border-color: var(--ink); }
.nt-count { position: absolute; top: -7px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 12px; background: var(--no-ink);
  border: 0; color: #fff; font: 700 11px/20px var(--body); text-align: center; font-variant-numeric: tabular-nums; }

.nt-panel { position: fixed; z-index: 40; top: 64px; right: max(16px, calc((100vw - 1080px) / 2 + 16px)); width: min(380px, calc(100vw - 32px));
  max-height: min(72vh, 600px); overflow: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 8px 24px rgba(20, 20, 30, .08); padding: 14px 16px 16px; }
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.nt-head h2 { font: 700 18px/1.2 var(--body); margin: 0; }
.nt-head h2:focus { outline: none; }
.nt-head h2:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.nt-x { border: 0; background: none; font-size: 26px; line-height: 1; width: 44px; height: 44px; margin: -8px -10px -8px 0; cursor: pointer; color: var(--ink-2); border-radius: 12px; }

.nt-list { list-style: none; margin: 0 -16px; padding: 0; }
.nt-item a { display: grid; gap: 2px; padding: 11px 16px 11px 28px; color: var(--ink); text-decoration: none; position: relative; }
.nt-item + .nt-item a { border-top: 1px solid var(--line); }
.nt-item a:hover { background: var(--paper); }
.nt-item b { font-weight: 700; font-size: 15px; line-height: 1.3; }
.nt-item span { font-size: 15px; color: var(--ink); }
.nt-item time { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nt-item.unread a::before { content: ''; position: absolute; left: 11px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); }
.nt-item:not(.unread) b { font-weight: 400; }
.nt-empty { color: var(--ink-2); font-size: 15px; margin: 8px 0 14px; }
.nt-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.nt-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 8px 16px; min-height: 44px;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.nt-btn.primary { background: var(--ink); color: var(--surface); }
.nt-btn:disabled { opacity: .55; cursor: wait; }
.nt-back { border: 0; background: none; padding: 8px 0; min-height: 44px; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.nt-back::before { content: '‹ '; }

.nt-panel h3, .nt-panel legend { font: 700 15px/1.2 var(--body); margin: 14px 0 6px; padding: 0; }
.nt-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label btn" "state btn"; align-items: center; gap: 0 10px;
  padding: 8px 0; border-top: 1px solid var(--line); }
.nt-label { grid-area: label; font-weight: 700; font-size: 15px; }
.nt-state { grid-area: state; font-size: 13px; color: var(--ink-2); }
.nt-row .nt-btn { grid-area: btn; }
.nt-row .small { grid-column: 1 / -1; margin: 2px 0 0; }
.nt-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.nt-panel fieldset:disabled { opacity: .5; }
.nt-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; cursor: pointer; min-height: 44px; }
.nt-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--violet); }
.nt-quiet { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.nt-quiet legend { width: 100%; }
.nt-quiet label { font-size: 15px; }
.nt-quiet select { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; font: 700 15px var(--body); background: var(--surface); color: var(--ink); min-height: 40px; }
.nt-alloff { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-weight: 700; }
.nt-tglink { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0 0; }
.nt-msg { min-height: 20px; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--yes-ink); }
.nt-msg.err { color: var(--no-ink); }

/* Мягкая просьба после первого прогноза: не модальная, внизу экрана */
.nt-ask { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + var(--below, 0px)); max-width: 480px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 12px; box-shadow: 0 8px 24px rgba(20, 20, 30, .08); }
@media (prefers-reduced-motion: no-preference) { .nt-ask { animation: nt-up .25s ease-out; } @keyframes nt-up { from { transform: translateY(24px); opacity: 0; } } }
.nt-ask-q { font: 700 18px/1.25 var(--body); margin: 0 0 4px; }
.nt-ask .small { margin: 0 0 12px; }
.nt-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nt-ask-btns .link { margin: 0 0 0 auto; min-height: 44px; }
.nt-msg:empty { min-height: 0; margin: 0; }
/* колокольчик в нижней панели: панель открывается над ним */
.nt-panel.nt-low { top: auto; max-height: min(70dvh, 560px); }
@media (max-width: 860px) { .nt-panel.nt-low { left: 8px; right: 8px; width: auto; } }
