/* Центр уведомлений клиента (NOTICE_CENTER). Только токены widget.css (обе темы); свои переменные --nc-* — цвет типа. */
.t-booked { --nc-c: var(--ok); --nc-bg: var(--ok-soft); }
.t-cancelled { --nc-c: var(--bad); --nc-bg: var(--bad-soft); }
.t-moved { --nc-c: var(--amber); --nc-bg: var(--warn-soft); }
.t-trainer { --nc-c: var(--vl); --nc-bg: var(--vl-bg); }
.t-waitlist { --nc-c: var(--coral); --nc-bg: var(--soft); }
.t-pay { --nc-c: var(--lv2); --nc-bg: var(--lv2-bg); }
.t-info { --nc-c: var(--text2); --nc-bg: var(--raise2); }

/* --- колокольчик и счётчики */
.nc-bell { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; margin-right: 8px;
  border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); color: var(--text2); cursor: pointer; }
.nc-bell:hover, .nc-bell.has { color: var(--text); border-color: var(--soft-line); }
.nc-bell:focus-visible, .nc-card:focus-visible, .nc-btn:focus-visible, .nc-close:focus-visible, .nc-all:focus-visible,
.nc-x-btn:focus-visible, .nc-link:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.account:has(.nc-bell) { display: flex; align-items: center; }
.nc-n { position: absolute; display: inline-grid; place-items: center; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: var(--ink); font: 700 11px/1 var(--f-body); font-style: normal; letter-spacing: 0; }
.nc-n-bell { top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--bg); }
.nc-n-tab { top: 2px; left: calc(50% + 6px); box-shadow: 0 0 0 2px var(--bar); }
@media (min-width: 768px) { .nc-n-tab { top: -2px; left: auto; right: -2px; } }

/* --- карточка уведомления */
.nc-list { display: grid; gap: 8px; }
.nc-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; box-sizing: border-box;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text);
  font: inherit; font-family: var(--f-body); text-align: left; cursor: pointer; }
.nc-card:hover { border-color: var(--line2); }
.nc-card.new { background: linear-gradient(0deg, var(--nc-bg), var(--nc-bg)), var(--panel); border-color: transparent; box-shadow: 0 0 0 1px var(--nc-bg) inset; }
.nc-card.urgent { box-shadow: 0 0 0 1.5px var(--nc-c) inset; }
.nc-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--nc-bg); color: var(--nc-c); }
.nc-card.new .nc-ico { background: var(--panel); }
.nc-ico.big { width: 64px; height: 64px; }
.nc-body { display: grid; gap: 2px; min-width: 0; }
.nc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 14px; }
.nc-chip { color: var(--nc-c); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-at { flex: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.nc-t { font-weight: 650; font-size: 15px; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.nc-x { color: var(--text2); font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.nc-card:not(.new) .nc-t { font-weight: 600; }
.nc-card:not(.new) .nc-ico { opacity: .8; }
.nc-dot { position: absolute; top: 14px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

/* --- «Важное» на главной */
.nc-home { margin: 0 0 16px; }
.nc-home-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 8px; }
.nc-home-t { margin: 0; font: 700 18px/1.2 var(--f-head); letter-spacing: -.01em; color: var(--text); }
.nc-all { min-height: 44px; margin: -12px -6px -12px 0; padding: 0 6px; border: 0; background: none; color: var(--coral); font: 600 14px var(--f-body); cursor: pointer; white-space: nowrap; }
.nc-hint, .nc-push { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px;
  border: 1px dashed var(--line2); border-radius: var(--r); background: var(--raise); }
.nc-home .nc-list + .nc-hint { margin-top: 8px; }
.nc-push { align-items: center; border-style: solid; border-color: var(--line); margin-bottom: 4px; }
.nc-push { grid-template-columns: auto minmax(0, 1fr); }
.nc-push .nc-btn { grid-column: 2; justify-self: start; }
.nc-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -10px; color: var(--coral); font-weight: 600; font-size: 14px; }
.nc-x-btn { width: 44px; height: 44px; margin: -10px -12px 0 -8px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }

/* --- окна */
dialog.nc-dlg { box-sizing: border-box; width: min(460px, calc(100vw - 32px)); max-width: none; max-height: min(720px, calc(100dvh - 48px)); margin: auto; padding: 0;
  border: 0; border-radius: var(--r-lg); background: var(--panel); color: var(--text); box-shadow: var(--shadow-pop); font-family: var(--f-body); overflow: hidden; }
dialog.nc-dlg[open] { display: flex; flex-direction: column; }
dialog.nc-dlg::backdrop { background: var(--scrim); }
.nc-close { position: absolute; top: 8px; right: 8px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; }
.nc-hero { position: relative; display: grid; place-items: center; padding: 28px 20px 4px; background: linear-gradient(180deg, var(--nc-bg), transparent); }
.nc-hero .nc-ico { background: var(--panel); box-shadow: 0 0 0 1.5px var(--nc-c) inset; }
.nc-step { position: absolute; top: 20px; left: 20px; color: var(--muted); font-size: 13px; font-weight: 600; }
.nc-sheet-b { display: grid; gap: 12px; padding: 12px 20px 4px; overflow-y: auto; overscroll-behavior: contain; }
.nc-sheet-h { margin: 0; font: 700 20px/1.25 var(--f-head); letter-spacing: -.01em; text-align: center; color: var(--text); overflow-wrap: anywhere; }
.nc-who { margin: -6px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.nc-facts { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--raise); }
.nc-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px 14px; }
.nc-row + .nc-row { border-top: 1px solid var(--line); }
.nc-k { color: var(--muted); font-size: 14px; }
.nc-v { font-weight: 600; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.nc-row.was .nc-v { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.nc-row.now .nc-v { color: var(--nc-c); }
.nc-note, .nc-free { margin: 0; color: var(--text2); font-size: 15px; line-height: 1.45; }
.nc-free { padding: 10px 14px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }
.nc-acts { display: grid; gap: 8px; padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
.nc-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--panel); color: var(--text); font: 650 15px var(--f-body); text-decoration: none; cursor: pointer; }
.nc-btn.primary { border-color: transparent; background: var(--coral); color: var(--ink); }
.nc-btn.quiet { border-color: transparent; background: none; color: var(--bad); }
.nc-btn.sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.nc-btn[disabled] { opacity: .6; cursor: default; }

.nc-feed-h { position: relative; display: flex; align-items: center; min-height: 60px; padding: 0 60px 0 20px; border-bottom: 1px solid var(--line); }
.nc-feed-h h2 { margin: 0; font: 700 19px/1.2 var(--f-head); color: var(--text); }
.nc-feed-l { flex: 1; display: grid; align-content: start; gap: 8px; padding: 12px 12px 16px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg2); }
.nc-day { margin: 10px 6px 0; color: var(--muted); font: 700 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.nc-feed-f { padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; }
.nc-feed-f[hidden] { display: none; }
.nc-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 24px; text-align: center; color: var(--muted); }
.nc-empty b { color: var(--text); font: 700 17px var(--f-head); }
.nc-empty p { margin: 0; font-size: 14px; line-height: 1.45; }
li.nc-prof { list-style: none; }
@media (max-width: 560px) {
  dialog.nc-dlg { width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88dvh; }
  dialog.nc-feed { height: 92dvh; max-height: 92dvh; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.nc-dlg[open] { animation: nc-up .26s var(--ease); }
  @keyframes nc-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

