/*
 * Анимация блока «Надиктуйте сейчас — разберётесь потом» на главной
 * (index.html, .template-teaser-notes). Сценарий — scripts/notes-live.js.
 *
 * Элементы повторяют приложение (размеры и цвета взяты из notes.css и
 * tasks.css, где эти экраны уже нарисованы по Flutter-коду):
 *   .ntl-voice       — QuickListVoiceFlow, useNoteDictationLayout
 *   .ntl-note-card   — карточка KnowledgeNotesPage
 *   .ntl-detail-bar  — нижняя панель KnowledgeNotePage
 *   .ntl-create      — шторка «Создать из заметки»
 *   .ntl-form        — _FamilyTaskFormPage «Новое дело»
 *   .ntl-task-card   — _TaskSticker
 *
 * Состояние задаётся на корне: data-scene="voice|note|form|task" и классы
 * is-rec, is-review, is-saving, is-later, is-create, is-push, is-done.
 * Разметка по умолчанию — итоговый кадр (для no-JS и reduced-motion).
 */

.ntl {
  min-width: 0;
  --ntl-blue: #007aff;
  --ntl-ink: #1f2328;
  --ntl-muted: #66707c;
  --ntl-border: #d8dade;
  --ntl-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  align-content: center;
  gap: 16px;
  width: 100%;
  color: var(--ntl-ink);
}

.ntl-sprite {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
}

.ntl svg {
  display: block;
  flex: none;
}

/* — «Сейчас» → «Потом»: плашки Лены (.jl-chip из journey-live.css) — */

.ntl-time {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(16px, 1fr) minmax(0, auto);
  gap: 10px;
  align-items: center;
  width: min(470px, 100%);
}

.ntl-moment {
  position: relative;
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  height: 57px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: 0 14px 32px rgba(31, 62, 127, 0.16);
  opacity: 0.6;
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--ntl-ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.ntl-moment-avatar {
  position: relative;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
}

.ntl-moment-avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  object-fit: cover;
}

.ntl-moment-avatar i {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(47, 107, 255, 0.7);
  border-radius: 50%;
  opacity: 0;
}

.ntl-moment > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.ntl-moment b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.ntl-moment small {
  overflow: hidden;
  color: rgba(60, 60, 67, 0.62);
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* активная плашка — как .jl-chip.is-active */
.ntl:not(.is-later) .ntl-moment-now,
.ntl.is-later .ntl-moment-later {
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow:
    0 18px 38px rgba(31, 62, 127, 0.22),
    0 0 0 4px rgba(47, 107, 255, 0.1);
  opacity: 1;
  transform: translateY(-3px) scale(1.03);
}

.ntl:not(.is-later) .ntl-moment-now .ntl-moment-avatar i,
.ntl.is-later .ntl-moment-later .ntl-moment-avatar i {
  animation: ntl-ring 2.3s ease-out infinite;
}

.ntl:not(.is-later) .ntl-moment-now .ntl-moment-avatar i + i,
.ntl.is-later .ntl-moment-later .ntl-moment-avatar i + i {
  animation-delay: 1.15s;
}

@keyframes ntl-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

[data-ntl-status] {
  transition: opacity 0.2s ease;
}

[data-ntl-status].is-swap {
  opacity: 0;
}

.ntl-time-line {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(47, 107, 255, 0.14);
}

.ntl-time-line i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-600), #6fceff);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ntl-ease);
}

.ntl.is-later .ntl-time-line i {
  transform: scaleX(1);
}

/* — Сцена — */

.ntl-stage {
  position: relative;
  width: min(400px, 100%);
  height: 448px;
}

.ntl-scene {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 420ms ease,
    transform 520ms var(--ntl-ease);
}

.ntl[data-scene="voice"] .ntl-s-voice,
.ntl[data-scene="note"] .ntl-s-note,
.ntl[data-scene="form"] .ntl-s-form,
.ntl[data-scene="task"] .ntl-s-task {
  opacity: 1;
  transform: none;
}

