/* Колокольчик «Что ждёт вас» (docs/stage5/todo.md). */
.bell {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px;
  padding: 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  font-weight: 600;
}
.bell[hidden] { display: none; }
.bell .n { min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 13px; line-height: 20px; text-align: center; }
.bell .n[hidden] { display: none; }
.bell-top .bell-t, .bell-cab .bell-t { display: none; }
.bell-side { margin: 0 0 10px; justify-content: flex-start; }
.bell-side .n { margin-left: auto; }
.top .bell { margin-left: auto; flex: none; }
.top .n:not([hidden]) ~ .bell { margin-left: 0; }
/* число лежит поверх кнопки: она не шире 44px; тесно — сжимаются подпись и название, а не уезжает колокольчик */
.bell-top, .bell-th { position: relative; width: 44px; padding: 0; }
.bell-top .n, .bell-th .n { position: absolute; top: -4px; right: -4px; margin: 0; }
.top > b, .top > .hand { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top > .hand { flex: 0 100 auto; }
.top > .n { flex: none; white-space: nowrap; }
.bell-th { flex: none; }
.bell-th .bell-t { display: none; }
@media (min-width: 760px) { .bell-th { display: none; } }
@media (max-width: 759px) {
  /* имя в шапке чата не сжимается из-за колокольчика: если тесно, кнопки переходят на вторую строку */
  .th-head:has(.bell-th) { flex-wrap: wrap; }
  .th-head:has(.bell-th) .th-title { flex-basis: 140px; }
  .th-head:has(.bell-th) .th-actions { margin-left: auto; }
}
.bell-bar { display: flex; justify-content: flex-end; }
.bell-bar .bell { margin-bottom: 8px; }
@media (max-width: 1099px) { .bell-side { display: none; } }

.pop.todo-pop { width: 400px; max-width: calc(100vw - 16px); overflow-x: hidden; }
.todo-list { display: grid; gap: 10px; padding: 6px; overflow-wrap: anywhere; }
.todo-list h2 { margin: 0; font-size: 17px; }
.todo-list h3 { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.todo-group { display: grid; gap: 4px; }
.todo-row {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 10px; color: inherit; text-decoration: none;
}
.todo-row.warn { border-color: #d9a520; }
.todo-row.red { background: var(--red-soft); border-color: var(--red); }
.todo-main { display: grid; flex: 1 1 auto; min-width: 0; }
.todo-item { display: grid; gap: 4px; }
.todo-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.todo-acts .btn { min-height: 44px; }
.todo-sub { font-size: 13.5px; color: var(--ink-2); }
.todo-go { flex: none; font-weight: 600; color: var(--blue); }
.todo-all {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; justify-self: start;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--blue); text-decoration: underline;
}
.todo-partial { margin: 0; color: var(--red); }
.todo-empty { margin: 0; color: var(--ink-2); }

@media (max-width: 600px) {
  /* во всю ширину экрана: положение слоя задаёт core.js, здесь оно переопределяется */
  .pop.todo-pop { left: 8px !important; right: 8px; width: auto; max-width: none; }
}
