/* client/lab/tasks.css
   Вкладка «Задачи». Палитра — та же, что у лабы и Trendly (#FFFDF9 / #1C1B18 /
   #8A8170 / #ECE4D6 / #FF6A1A), поэтому переменных здесь нет: их нет и в
   trends.css, а вводить их для одной вкладки — расходиться с соседями.
   Префикс .lt- у всех классов: страница живёт внутри общей оболочки. */

.lt {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1C1B18;
  max-width: 980px;
}

.lt-small { font-size: 12.5px; color: #8A8170; }

/* ── кнопки ─────────────────────────────────────────────────────────────── */
.lt-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #ECE4D6; background: #fff; color: #1C1B18;
  border-radius: 10px; padding: 9px 14px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: .12s;
}
.lt-btn:hover { border-color: #D8CDB8; background: #FFFDF9; }
.lt-btn--pri { background: #FF6A1A; border-color: #FF6A1A; color: #fff; }
.lt-btn--pri:hover { background: #E8431C; border-color: #E8431C; }
.lt-btn--big { font-size: 15px; padding: 12px 22px; border-radius: 12px; }
.lt-btn--sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.lt-btn:disabled { opacity: .5; cursor: default; }

/* ── герой заявки ───────────────────────────────────────────────────────── */
.lt-hero {
  background: linear-gradient(155deg, #fff 0%, #FFF9F3 100%);
  border: 1px solid #F0E2D2; border-radius: 16px;
  padding: 26px 28px 24px; margin-bottom: 16px;
}
.lt-exp {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: #B5470F; background: #FFF1E8; border: 1px solid #F7DBC8;
  border-radius: 999px; padding: 5px 12px; margin-bottom: 13px;
}
.lt-exp__dot { width: 7px; height: 7px; border-radius: 50%; background: #FF6A1A; }
.lt-hero__h {
  margin: 0 0 11px; font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.18; max-width: 19ch;
}
.lt-hero__lead { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #4A453D; max-width: 64ch; }
.lt-hero__lead b { color: #1C1B18; }
.lt-hero__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

@media (max-width: 620px) {
  .lt-hero { padding: 20px 17px; }
  .lt-hero__h { font-size: 23px; max-width: none; }
}

/* ── форма ──────────────────────────────────────────────────────────────── */
.lt-card {
  background: #fff; border: 1px solid #ECE4D6; border-radius: 16px;
  padding: 22px 24px; margin-bottom: 16px;
}
.lt-card__h { margin: 0 0 20px; font-size: 18px; font-weight: 800; }
@media (max-width: 620px) { .lt-card { padding: 18px 16px; } }

.lt-f { margin-bottom: 22px; }
.lt-f__lbl {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: #B5470F; margin-bottom: 6px;
}
.lt-hint { font-size: 12.8px; color: #8A8170; margin-bottom: 9px; max-width: 64ch; }

.lt-input, .lt-select {
  border: 1px solid #ECE4D6; border-radius: 10px; padding: 10px 13px;
  font: inherit; font-size: 14px; color: #1C1B18; background: #FBF7F0;
}
.lt-input:focus, .lt-select:focus { outline: 2px solid #FF6A1A; outline-offset: 0; background: #fff; }
.lt-input--wide { width: 100%; max-width: 420px; }

/* Красная рамка ставится на поле, а не на весь блок: подсветить надо ввод,
   а не заголовок с подсказкой. У строки канала рамкой управляет сам компонент
   (класс is-bad на строке): ошибка «не отмечен рынок» относится к одной строке,
   и красить из-за неё все каналы — врать про то, где чинить. Поэтому селектор
   имени — прямой потомок, иначе он же красил бы ссылки внутри каналов. */
.lt-f.is-bad > .lt-input { border-color: #9B2030; }
.lt-ch.is-bad { border-color: #9B2030; }
.lt-err { display: none; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: #9B2030; }
.lt-f.is-bad .lt-err { display: block; }

/* ── строка канала ──────────────────────────────────────────────────────── */
.lt-ch {
  border: 1px solid #ECE4D6; border-radius: 12px; padding: 12px 13px;
  margin-bottom: 10px; background: #FFFDF9;
}
.lt-ch__line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lt-ch__plat { flex: none; width: 118px; font-weight: 600; font-size: 13.5px; padding: 9px 10px; }
.lt-ch__url { flex: 1; min-width: 200px; font-size: 13.5px; padding: 9px 12px; }
.lt-ch__rm {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid #ECE4D6; background: #fff; color: #8A8170;
  font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
}
.lt-ch__rm:hover:not(:disabled) { color: #9B2030; border-color: #9B2030; background: #FDF1F0; }
.lt-ch__rm:disabled { opacity: .35; cursor: default; }

/* Ряд выбора чипами. Один и тот же у языка и у рынка — их рисует общий
   ChipPicker, поэтому и класс один. */
.lt-ch__pick {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 11px; padding-top: 11px; border-top: 1px dashed #ECE4D6;
}
.lt-ch__langlbl {
  flex: none; width: 108px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #8A8170; margin-right: 2px;
}
/* На узком экране подпись занимает свою строку — иначе на неё уходит половина
   ширины и чипы рынков рассыпаются по одному в ряд. */
@media (max-width: 620px) { .lt-ch__langlbl { width: 100%; margin-bottom: 2px; } }
.lt-chip {
  border: 1px solid #ECE4D6; background: #fff; border-radius: 999px;
  padding: 5px 13px; font: inherit; font-size: 12.8px; font-weight: 600;
  color: #6B6453; cursor: pointer; transition: .12s;
}
.lt-chip:hover { border-color: #FF6A1A; color: #B5470F; }
.lt-chip.is-on { background: #FF6A1A; border-color: #FF6A1A; color: #fff; }
.lt-chip--extra.is-on { background: #1C1B18; border-color: #1C1B18; }
.lt-chip__x { margin-left: 6px; opacity: .7; font-weight: 700; }

/* Выбранный рынок несёт на себе свой тир — цветом и меткой. Один цвет на все
   рынки означал бы, что «Тир 1 — приоритет» видно только в момент выбора, а
   потом список чипов снова читается как равнозначный. */
.lt-chip--mk { padding-left: 11px; padding-right: 9px; }
.lt-chip__t {
  margin-left: 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .3px;
  border-radius: 4px; padding: 1px 4px; background: rgba(255,255,255,.24);
}
.lt-chip--t1.is-on { background: #FF6A1A; border-color: #FF6A1A; }
.lt-chip--t2.is-on { background: #6B6453; border-color: #6B6453; }
.lt-chip--t3.is-on { background: #A79C88; border-color: #A79C88; }
.lt-chip--t0.is-on { background: #1C1B18; border-color: #1C1B18; }
.lt-more {
  border: 1px dashed #ECE4D6; background: transparent; border-radius: 999px;
  padding: 5px 9px; font: inherit; font-size: 12.5px; font-weight: 600;
  color: #8A8170; cursor: pointer; max-width: 190px;
}
.lt-more--mk { max-width: 100%; min-width: 210px; }
.lt-more:focus { outline: 2px solid #FF6A1A; }

.lt-formfoot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid #ECE4D6; padding-top: 18px;
}
.lt-formfoot__err { font-size: 13px; font-weight: 600; color: #9B2030; }

/* ── страница креатора ──────────────────────────────────────────────────── */
.lt-ok {
  display: flex; align-items: flex-start; gap: 11px;
  background: #EDF7F0; border: 1px solid #C9E4D3; border-radius: 12px;
  padding: 12px 15px; margin-bottom: 16px; font-size: 13.8px; line-height: 1.5;
}
.lt-ok__ic {
  flex: none; width: 21px; height: 21px; border-radius: 50%;
  background: #2E9E5B; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700;
}
.lt-ok b { color: #1F7A45; }

/* Плашка просмотра чужой страницы — одна строка над карточкой профиля.
   Тёплая, а не тревожная: это не ошибка, а напоминание «вы не у себя».
   Полоса слева тем же оранжевым, что и остальные акценты лабы. */
.lt-peek {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #FFF9F3; border: 1px solid #F0E2D2; border-left: 3px solid #FF6A1A;
  border-radius: 12px; padding: 10px 14px; margin-bottom: 12px;
  font-size: 13.5px; line-height: 1.45; color: #4A453D;
}
.lt-peek__ic { flex: none; }
.lt-peek__txt { flex: 1 1 260px; min-width: 0; }
.lt-peek__txt b { color: #1C1B18; }
/* Адрес — только для домена сотрудников, поэтому приглушённо и вторым планом:
   в строке главное имя. */
.lt-peek__em { margin-left: 7px; font-size: 12px; color: #8A8170; }
.lt-peek__back { flex: none; }
@media (max-width: 620px) { .lt-peek { padding: 10px 12px; } }

.lt-hero2 {
  background: #fff; border: 1px solid #ECE4D6; border-radius: 16px;
  padding: 18px 20px; margin-bottom: 16px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.lt-av {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(150deg, #FF6A1A, #C23F14); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.lt-hero2__main { flex: 1 1 320px; min-width: 0; }
.lt-hero2__nm { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.lt-status {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  border-radius: 6px; padding: 3px 8px;
}
.lt-status--pending { background: #FFF3D6; color: #946A00; border: 1px solid #F0E0B0; }
.lt-status--approved { background: #EDF7F0; color: #1F7A45; border: 1px solid #C9E4D3; }
.lt-status--rejected { background: #FDF1F0; color: #9B2030; border: 1px solid #EFD3D0; }

.lt-links { display: flex; gap: 8px; margin: 9px 0 8px; flex-wrap: wrap; }
.lt-link {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #ECE4D6; border-radius: 999px; padding: 4px 12px;
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: #1C1B18;
}
.lt-link:hover { border-color: #FF6A1A; color: #B5470F; }
.lt-link__lg, .lt-link__mk {
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}
.lt-link__lg { background: #F5F1E8; color: #6B6453; }
.lt-link__mk { background: #FFF1E8; color: #B5470F; }
.lt-facts { font-size: 13.3px; color: #6B6453; }
.lt-facts b { color: #1C1B18; }

/* ── блок недели ────────────────────────────────────────────────────────── */
.lt-week { border: 1px solid #E6DECF; border-radius: 16px; background: #fff; overflow: hidden; }
.lt-week__head {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid #ECE4D6; background: #FFFDF9;
}
.lt-week__n { font-size: 17px; font-weight: 800; }
.lt-week__d { font-size: 14px; font-weight: 600; color: #8A8170; }
.lt-week__now {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: #FF6A1A; color: #fff; border-radius: 6px; padding: 3px 8px;
}
.lt-week__body { padding: 22px 20px 24px; }

.lt-empty { text-align: center; padding: 14px 10px 20px; max-width: 52ch; margin: 0 auto; }
.lt-empty__ico { font-size: 36px; margin-bottom: 10px; }
.lt-empty__h { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.lt-empty__p { margin: 0 0 14px; font-size: 14.3px; line-height: 1.55; color: #4A453D; }
.lt-empty__p b { color: #1C1B18; }
.lt-empty__when {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FFF1E8; border: 1px solid #F7DBC8; border-radius: 10px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700; color: #B5470F;
}

.lt-ghosts { margin-top: 26px; padding-top: 20px; border-top: 1px dashed #ECE4D6; }
.lt-ghosts__lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: #8A8170; text-align: center; margin-bottom: 14px;
}
.lt-ghosts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 760px) { .lt-ghosts__grid { grid-template-columns: 1fr; } }
.lt-ghosts__cap { margin-top: 14px; text-align: center; font-size: 12.5px; color: #8A8170; }

.lt-gc { border: 1px dashed #ECE4D6; border-radius: 12px; background: #FFFDF9; overflow: hidden; opacity: .75; }
.lt-gc__thumb {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  color: #B9B0A2; font-size: 11.5px; font-weight: 700;
  background: repeating-linear-gradient(135deg, #F5F1E8, #F5F1E8 9px, #EFE8DC 9px, #EFE8DC 18px);
}
.lt-gc__body { padding: 12px 13px 14px; }
.lt-gl { display: block; height: 9px; border-radius: 5px; background: #ECE5D9; margin-bottom: 7px; }
.lt-gl--w90 { width: 90%; }
.lt-gl--w70 { width: 70%; }
.lt-gl--w60 { width: 60%; }
.lt-gl--w45 { width: 45%; }

/* ── живая неделя (задачи пришли) ──────────────────────────────────────── */
/* Портировано из статического мокапа «Маша W35» — по просьбе владельца продукта эти стили
   ближе к исходнику, чем первая версия: у секций разный тон фона (задачи —
   белые, календарь — голубоватый, идеи — зеленоватый, хуки — просто в рамке),
   у карточки тёмная плашка-превью вместо клетчатой заглушки. */
.lt-weeks { display: flex; flex-direction: column; gap: 12px; }

.lt-week__prev {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 15px 20px; font: inherit; text-align: left;
  border: 1px solid #E6DECF; background: #fff; cursor: pointer;
}
.lt-week__prev:hover { background: #FFFDF9; border-color: #D8CDB8; }
.lt-week__prev__sum { font-size: 13.5px; color: #6B6453; }
.lt-week__prev__sum b { color: #1C1B18; }
.lt-week__toggle {
  flex: none; border: none; background: transparent; color: #8A8170;
  font: inherit; font-size: 12.8px; font-weight: 700; cursor: pointer; padding: 0;
}
.lt-week__toggle--r { margin-left: auto; }

/* ── секции недели: у каждой свой тон фона, как в исходном мокапе ────────── */
.lt-sec { margin-top: 24px; }
.lt-sec:first-child { margin-top: 6px; }
.lt-sec__h { margin: 0 0 3px; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.lt-sec__rule { margin: 0 0 13px; font-size: 13.5px; color: #8A8170; }

.lt-sec--cal { background: #F1F6FD; border: 1px solid #D9E6F8; border-radius: 16px; padding: 16px 18px 20px; }
.lt-sec--cal .lt-sec__h { color: #1E4E8C; }
.lt-sec--ideas { background: #F1F9F4; border: 1px solid #D6EBDE; border-radius: 16px; padding: 16px 18px 20px; }
.lt-sec--ideas .lt-sec__h { color: #1F7A45; }
.lt-sec--hooks { background: #fff; border: 1px solid #ECE4D6; border-radius: 16px; padding: 16px 18px 18px; }

.lt-intro p { margin: 0 0 10px; font-size: 14.3px; line-height: 1.6; color: #2A2822; }
.lt-intro p a { color: #B5470F; font-weight: 600; }
.lt-intro__more {
  border: none; background: transparent; color: #FF6A1A; font-weight: 700;
  font: inherit; font-size: 13.5px; cursor: pointer; padding: 2px 0;
}

.lt-cardsgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .lt-cardsgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .lt-cardsgrid { grid-template-columns: 1fr; } }

/* ── карточка задачи ───────────────────────────────────────────────────── */
.lt-tc {
  text-align: left; border: 1.5px solid #ECE4D6; border-radius: 14px; background: #fff;
  overflow: hidden; font: inherit; position: relative; transition: .14s;
  display: flex; flex-direction: column;
}
.lt-tc:hover { border-color: #FF6A1A; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(190,120,70,.13); }
.lt-tc__thumb {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(150deg, #3A3733, #191715);
}
.lt-tc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-tc__when {
  position: absolute; left: 9px; top: 9px; font-size: 10px; font-weight: 800; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 6px; background: rgba(245,241,232,.92); color: #6B6453;
}
.lt-tc__when--today { background: #FF6A1A; color: #fff; }
.lt-tc__when--dated { background: #F2C230; color: #3A2C07; }
/* та же метка, но статично в шапке панели, а не поверх превью */
.lt-tc__when--static { position: static; display: inline-flex; }
.lt-tc__dot {
  position: absolute; right: 9px; top: 9px; width: 14px; height: 14px; border-radius: 50%;
  background: #B9B0A2; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.lt-tc__dot--work { background: #FF6A1A; }
.lt-tc__dot--shot { background: #3B7FD1; }
.lt-tc__dot--win { background: #2E9E5B; }
.lt-tc__dot--fail { background: #C23F32; }
.lt-tc__dot--skip { background: #D8CFC0; }
.lt-tc__body { padding: 12px 13px 11px; cursor: pointer; flex: 1; }
.lt-tc__title { font-size: 14.5px; font-weight: 800; line-height: 1.3; margin-bottom: 5px; }
.lt-tc__one { font-size: 12.6px; color: #6B6453; line-height: 1.42; }
.lt-tc__foot {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px 10px;
  border-top: 1px solid #ECE4D6; cursor: pointer;
}
.lt-tc__statuslabel { font-size: 11.5px; font-weight: 700; color: #A79C88; }

/* значок механики — только для куратора, крестик клика не открывает панель */
.lt-mek {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: #F5F1E8;
  color: #8A8170; font-size: 10.5px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; flex: none; cursor: help; position: relative;
}
.lt-mek:hover { background: #FFF1E8; color: #FF6A1A; }
.lt-mek__tip {
  display: none; position: absolute; bottom: 26px; right: -2px; width: 210px;
  background: #1C1B18; color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.4;
  padding: 8px 10px; border-radius: 8px; z-index: 45; text-align: left;
}
.lt-mek:hover .lt-mek__tip { display: block; }
.lt-mek__tip b { color: #FFB489; display: block; margin-bottom: 2px; }

/* ── вход в чат на карточке ────────────────────────────────────────────────
   Замер 08–09.09.26: 7 заходов во вкладку, 1 дошёл до чата — вход был виден
   только внутри раскрытой панели. Кнопка — не третья кнопка решения
   («Буду снимать» / «не беру»), а другой жест, поэтому цвет — из холодной
   пары, которой в файле уже помечены календарные (не решательные) элементы
   (.lt-cal__advice/.lt-cal__events), а не из тёплой пары decision-кнопок.
   tokens.css эта страница не подключает (см. client/lab/index.html) — здесь
   те же условные «переменные», что и у остального lt-tc: захардкоженные hex,
   но старые, уже использованные в файле, а не новые. */
.lt-tc__chat {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: calc(100% - 26px); margin: 0 13px 10px; padding: 7px 10px;
  border: 1.5px solid #CFE0F5; background: #EAF2FB; border-radius: 9px;
  font: inherit; font-size: 12px; font-weight: 700; color: #1E4E8C; cursor: pointer;
}
.lt-tc__chat:hover { border-color: #3B7FD1; background: #DDE8F7; }
.lt-tc__chat__ic { font-size: 12.5px; }
.lt-tc__chat__n { font-weight: 800; }

/* ── компактные действия на карточке ──────────────────────────────────── */
.lt-tc__acts { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 0 13px 12px; }
.lt-btn--gh { background: transparent; }
.lt-btn--dgr:hover { border-color: #C23F32; color: #C23F32; background: #FDF1F0; }
.lt-btn--dgr.is-on { border-color: #C23F32; color: #C23F32; background: #FDF1F0; }
.lt-tc__decision { font-size: 12.3px; font-weight: 700; }
.lt-tc__decision--go { color: #B5470F; }
.lt-tc__decision--no { color: #8A8170; }
.lt-tc__undo {
  margin-left: auto; border: none; background: transparent; color: #8A8170;
  font: inherit; font-size: 11.8px; font-weight: 700; text-decoration: underline;
  cursor: pointer; padding: 0;
}

/* причина отказа — чипы + своё поле, встроено прямо в карточку */
.lt-why { padding: 0 13px 13px; border-top: 1px dashed #ECE4D6; margin-top: 2px; padding-top: 11px; }
.lt-why__q { font-size: 11.8px; font-weight: 700; color: #8A3A15; margin-bottom: 8px; }
.lt-why__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.lt-chip {
  border: 1.5px solid #ECE4D6; background: #fff; border-radius: 999px; padding: 5px 11px;
  font: inherit; font-size: 11.8px; font-weight: 700; color: #6B6453; cursor: pointer;
}
.lt-chip:hover { border-color: #C23F32; }
.lt-chip.is-on { background: #C23F32; border-color: #C23F32; color: #fff; }
.lt-why__input {
  width: 100%; margin-bottom: 9px; border: 1.5px solid #ECE4D6; border-radius: 9px;
  padding: 7px 10px; font: inherit; font-size: 12.5px; background: #FBF7F0;
}
.lt-why__input:focus { outline: none; border-color: #FF6A1A; background: #fff; }
.lt-why__acts { display: flex; gap: 7px; flex-wrap: wrap; }

/* ── события и идеи ────────────────────────────────────────────────────── */
.lt-cal__events { border: 1px solid #DDE8F7; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.lt-cal__ev { display: flex; gap: 12px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid #E9F0FA; }
.lt-cal__ev:last-child { border-bottom: none; }
.lt-cal__ev__d { flex: none; width: 170px; font-weight: 800; font-size: 12.5px; }
.lt-cal__ev__d--hot { color: #FF6A1A; }
@media (max-width: 620px) { .lt-cal__ev { flex-direction: column; gap: 2px; } .lt-cal__ev__d { width: auto; } }
.lt-cal__advice {
  background: #fff; border: 1px solid #CFE0F5; border-radius: 10px; padding: 10px 14px;
  font-size: 13.5px; font-weight: 700; color: #1E4E8C; margin-bottom: 14px;
}
.lt-cal__pick { font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }
.lt-cal__pick em { font-style: normal; color: #FF6A1A; }

.lt-ideas { display: flex; flex-direction: column; }
.lt-idea {
  display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px dashed #D6EBDE; font-size: 14px;
}
.lt-idea:last-child { border-bottom: none; }
.lt-idea__n {
  flex: none; width: 21px; height: 21px; border-radius: 50%; background: #fff; color: #1F7A45;
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.lt-idea b { font-weight: 800; }
.lt-idea a { color: #1F7A45; font-weight: 600; }

/* ── хуки и подвал ─────────────────────────────────────────────────────── */
.lt-hookgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .lt-hookgrid { grid-template-columns: 1fr; } }
.lt-hg { border: 1px solid #ECE4D6; border-radius: 12px; padding: 11px 13px; background: #FFFDF9; }
.lt-hg h5 {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: #FF6A1A; margin: 0 0 6px;
}
.lt-hg--oth h5 { color: #8A8170; }
.lt-hg ul { list-style: none; margin: 0; padding: 0; }
.lt-hg li { padding: 5px 0 5px 15px; position: relative; font-size: 13.3px; color: #4A453D; }
.lt-hg li::before { content: "—"; position: absolute; left: 0; color: #FF6A1A; }
.lt-hg--oth li::before { color: #8A8170; }
.lt-hg a { color: #B5470F; font-weight: 600; }

.lt-acc { border-top: 1px solid #ECE4D6; margin-top: 4px; }
.lt-acc__item + .lt-acc__item { border-top: 1px solid #ECE4D6; }
.lt-acc__h {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 13.8px; font-weight: 700; padding: 12px 2px;
  display: flex; justify-content: space-between; align-items: center; color: #1C1B18;
}
.lt-acc__body { padding: 0 2px 14px; font-size: 13.3px; line-height: 1.55; color: #4A453D; }
.lt-acc__body ul { margin: 0; padding-left: 20px; }
.lt-acc__body li { padding: 3px 0; }
.lt-acc__body a { color: #B5470F; font-weight: 600; }

/* ── панель задачи (выезжает справа) ───────────────────────────────────── */
.lt-overlay { position: fixed; inset: 0; background: rgba(28,27,24,.4); z-index: 40; backdrop-filter: blur(2px); }
.lt-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100vw;
  background: #FFFDF9; z-index: 41; overflow-y: auto;
  box-shadow: -8px 0 30px rgba(28,27,24,.18); padding: 22px 22px 28px;
}
@media (max-width: 620px) { .lt-panel { width: 100vw; } }
.lt-panel__close {
  border: 1px solid #ECE4D6; background: #fff; border-radius: 9px;
  width: 32px; height: 32px; font-size: 15px; cursor: pointer; float: right;
}
.lt-panel__tags { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; min-height: 20px; }
.lt-panel__h { margin: 0 0 4px; font-size: 19px; font-weight: 800; line-height: 1.28; clear: right; }
.lt-panel__sec { margin-bottom: 18px; }
.lt-panel__sec__h {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: #FF6A1A; margin: 0 0 6px;
}
.lt-panel__sec__p { font-size: 14.2px; line-height: 1.55; margin: 0; color: #2A2822; }

.lt-hookbox {
  background: #FDF8EF; border: 1px solid #F3E6D0; border-radius: 11px; padding: 10px 13px;
  font-size: 13.8px; color: #4A453D;
}
.lt-hookbox--end { background: #FFF1E8; border-color: #F7DBC8; color: #8A3A15; font-weight: 700; }

.lt-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.lt-chain__link {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ECE4D6;
  border-radius: 11px; padding: 6px 11px;
}
.lt-chain__who {
  font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: #8A8170; white-space: nowrap;
}
.lt-chain__say { font-size: 13.3px; font-weight: 600; }
.lt-chain__arr { color: #FF6A1A; font-weight: 800; }

.lt-subs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.3px; }
.lt-subs__i { background: #F5F1E8; border-radius: 9px; padding: 5px 11px; color: #4A453D; }
.lt-subs__dot { color: #8A8170; font-weight: 800; }

.lt-ref { border: 1px solid #ECE4D6; border-radius: 12px; overflow: hidden; background: #fff; }
.lt-ref__row { display: flex; gap: 12px; padding: 11px; }
.lt-ref__thumbwrap {
  width: 112px; flex: none; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  background: linear-gradient(150deg, #3A3733, #191715); display: block;
}
.lt-ref__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-ref__meta { flex: 1; min-width: 0; }
.lt-ref__mn { font-size: 13.5px; font-weight: 800; line-height: 1.3; margin-bottom: 3px; }
.lt-ref__ch { font-size: 12.3px; color: #8A8170; margin-bottom: 7px; }
.lt-ref__ch b { color: #1C1B18; }
.lt-ref__go {
  display: inline-block; font-size: 12px; font-weight: 800; text-decoration: none;
  border: 1.5px solid #FF6A1A; color: #FF6A1A; border-radius: 18px; padding: 4px 12px;
}
.lt-ref__go:hover { background: #FF6A1A; color: #fff; }
.lt-ref__note { border-top: 1px solid #ECE4D6; padding: 9px 12px; font-size: 12.8px; color: #6B6453; background: #FFFDF9; }

/* ── статус и действия внизу панели ───────────────────────────────────── */
.lt-panel__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid #ECE4D6; }
.lt-curst { font-size: 12.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.lt-curst__dot { width: 11px; height: 11px; border-radius: 50%; background: #B9B0A2; }
.lt-curst--work .lt-curst__dot { background: #FF6A1A; } .lt-curst--work { color: #FF6A1A; }
.lt-curst--shot .lt-curst__dot { background: #3B7FD1; } .lt-curst--shot { color: #3B7FD1; }
.lt-curst--win .lt-curst__dot { background: #2E9E5B; } .lt-curst--win { color: #2E9E5B; }
.lt-curst--fail .lt-curst__dot { background: #C23F32; } .lt-curst--fail { color: #C23F32; }
.lt-curst--skip .lt-curst__dot { background: #D8CFC0; } .lt-curst--skip { color: #8A8170; }
.lt-curst a { color: inherit; font-weight: 700; }

.lt-panel__acts { display: flex; gap: 8px; flex-wrap: wrap; }

.lt-shot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lt-shot input {
  flex: 1; min-width: 190px; padding: 9px 12px; border-radius: 10px; border: 1.5px solid #ECE4D6;
  font-size: 13.5px; font: inherit;
}
.lt-shot input:focus { outline: none; border-color: #FF6A1A; }

/* панельный «Не буду» переиспользует ту же карточную форму причины */
.lt-panel .lt-why { padding: 12px 0 0; border-top: none; margin-top: 12px; }

/* ── чат по задаче (внутри панели) ────────────────────────────────────────
   Живёт как ещё одна секция карточки, а не отдельный экран — та же граница
   сверху, тот же ритм отступов, что у lt-panel__foot над ним. */
.lt-chat {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #ECE4D6;
}
.lt-chat__h {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: #FF6A1A; margin: 0 0 10px;
}
.lt-chat__hint { font-size: 12.8px; color: #8A8170; }
.lt-chat__hint--err { color: #C23F32; }
.lt-chat__empty {
  font-size: 12.8px; line-height: 1.5; color: #8A8170;
  background: #FDF8EF; border: 1px solid #F3E6D0; border-radius: 11px; padding: 10px 13px;
}

.lt-chat__thread {
  display: flex; flex-direction: column; gap: 9px; margin-bottom: 10px;
  max-height: 360px; overflow-y: auto;
}
.lt-chat__msg {
  max-width: 92%; border-radius: 12px; padding: 9px 12px; font-size: 13.3px; line-height: 1.5;
}
/* Креатор — справа, оранжевый акцент; ассистент — слева, нейтральный фон.
   Тот же принцип, что у диалога в мессенджере, — не выдумываем свой. */
.lt-chat__msg--creator {
  align-self: flex-end; background: #FF6A1A; color: #fff; border-bottom-right-radius: 4px;
}
.lt-chat__msg--assistant {
  align-self: flex-start; background: #F5F1E8; color: #1C1B18; border-bottom-left-radius: 4px;
}
.lt-chat__msg--live { color: #4A453D; }
.lt-chat__text p { margin: 0; }
.lt-chat__text > * + * { margin-top: 8px; }
/* Три варианта — основной формат ответа, и они обязаны читаться списком, а не
   стеной: номер снаружи текста, чтобы вторая строка пункта шла под первой. */
.lt-chat__ol,
.lt-chat__ul { margin: 0; padding-left: 20px; }
.lt-chat__ol li + li,
.lt-chat__ul li + li { margin-top: 6px; }
.lt-chat__h { font-weight: 700; }
.lt-chat__text a { color: inherit; text-decoration: underline; }
.lt-chat__text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
}

/* Индикатор «печатает» — три точки, а не спиннер: спокойнее смотрится внутри
   ленты сообщений и не спорит взглядом с текстом, который вот-вот появится. */
.lt-chat__typing { display: inline-flex; align-items: center; gap: 4px; padding: 3px 2px; }
.lt-chat__typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #B9B0A2;
  animation: lt-chat-typing 1.1s infinite ease-in-out;
}
.lt-chat__typing span:nth-child(2) { animation-delay: .15s; }
.lt-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lt-chat-typing {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.lt-chat__composer { display: flex; gap: 8px; align-items: flex-end; }
.lt-chat__input {
  flex: 1; min-width: 0; resize: vertical; font: inherit; font-size: 13.5px;
  padding: 9px 12px; border-radius: 10px; border: 1.5px solid #ECE4D6; background: #fff;
}
.lt-chat__input:focus { outline: none; border-color: #FF6A1A; }
.lt-chat__input:disabled { background: #F5F1E8; color: #8A8170; }

.lt-chat__composerfoot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 4px;
  min-height: 14px; font-size: 11.5px;
}
.lt-chat__count { color: #8A8170; margin-left: auto; }
.lt-chat__err { color: #C23F32; font-weight: 600; }

.lt-chat__outcome {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.lt-chat__outcome--done { font-size: 12.8px; font-weight: 700; color: #4A453D; }

@media (max-width: 620px) {
  .lt-chat__msg { max-width: 100%; }
  .lt-chat__thread { max-height: 46vh; }
}