/* Вспышка касания — как .jl-tap из journey-live.css */
.ntl-tap {
  position: absolute;
  z-index: 30;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0 12%,
    rgba(111, 206, 255, 0.92) 24%,
    rgba(47, 107, 255, 0.72) 46%,
    rgba(47, 107, 255, 0) 72%
  );
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  animation: ntl-tap 700ms ease-out forwards;
}

@keyframes ntl-tap {
  0% { opacity: 0; transform: scale(0.35); }
  25% { opacity: 0.85; }
  100% { opacity: 0; transform: scale(1.15); }
}

.ntl .is-pressed {
  transform: scale(0.96);
  transition: transform 120ms ease;
}

/* — Общие элементы приложения — */

.ntl-sheet {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: #f2f2f7;
  box-shadow: 0 22px 54px rgba(28, 39, 70, 0.14);
}

.ntl-sheet-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.ntl-sheet-header b {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.ntl-icon-btn {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.12);
  color: rgba(60, 60, 67, 0.6);
}

.ntl-navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  height: 36px;
  margin-bottom: 10px;
}

.ntl-navbar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ntl-blue);
  font-size: 14px;
}

.ntl-navbar b {
  font-size: 16px;
  font-weight: 600;
}

.ntl-primary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  background: var(--ntl-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.ntl-filled {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 10px;
  background: var(--ntl-blue);
  color: #fff;
  font-size: 16px;
}

.ntl-link {
  padding: 8px 0 0;
  color: var(--ntl-blue);
  font-size: 15px;
  text-align: center;
}

.ntl-surface {
  border: 0.9px solid rgba(216, 218, 222, 0.82);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 242, 244, 0.96));
  box-shadow:
    0 16px 40px rgba(28, 39, 70, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.02);
}

.ntl-family-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 0.8px solid #e1e3e6;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #f0f2f4);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  color: #9a6400;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ntl-family-badge img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

/* — 1. Диктовка — */

.ntl-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  padding: 2px;
  border: 0.6px solid rgba(60, 60, 67, 0.05);
  border-radius: 16px;
  background: rgba(118, 118, 128, 0.08);
}

