/* Profile tab «Уведомления»: Telegram link row, per-event switches, quiet hours. */
.notifications { display: grid; gap: 48px; }
.notifications-section { display: grid; gap: 20px; }

/* same as section headings on the subscription and agent tabs */
.notifications-heading { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }

.notifications-connect-title { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.notifications-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notifications-actions .primary-button, .notifications-actions .secondary-button { min-height: 42px; white-space: nowrap; }
.notifications-actions svg { width: 18px; height: 18px; }
/* gray like the plan buttons on the subscription tab: the connect row should not outshine the page */
.notifications-telegram .primary-button { background: var(--fill-control); color: #fff; }
.notifications-telegram .primary-button:hover { background: var(--fill-control-hover); }
.secondary-button.is-danger { color: #ff8585; }
.secondary-button.is-danger:hover { background: #2a1717; color: #ff9b9b; }

/* one row for every link state except waiting: icon, account or status, actions */
.notifications-telegram { display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 20px; border-radius: 28px; background: var(--surface-card); }
.notifications-badge { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #2aabee; color: #fff; }
.notifications-badge svg { width: 22px; height: 22px; margin-left: -2px; stroke-width: 1.8; }
.notifications-telegram-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.notifications-telegram-copy strong { overflow: hidden; color: #fff; font-size: 17px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.notifications-telegram-copy span { color: var(--accent); font-size: 14px; line-height: 1.4; }
.notifications-telegram .notifications-actions { flex: none; }
.notifications-error { display: grid; justify-items: start; gap: 14px; padding: 20px 24px; border-radius: 28px; background: var(--surface-card); color: #d6d6d6; }

.notifications-pending { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; border-radius: 32px; background: var(--surface-card); }
.notifications-pending-main { display: grid; gap: 18px; min-width: 0; }
.notifications-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.notifications-steps li { display: flex; align-items: center; gap: 12px; color: #d6d6d6; font-size: 16px; counter-increment: step; }
.notifications-steps li::before { content: counter(step); display: grid; flex: none; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--fill-control); color: #fff; font-size: 13px; font-weight: 700; }
.notifications-waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.notifications-spinner { width: 16px; height: 16px; flex: none; border: 2px solid var(--fill-control); border-top-color: #fff; border-radius: 50%; animation: notifications-spin .8s linear infinite; }
@keyframes notifications-spin { to { transform: rotate(360deg); } }
.notifications-qr { display: grid; flex: none; justify-items: center; gap: 10px; margin: 0; }
.notifications-qr svg { display: block; width: 168px; height: 168px; border-radius: 16px; }
.notifications-qr figcaption { color: var(--muted); font-size: 13px; }

.notifications-group { display: grid; gap: 10px; }
.notifications-group h3 { margin: 0; color: #777; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.notifications-list { margin: 0; padding: 4px 24px; border-radius: 28px; background: var(--surface-card); list-style: none; }
.notifications-event { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.notifications-event + .notifications-event { border-top: 1px solid var(--line); }
.notifications-event-copy { display: grid; gap: 3px; min-width: 0; }
.notifications-event-copy strong { color: #f1f1f1; font-size: 17px; font-weight: 600; line-height: 1.3; }
.notifications-event-copy small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.is-off .notifications-event-copy strong { color: #8a8a8a; }
.notifications-quiet { display: grid; gap: 14px; padding: 18px 24px; border-radius: 28px; background: var(--surface-card); }
.notifications-quiet-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.notifications-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); color: #d6d6d6; font-size: 15px; }
.notifications-hours select { height: 40px; padding: 0 36px 0 16px; border: 0; border-radius: 999px; appearance: none; background: var(--fill-control) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.notifications-hours select:hover:enabled { background-color: var(--fill-control-hover); }
.notifications-hours select:disabled { cursor: default; }
.notifications-hours span { color: var(--muted); font-size: 14px; }
.notifications-quiet.is-off .notifications-hours { color: #666; }
.notifications-quiet.is-off select { background-color: #222; color: #666; }

@media (max-width: 820px) {
  .notifications { gap: 40px; }
  .notifications-pending { padding: 24px; border-radius: 28px; }
  /* the phone already has Telegram: the button opens it, a QR would point at itself */
  .notifications-qr { display: none; }
}

@media (max-width: 600px) {
  .notifications-list { padding: 2px 18px; border-radius: 24px; }
  .notifications-quiet { padding: 16px 18px; border-radius: 24px; }
  .notifications-telegram { flex-wrap: wrap; padding: 16px; border-radius: 24px; }
  .notifications-telegram-copy { flex-basis: calc(100% - 60px); }
  .notifications-telegram .notifications-actions { flex: 1 1 100%; }
  /* side by side when both fit, otherwise one button per row */
  .notifications-actions > * { flex: 1 1 auto; }
  .notifications-event-copy strong { font-size: 16px; }
  .notifications-event-copy small { font-size: 13px; }
}

/* the Telegram mark of the home strip about notifications */
.notifications-prompt-mark { background: #2aabee; color: #fff; }
.notifications-prompt-mark svg { width: 13px; height: 13px; margin-left: -1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