.ntl-segment > span {
  margin: 0 2px;
  padding: 8px 0;
  border: 0.6px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.ntl-seg-personal {
  color: var(--ntl-blue);
}

.ntl-seg-family {
  color: #c79100;
}

.ntl-seg-family.is-on {
  border-color: rgba(255, 207, 74, 0.28);
  background: rgba(255, 207, 74, 0.18);
}

.ntl-recorder {
  display: grid;
  grid-template-columns: 38px auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1.1px solid rgba(216, 218, 222, 0.75);
  border-radius: 18px;
  background: rgba(253, 253, 254, 0.86);
}

.ntl-rec-dot {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  border-radius: 50%;
  transition: opacity 200ms ease;
}

.ntl-rec-live {
  background: rgba(255, 59, 48, 0.14);
  color: #ff3b30;
}

.ntl-rec-done {
  background: rgba(52, 199, 89, 0.14);
  color: #34c759;
}

.ntl-recorder b {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 200ms ease;
}

.ntl-wave {
  display: flex;
  height: 20px;
  align-items: center;
  justify-content: space-between;
  grid-column: 3;
  color: #ff3b30;
}

.ntl-wave i {
  width: 2px;
  height: 30%;
  border-radius: 2px;
  background: currentColor;
}

.ntl.is-rec .ntl-wave i {
  animation: ntl-wave 0.9s ease-in-out infinite;
}

.ntl-wave i:nth-child(3n + 1) { animation-delay: -0.15s; }
.ntl-wave i:nth-child(3n + 2) { animation-delay: -0.45s; }
.ntl-wave i:nth-child(4n) { animation-delay: -0.7s; }

@keyframes ntl-wave {
  0%, 100% { height: 25%; }
  50% { height: 95%; }
}

.ntl-timer {
  grid-column: 4;
  color: #ff3b30;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* запись / остановлена */
.ntl-rec-done,
.ntl-rec-done-text,
.ntl.is-review .ntl-rec-live,
.ntl.is-review .ntl-rec-live-text {
  opacity: 0;
}

.ntl.is-review .ntl-rec-done,
.ntl.is-review .ntl-rec-done-text {
  opacity: 1;
}

.ntl.is-review .ntl-wave,
.ntl.is-review .ntl-timer {
  color: rgba(60, 60, 67, 0.45);
}

.ntl-transcript {
  min-height: 92px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 0.9px solid rgba(0, 122, 255, 0.42);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 15px;
  line-height: 1.4;
}

.ntl-transcript span.is-off {
  display: none;
}

.ntl-caret {
  display: inline-block;
  width: 2px;
  height: 17px;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--ntl-blue);
  animation: ntl-blink 1s steps(2, start) infinite;
}

@keyframes ntl-blink {
  to { visibility: hidden; }
}

.ntl-voice-actions {
  position: relative;
  height: 46px;
  margin-top: 12px;
  transition: height 300ms var(--ntl-ease);
}

.ntl.is-review .ntl-voice-actions {
  height: 84px;
}

.ntl-btn-done,
.ntl-voice-review {
  position: absolute;
  inset: 0 0 auto;
  transition: opacity 220ms ease;
}

.ntl-voice-review {
  display: grid;
  opacity: 0;
}

.ntl.is-review .ntl-btn-done {
  opacity: 0;
}

.ntl.is-review .ntl-voice-review {
  opacity: 1;
}

.ntl-alert {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 230px;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(242, 242, 247, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.08);
  transition:
    opacity 200ms ease,
    transform 260ms var(--ntl-ease);
}

.ntl-alert b {
  font-size: 15px;
  font-weight: 600;
}

.ntl-sheet::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.ntl.is-saving .ntl-voice::after {
  opacity: 1;
}

.ntl.is-saving .ntl-alert {
  z-index: 2;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.ntl-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(60, 60, 67, 0.18);
  border-top-color: rgba(60, 60, 67, 0.7);
  border-radius: 50%;
  animation: ntl-spin 0.8s linear infinite;
}

@keyframes ntl-spin {
  to { transform: rotate(360deg); }
}

/* — 2. Заметка и «Создать из заметки» — */

.ntl-s-note {
  align-content: start;
  padding-top: 28px;
}

.ntl-note-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  padding: 15px 14px 14px 16px;
  transition: box-shadow 400ms ease;
}

.ntl-note-card.is-ring {
  box-shadow:
    0 0 0 2px rgba(0, 122, 255, 0.45),
    0 16px 40px rgba(28, 39, 70, 0.12);
}

.ntl-note-card p {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.ntl-note-main .ntl-family-badge {
  justify-self: start;
}

.ntl-note-author {
  display: grid;
  grid-template-columns: 15px 80px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(226, 206, 160, 0.42);
  color: #8d7548;
  font-size: 12px;
}

.ntl-note-author small {
  color: var(--ntl-muted);
  font-size: 12px;
}

.ntl-note-author b {
  color: var(--ntl-ink);
  font-weight: 600;
}

.ntl-note-date {
  display: block;
  margin-top: 5px;
  color: var(--ntl-muted);
  font-size: 12px;
}

.ntl-note-actions {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  padding-top: 2px;
  color: var(--ntl-blue);
}

.ntl-note-actions .is-red {
  color: #ff3b30;
}

.ntl-detail-bar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 7px;
  border: 1px solid #e3e5e8;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 39, 70, 0.08);
}

.ntl-round {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.1);
  color: var(--ntl-blue);
}

.ntl-round:first-child {
  color: #ff3b30;
}

.ntl-detail-center {
  padding: 8px 0;
  border-radius: 999px;
  color: var(--ntl-blue);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.ntl-create {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 6px 12px 12px;
  border: 1px solid var(--ntl-border);
  border-radius: 26px;
  background: #fdfdfe;
  box-shadow: 0 -10px 40px rgba(28, 39, 70, 0.16);
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 300ms ease,
    transform 460ms var(--ntl-ease);
}

.ntl.is-create .ntl-create {
  opacity: 1;
  transform: none;
}

.ntl-note-card {
  transition:
    opacity 300ms ease,
    box-shadow 400ms ease;
}

.ntl-detail-bar {
  transition: opacity 300ms ease;
}

.ntl.is-create .ntl-note-card,
.ntl.is-create .ntl-detail-bar {
  opacity: 0.55;
}

.ntl-grabber {
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgba(60, 60, 67, 0.2);
}

.ntl-create-head {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  color: var(--ntl-muted);
}

.ntl-create-head b {
  color: var(--ntl-ink);
  font-size: 17px;
  font-weight: 500;
}

.ntl-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ntl-create-card {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--ntl-border);
  border-radius: 15px;
  background: linear-gradient(#fdfdfe, #f1f2f4);
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    transform 160ms ease;
}

.ntl-create-card img {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}

.ntl-create-card > span {
  min-width: 0;
}

.ntl-create-card b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.ntl-create-card small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ntl-muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ntl-create-card.is-picked {
  border-color: rgba(0, 122, 255, 0.55);
  background: #eef5fe;
}

/* — 3. Новое дело — */

.ntl-form {
  padding: 10px 14px 14px;
}

.ntl-form .ntl-navbar {
  height: 30px;
  margin-bottom: 0;
}

.ntl-ed-title {
  padding: 8px 14px 5px;
  color: rgba(60, 60, 67, 0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ntl-ed {
  padding: 0 14px;
  border-radius: 16px;
  background: #fff;
}

.ntl-ed-row {
  padding: 6px 0;
}

.ntl-ed-row small {
  display: block;
  color: rgba(60, 60, 67, 0.6);
  font-size: 12px;
}

.ntl-ed-row b {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ntl-ed-choice {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}

.ntl-ed-choice:last-child {
  border-bottom: 0;
}

.ntl-ed-choice small {
  flex: 1;
  color: #000;
  font-size: 14px;
}

.ntl-ed-choice b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ntl-blue);
  font-size: 14px;
  font-weight: 500;
}

.ntl-art-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 5px 10px;
  border: 0.9px solid rgba(155, 123, 229, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.ntl-art-tile > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: rgba(155, 123, 229, 0.09);
}

.ntl-art-tile img {
  width: 36px;
  height: 36px;
}

.ntl-art-tile div {
  min-width: 0;
}

.ntl-art-tile b {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ntl-art-tile small {
  display: block;
  margin-top: 2px;
  color: var(--ntl-muted);
  font-size: 11px;
}

.ntl-assignees {
  display: flex;
  gap: 7px;
}

.ntl-assignee {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 0;
  padding: 5px 4px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #fff;
}

.ntl-assignee img,
.ntl-avatar-letter {
  width: 32px;
  height: 32px;
  margin-bottom: 3px;
  border-radius: 50%;
  object-fit: cover;
}

.ntl-avatar-letter {
  display: grid;
  place-items: center;
  background: #9b7be5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.ntl-assignee b {
  font-size: 13px;
  font-weight: 600;
}

.ntl-assignee small {
  color: var(--ntl-muted);
  font-size: 10px;
}

.ntl-assignee.is-selected {
  border-color: var(--ntl-blue);
  background: #eef5fe;
}

.ntl-btn-add {
  min-height: 42px;
  margin-top: 10px;
}

/* поля заполняются из заметки */
.ntl-f {
  transition:
    opacity 260ms ease,
    box-shadow 400ms ease,
    transform 260ms var(--ntl-ease);
}

.ntl-f.is-off {
  opacity: 0.25;
  transform: translateY(4px);
}

.ntl-f.is-hl {
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.4);
}

/* — 4. Напоминание и выполнение — */

.ntl-s-task {
  align-content: start;
  padding-top: 26px;
}

.ntl-push {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 11px 13px;
  border-radius: 22px;
  background: rgba(245, 245, 247, 0.94);
  box-shadow: 0 16px 36px rgba(18, 27, 52, 0.18);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-24px) scale(0.97);
  transition:
    opacity 300ms ease,
    transform 520ms var(--ntl-ease);
}

.ntl.is-push .ntl-push {
  opacity: 1;
  transform: none;
}

.ntl-push img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.ntl-push > span {
  min-width: 0;
}

.ntl-push small {
  display: flex;
  justify-content: space-between;
  color: rgba(60, 60, 67, 0.6);
  font-size: 11px;
}

.ntl-push small b {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ntl-push small i {
  font-style: normal;
}

.ntl-push > span > b {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ntl-push em {
  display: block;
  font-size: 13px;
  font-style: normal;
}

.ntl-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 6px 8px;
}

.ntl-section b {
  font-size: 15px;
  font-weight: 600;
}

.ntl-section small {
  color: #8e8e93;
  font-size: 13px;
  font-weight: 600;
}

.ntl-task-card {
  position: relative;
  overflow: hidden;
  padding: 13px 7px 12px 8px;
  border: 0.9px solid rgba(255, 165, 58, 0.28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 242, 244, 0.96));
  box-shadow:
    0 16px 40px rgba(28, 39, 70, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.02);
}

.ntl-task-art {
  position: absolute;
  top: 1px;
  right: 34px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.74;
}

.ntl-task-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 34px;
  gap: 4px;
  align-items: start;
}

/* Чекбокс — общий блок .app-check (styles/app-check.css), здесь только состояние. */
.ntl-check img {
  transition:
    opacity 180ms ease,
    transform 260ms var(--ntl-ease);
}

.ntl-check-on {
  opacity: 0;
  transform: scale(0.6);
}

.ntl.is-done .ntl-check-on {
  opacity: 1;
  transform: none;
}

.ntl.is-done .ntl-check-off {
  opacity: 0;
}

.ntl-task-title {
  display: block;
  max-width: 200px;
  padding-top: 9px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: line-through transparent;
  transition:
    color 300ms ease,
    text-decoration-color 300ms ease;
}

.ntl.is-done .ntl-task-title {
  color: var(--ntl-muted);
  text-decoration-color: currentColor;
}

.ntl-people {
  display: flex;
  margin-top: 7px;
}

.ntl-pill {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: #eef5fe;
  color: var(--ntl-blue);
}

.ntl-pill img {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.ntl-pill small,
.ntl-pill b {
  display: block;
  font-size: 11px;
  white-space: nowrap;
}

.ntl-pill b {
  font-size: 12px;
  font-weight: 600;
}

.ntl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ntl-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ntl-chip.is-muted {
  background: #f2f3f4;
  color: var(--ntl-muted);
}

.ntl-chip.is-green {
  background: #eaf8ee;
  color: #34c759;
}

.ntl-done-chip {
  overflow: hidden;
  max-width: 0;
  padding-right: 0;
  padding-left: 0;
  opacity: 0;
  transition:
    max-width 420ms var(--ntl-ease),
    padding 420ms var(--ntl-ease),
    opacity 300ms ease;
}

.ntl.is-done .ntl-done-chip {
  max-width: 120px;
  padding-right: 7px;
  padding-left: 7px;
  opacity: 1;
}

.ntl-task-side {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 2px;
  color: var(--ntl-blue);
}

.ntl-task-side svg:not(:first-child) {
  color: var(--ntl-muted);
}

/* — Мобильная вёрстка — */

@media (max-width: 760px) {
  .ntl {
    gap: 12px;
  }

  .ntl-time {
    grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
    gap: 6px;
  }

  /* как мобильная .jl-chip */
  .ntl-moment {
    height: 46px;
    gap: 7px;
    padding: 6px 10px 6px 6px;
  }

  .ntl-moment-avatar,
  .ntl-moment-avatar img {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .ntl-moment b {
    font-size: 12px;
  }

  .ntl-moment small {
    font-size: 10px;
  }

  .ntl-stage {
    height: 456px;
  }

  .ntl-create-card small {
    display: none;
  }

  .ntl-wave i:nth-child(even) {
    display: none;
  }
}

@media (max-width: 380px) {
  .ntl-moment b {
    font-size: 11px;
  }

  .ntl-moment small {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ntl *,
  .ntl *::before,
  .ntl *::after {
    animation: none !important;
    transition: none !important;
  }
}
