/* сторінка /timeline — лише нові правила; спільні класи в base.css, картки бронювань — у bookings.css */

.tl-card { margin-bottom: 20px; }
.tl-card:last-child { margin-bottom: 0; }
.tl-sec .card-h .sub { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
/* «+» у шапці розділу — виглядає як посилання «більше», кнопкою лише скидаємо її фон */

/* перемикач виду й кнопки додавання */
.tl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.tl-tabs { flex: 1 1 320px; min-width: 0; margin: 0; }
.tl-new { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.tl-new .btn { padding: 11px 16px; white-space: nowrap; }

/* мітки людей і «додав(ла)» */
.tl-who { display: inline-flex; gap: 4px; }
/* у задачах поїздки — праворуч на рівні назви, внахлест (як на головній і в Підготовці) */
.tl-task-who { grid-column: 3; grid-row: 1; align-self: start; gap: 0; margin-top: 1px; } /* лише в рядку назви — див. .task у base.css */
.tl-task-who .tl-p { width: 20px; height: 20px; font-size: 10.5px; box-shadow: 0 0 0 2px #fff; }
.tl-task-who .tl-p + .tl-p { margin-left: -3px; }
.tl-p { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--blue));
  color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.tl-by { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.tl-flag { width: 20px; height: 15px; border-radius: 3px; }

/* ── список етапів ─────────────────────────────────────────────────────────────────────────── */
.tl-list { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 10px; margin: 0 -10px; border-top: 1px solid var(--line); border-radius: 12px; }
.tl-list > .tl-row:first-child, .tl-kids > .tl-row:first-child { border-top: 0; }
.tl-row:hover { background: var(--surface-2); }
.tl-row.is-past { opacity: .55; }
.tl-row.is-now { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue); }
.tl-row.is-now:hover { background: var(--blue-50); }
.tl-ph { position: relative; display: grid; place-items: center; width: 58px; height: 46px; border-radius: 12px;
  background: var(--surface-2); color: var(--navy); overflow: hidden; }
.tl-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl-ph .ic { width: 22px; height: 22px; color: #a9bbd2; }
.tl-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tl-t { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.tl-t > .tl-country, .tl-t > .tl-group { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.tl-t b { font-size: 16px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.tl-country { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink-2); } /* прапор усередині: переносяться разом (аудит F-05); .tl-c — клітинка міні-місяця, не плутати */
.tl-group { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tl-d { font-size: 13px; font-weight: 700; color: var(--ink-2); }
/* праворуч два рядки: стан і «через N днів» — угорі, люди — під ними (як ліворуч назва й дати) */
.tl-rside { display: grid; grid-template-columns: auto auto; justify-items: end; align-items: center; gap: 6px 10px; }
.tl-rside .tl-who { grid-column: 1 / -1; gap: 0; }
.tl-rside .tl-p { width: 20px; height: 20px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--ring, #fff); }
.tl-rside .tl-p + .tl-p { margin-left: -3px; }
.tl-row:hover { --ring: var(--surface-2); }
.tl-row.is-now { --ring: var(--blue-50); }
.tl-in { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tl-in.is-now { color: var(--blue); }

/* поїздка під час дому — під ним, з рискою ліворуч */
.tl-kids { margin: 2px 0 6px 26px; padding-left: 14px; border-left: 2px dashed var(--line); }
.tl-row-kid { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; padding: 9px 8px; }
.tl-row-kid .tl-ph { width: 40px; height: 34px; border-radius: 10px; }
.tl-row-kid .tl-t b { font-size: 14.5px; }

/* блок «Ідеї» */
.tl-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tl-idea { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; align-items: start;
  padding: 11px 12px; border-radius: 14px; background: var(--surface-2); }
.tl-idea:hover { background: var(--blue-50); }
.tl-idea-ph { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #a9bbd2; overflow: hidden; }
.tl-idea-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl-idea-ph .ic { width: 19px; height: 19px; }
.tl-idea-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tl-idea-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tl-idea-t b { font-size: 14.5px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.tl-idea-t span { font-size: 12.5px; color: var(--ink-2); }
.tl-idea-d { font-size: 12px; color: var(--muted); }
.tl-idea-c { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; grid-column: 2; margin-top: 6px; }

/* ── сторінка етапу ────────────────────────────────────────────────────────────────────────── */
.tl-hero .hero-in { min-height: 320px; }
/* верхній рядок сторінки подорожі: «Усі подорожі» ліворуч, сусідні подорожі праворуч */
.tl-navrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tl-crumb, .tl-pn-a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--blue); }
.tl-crumb .ic { flex: none; width: 16px; height: 16px; stroke-width: 2.4; } /* стрілка назад — не шеврон, щоб не плутати з попередньою подорожжю праворуч */
.tl-crumb:hover span, .tl-crumb:hover, .tl-pn-a:hover span { text-decoration: underline; }
.tl-pn { display: inline-flex; align-items: center; gap: 18px; min-width: 0; }
.tl-pn-a { min-width: 0; }
.tl-pn-a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.tl-pn-a .ic { flex: none; width: 15px; height: 15px; stroke-width: 2.4; }
.tl-pn-a[data-pn="prev"] .ic { transform: scaleX(-1); }
.tl-hero .tl-pn-a { padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--pill-shadow); } /* праворуч уже фото — на плашці читається на будь-якому */
.tl-chips { align-items: center; margin-bottom: 14px; }
/* кружки людей і будиночок дому — з тією самою тінню, що й плашки поруч; будиночок — розміром із плашку */
.tl-chips .tl-p { box-shadow: var(--pill-shadow); }
.tl-grp { max-width: 100%; white-space: nowrap; }
.tl-grp > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tl-home { --c: var(--violet); width: 32px; height: 32px; } /* кружок дому — заввишки як .pill (20 + 2 × 6) */
.tl-home .ic { width: 17px; height: 17px; stroke-width: 2; }
.tl-summary { max-width: 62ch; margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; } /* довге посилання без пробілів не розпирає сторінку */
.tl-hero .tl-by { margin: 0 0 12px; }
.tl-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tl-tools .tl-cmp-pop { right: auto; left: 0; margin-top: 6px; } /* меню «+ Складова» у ряді кнопок — від лівого краю кнопки */
.tl-tools .tl-cmp-pop.to-left { right: 0; left: auto; }
/* сірі ghost-кнопки зливались зі світлим фото — у шапці вони білі; від «Змінити» відрізняються лише фоном і кольором тексту */
.tl-tools .btn.ghost { background: var(--surface); }
.tl-tools .btn.ghost:hover { background: var(--blue-50); }
.tl-body { align-items: start; }
.tl-main, .tl-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tl-cards { margin: 0; }
.tl-dir { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 7px; font-size: 12px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.tl-dir .ic { width: 14px; height: 14px; }
.tl-err { margin: 10px 0 0; font-size: 12.5px; font-weight: 700; color: var(--red); }

/* ── складові (ТЗ v2 §3) ───────────────────────────────────────────────────────────────────── */
.tl-cmp-prog { margin: -6px 0 0; }
.tl-cmp > .empty { margin-top: 12px; }

/* блоки складових: дорога з житлом поруч, під ними план; активності й підписки — у правій колонці */
.tl-blkrow { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 20px; align-items: start; }
/* «Дорога» і «Житло»: дві рівні половини однакової висоти, а вміст кожної не вище 260 px — далі гортається */
.tl-blkrow-rs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.tl-blkrow-rs .tl-blist { max-height: 260px; overflow: hidden auto; overflow-wrap: anywhere; scrollbar-width: thin; }
/* рядки-кнопки виступають на 8px з боків (підсвітка) — список прокрутки має той самий запас, щоб їх не різало */
.tl-blkrow-rs .tl-blist { margin: 0 -8px; padding: 0 8px; }
.tl-blkrow-rs.is-one { grid-template-columns: minmax(0, 1fr); } /* лише дорога чи лише житло — на всю ширину */
.tl-blk { min-width: 0; }
.tl-blk .card-h { margin-bottom: 10px; }
.tl-blk .card-h h2 { font-size: 15.5px; }
.tl-blk .card-h h2 .ic { width: 18px; height: 18px; }
/* блоки правої колонки — з такими самими підписами, як «Задачі» й «Візи й документи» */
.tl-blk-side .card-h h2 { font-size: 17px; }
.tl-blk-side .card-h h2 .ic { width: 20px; height: 20px; }

.tl-cmp-row { border-top: 1px solid var(--line); }
.tl-blist { display: flex; flex-direction: column; }
.tl-blist > .tl-cmp-row:first-child { border-top: 0; }
/* пункт блока: назва й стан угорі, деталі під ними, кружечки людей — стовпчиком біля правого краю;
   клік відкриває форму запису (той самий data-cmp / data-col, що й у колишньому рядку складових) */
/* кнопка — порожня підкладка на весь пункт (з виступом 8px для підсвітки); вміст — поверх неї, клік пропускає крізь себе,
   крім посилань (Calendar, Maps) */
.tl-bi-go { position: absolute; inset: 0 -8px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.tl-bi:hover { --ring: var(--surface-2); } /* фон під літачком у квитку й обводка кружечків людей — колір підсвітки */
.tl-bi:hover > .tl-bi-go { background: var(--surface-2); }
.tl-bi-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: start;
  padding: 10px 0; pointer-events: none; }
/* кружечки людей — лише в рядку назви: деталі (рейси, адреса) і стан під ними йдуть на всю ширину, без пустої смуги праворуч */
.tl-bi-in > .tl-cmp-t { grid-column: 1; grid-row: 1; }
.tl-bi-in > .tl-bi-b { grid-column: 1 / -1; }
.tl-bi-in a, .tl-bi-in button { pointer-events: auto; }
.tl-bi-in .tl-cmp-ps { grid-column: 2; grid-row: 1; }
/* стан — окремим рядком під деталями (у вузькій колонці він би з'їдав назву й рейси), праворуч у тому ж рядку — Calendar і Maps */
.tl-bi-f { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 5px; }
.tl-bi-acts { display: flex; align-items: center; gap: 14px; margin-left: auto; }
/* рядок під квитком: перевізник і тривалість, праворуч — Calendar */
.tl-tk-mr { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* Calendar і файли рейсу — одним правим блоком, щоб space-between не розкидав їх на три колонки */
.tl-tk-acts { display: flex; align-items: center; gap: 14px; margin-left: auto; }
/* «Tickets (N)» — кнопка-посилання: без рамки й фону, як «Maps»; меню файлів — як «+ Складова», але fixed (bindTix) */
.tl-bi-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* дорога як квиток (timeline.js ticketLeg): «08:55 WAW ──✈── HEL 11:35», під кодами — міста; далі перевізник і тривалість */
.tl-tk { display: grid; grid-template-columns: auto auto minmax(28px, 1fr) auto auto; align-items: center; column-gap: 8px; margin-top: 2px; }
.tl-tk-t, .tl-tk-c { font-size: 15px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-tk-c { letter-spacing: .02em; }
.tl-tk-line { position: relative; display: flex; align-items: center; justify-content: center; height: 18px; color: var(--muted); }
.tl-tk-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed #c7d0dc; }
.tl-tk-line .ic { position: relative; width: 22px; height: 16px; padding: 0 3px; background: var(--ring, #fff); }
.tl-tk-line.is-flight .ic { transform: rotate(45deg); } /* літак носом уперед */
.tl-tk-n { grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.tl-tk-n1 { grid-column: 1 / 3; }
.tl-tk-n2 { grid-column: 4 / 6; text-align: right; }
.tl-tk.no-t { grid-template-columns: auto minmax(28px, 1fr) auto; }
/* станції без кодів (потяг, автобус, пором): відправлення й прибуття — двома рядками, значок виду ліворуч */
.tl-tk-v { grid-template-columns: 18px auto minmax(0, 1fr); align-items: baseline; row-gap: 2px; }
.tl-tk-v .tl-tk-ic { grid-row: 1 / 3; align-self: center; display: grid; color: var(--muted); }
.tl-tk-v .tl-tk-ic .ic { width: 18px; height: 18px; }
.tl-tk-s { min-width: 0; font-size: 14.5px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.tl-tk.no-t .tl-tk-n1 { grid-column: 1; }
.tl-tk.no-t .tl-tk-n2 { grid-column: 3; }
.tl-tk-m { font-size: 12.5px; color: var(--ink-2); }
.tl-tk-x { display: inline-flex; align-items: center; gap: 5px; margin: 3px 0; font-size: 12px; font-weight: 700; color: var(--amber); }
.tl-tk-x .ic { width: 13px; height: 13px; }
.tl-bi-plus { margin-left: 4px; font-size: 11px; font-weight: 800; color: var(--muted); }
.tl-bi-addr { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.tl-bi-addr .ic { flex: none; width: 13px; height: 13px; color: var(--muted); }
/* адреса повністю й виділяється пальцем для копіювання (аудит F-09); дотик по ній не відкриває форму */
.tl-bi-addr { align-items: flex-start; }
.tl-bi-addr .ic { margin-top: 2px; }
.tl-bi-addr span { min-width: 0; overflow-wrap: anywhere; pointer-events: auto; user-select: text; -webkit-user-select: text; cursor: text; }
.tl-bi { position: relative; }
/* малі дії-посилання в блоках подорожі: «Google Maps», «Редагувати» нотатку — сині, зі значком, без фону (як «+ Оплата») */
.tl-bi-map, .tl-bi-cal, .tl-plan-edit { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 26px;
  font-size: 12.5px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.tl-plan-edit { margin-left: auto; }
/* ручка ⠿ — перетягнути нотатку (коли їх кілька); touch-action: none — палець на ручці не гортає сторінку */
.tl-plan-drag { position: relative; display: grid; place-items: center; width: 28px; height: 28px; margin-right: -6px; padding: 0; border: 0;
  border-radius: 8px; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.tl-plan-drag:hover { background: var(--surface-2); color: var(--navy); }
.tl-plan-drag .ic { width: 18px; height: 18px; }
.tl-plan.is-drag { position: relative; z-index: 3; background: var(--surface); box-shadow: 0 10px 28px rgba(21, 37, 61, .18); border-radius: 12px; }
.tl-plan.is-drag .tl-plan-drag { cursor: grabbing; }
.tl-blk-plan .tl-plan { transition: transform .12s; }
.tl-blk-plan .tl-plan.is-drag, .tl-blk-plan .is-dropping .tl-plan { transition: none; }
.tl-bi-map .ic, .tl-bi-cal .ic, .tl-plan-edit .ic { width: 14px; height: 14px; }
.tl-bi-map:hover, .tl-bi-cal:hover, .tl-plan-edit:hover { text-decoration: underline; }
.tl-bi .tl-tz { font-weight: 700; color: var(--muted); }

/* план читаємо тут: уся нотатка в одному полі до 560 px, далі воно гортається всередині — без згасання */
.tl-blk-plan .tl-blist { overflow-wrap: anywhere; }
.tl-plan { padding: 5px 0 13px; }
.tl-plan-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.tl-plan-h .tl-cmp-t { flex: 1 1 auto; min-width: 0; }
.tl-plan-x { max-height: 280px; margin-top: 10px; padding-right: 6px; overflow: hidden auto; scrollbar-width: thin; } /* гортається лише текст */
.tl-plan-t { font-weight: 800; color: var(--navy); }
/* прев'ю нотатки, коли їх кілька: два рядки тексту, натискання відкриває нотатку */
.tl-plan-pv { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 2px;
  font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.tl-plan-pv:hover { color: var(--navy); }
.tl-plan-pv.is-empty { color: var(--muted); }
.tl-plan-t:hover { color: var(--blue); }
/* типографіка нотатки (notes.css), лише дрібніша: план читають у колонці поїздки */
.notes-body.tl-plan-txt { font-size: 14.5px; line-height: 1.62; }
.notes-body.tl-plan-txt h2 { margin: 1.1em 0 .35em; font-size: 19px; }
.notes-body.tl-plan-txt h3 { margin: 1em 0 .3em; font-size: 16.5px; }
.notes-body.tl-plan-txt img { margin: 12px 0; border-radius: 12px; }
.notes-body.tl-plan-txt hr { margin: 16px 0; }
.notes-body.tl-plan-txt input[type="checkbox"] { width: 15px; height: 15px; }
.tl-plan-none { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.tl-cmp-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; font-size: 14.5px; color: var(--navy); }
.tl-cmp-t b { font-weight: 800; overflow-wrap: anywhere; }
.tl-cmp-t span:not(.chip) { font-size: 13px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; } /* плашка стану поруч — зі своїм стилем */
/* план із текстом, але без «План готовий» — чернетка (ТЗ v2 §3): плашка .chip, сіра з пунктиром; рамка 1px — за рахунок відступу, висота та сама */
.tl-cmp-draft { padding: 3px 10px; border: 1px dashed #b8c2d1; background: var(--surface-2); color: var(--muted); }
.tl-cmp-m { display: flex; flex-wrap: wrap; gap: 3px 7px; font-size: 12.5px; color: var(--ink-2); }
.tl-cmp-x { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-cmp-s { flex: none; }
/* кружечки людей — окремим стовпчиком біля правого краю, внахлест */
.tl-cmp-ps { display: inline-flex; justify-self: end; }
.tl-cmp-ps .tl-p { width: 20px; height: 20px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--ring, #fff); }
.tl-cmp-ps .tl-p + .tl-p { margin-left: -3px; }
.tl-cmp-s .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.tl-cmp-o { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
.tl-cmp-w { margin: 14px 0 0; }

/* меню «+ Складова» */
.tl-cmp-add { position: relative; }
.tl-cmp-pop { position: absolute; top: 100%; right: 0; z-index: 6; display: flex; flex-direction: column; gap: 2px;
  min-width: 212px; max-width: calc(100vw - 32px); margin-top: 6px; padding: 6px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); }
.tl-cmp-pop button { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 0; border-radius: 10px;
  background: none; font: 700 13.5px var(--sans); color: var(--ink-2); text-align: left; cursor: pointer; }
.tl-cmp-pop button:hover { background: var(--blue-50); color: var(--navy); }
.tl-cmp-pop .ic { width: 16px; height: 16px; color: var(--blue); }

/* готовність у рядку списку: «✓ 2 з 4» */
.tl-cmpn { padding: 2px 9px; border-radius: 999px; background: var(--amber-50); color: var(--amber);
  font-size: 11.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-cmpn.is-all { background: var(--green-50); color: var(--green); }

/* галочки «що буде в поїздці» у формі поїздки чи дому */
.tl-cmp-h { margin: 18px 0 2px; font-size: 13px; font-weight: 800; color: var(--muted); }
.tl-cmp-form [data-row^="cmp_"] { display: inline-block; width: calc(50% - .3em); margin: 0; vertical-align: top; }
.tl-cmp-form [data-row^="cmp_"] .fld-check { padding: 7px 0; }

/* ── видалення поїздки чи дому (ТЗ v2 §2): підтвердження з переліком наслідків ─────────────── */
/* «Видалити» як сусідні кнопки: при наведенні фон темнішає, текст — червоний */
.btn.ghost.tl-rm-open:hover { color: var(--red); }
.tl-rm { width: min(560px, calc(100vw - 24px)); }
.tl-rm-lead { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tl-rm-s { margin-bottom: 16px; }
.tl-rm-h { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; font-size: 13px; font-weight: 800; color: var(--muted); }
.tl-rm-h .ic { width: 14px; height: 14px; }
.tl-rm-l { display: flex; flex-direction: column; gap: 5px; }
.tl-rm-i { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; padding: 8px 11px;
  border-radius: 11px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.tl-rm-i b { font-weight: 800; color: var(--navy); }
.tl-rm-i span { min-width: 0; overflow-wrap: anywhere; }
.tl-rm-n { font-size: 12px; font-weight: 600; font-style: normal; color: var(--muted); }
.tl-rm-note { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.tl-rm-err { margin: 0 0 14px; }

/* для людей етапу: перебування й страховка */
/* підзаголовки й підписи в блоках — звичайним регістром, без розрядки (як і «Далі» на «Сьогодні») */
.tl-sub-h { display: flex; align-items: center; gap: 7px; margin: 20px 0 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.tl-sub-h:first-of-type { margin-top: 0; }
.tl-sub-h:not(:first-child) { margin-top: 20px; } /* «Страховка» після віз чи напису «нема» — з відступом */
.tl-sub-h .ic { width: 15px; height: 15px; }
.tl-permits { display: flex; flex-direction: column; gap: 8px; }
/* віза чи безвіз: лічильник праворуч не тримає стовпчика на всю висоту — пігулка («в'їзд через N днів», «завершено»)
   стоїть у рядку назви, великий «до виїзду» — поруч із назвою й датами; примітка під ними — на всю ширину */
.tl-permit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: start;
  padding: 11px 13px; border-radius: 13px; background: var(--blue-50); }
.tl-permit > .tl-permit-b { display: contents; }
.tl-permit-t { grid-column: 1; grid-row: 1; }
.tl-permit-m, .tl-permit-n { grid-column: 1 / -1; }
.tl-permit > .tl-count { grid-column: 2; grid-row: 1; }
.tl-permit.has-count > .tl-count { grid-row: 1 / span 2; } /* великий «до виїзду» вищий за назву — дати поруч із ним */
.tl-permit.has-count .tl-permit-m { grid-column: 1; }
.tl-permit-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tl-permit-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--navy); }
.tl-permit-t b { font-weight: 800; }
.tl-permit-m { font-size: 12.5px; color: var(--ink-2); }
.tl-permit-n { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; } /* на тонованій картці --muted не дотягує до 4,5:1 */
.tl-count { display: flex; flex-direction: column; align-items: center; flex: none; line-height: 1.1;
  padding: 5px 10px; border-radius: 11px; background: #fff; color: var(--navy); text-align: center; }
.tl-count i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }
.tl-count b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tl-count small { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.tl-count.is-hot { background: var(--red-50); color: var(--red); }
.tl-count.is-hot i, .tl-count.is-hot small { color: var(--red); }
.tl-count.is-late, .tl-count.is-done { font-size: 12px; font-weight: 800; color: var(--muted); }
.tl-count.is-late { color: var(--red); }
.tl-count.is-future { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.tl-ins-list { display: flex; flex-direction: column; gap: 8px; }
.tl-docs-all { display: flex; width: fit-content; min-height: 44px; margin: 4px 0 -8px; } /* «Усі документи»: на телефоні вони не в нижньому меню */
.tl-ins-box { --ring: var(--blue-50); display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; border-radius: 13px; background: var(--blue-50); }
/* файл поліса — кругла кнопка в кінці нижнього рядка, праворуч; на блакитному тлі картки — біла, щоб не зливалась */
.tl-ins-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tl-ins-f > .tl-ins-m { min-width: 0; }
.tl-ins-box .files-btn:not(:hover) { background: var(--surface); }
.tl-ins-box .tix-n { background: var(--surface); }
.tl-ins-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; color: var(--navy); }
.tl-ins-top > .chip { display: inline-block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ins-top b { font-weight: 800; }
.tl-ins-top .more .ic { width: 14px; height: 14px; }
.tl-ins-m { font-size: 12.5px; color: var(--ink-2); }
.tl-ins-no { color: var(--amber); font-weight: 700; }

/* задачі етапу — той самий рядок, що на «Підготовці» */
.tl-tasks { display: flex; flex-direction: column; }
.tl-task .box { display: grid; place-items: center; padding: 0; background: none; cursor: pointer; }
.tl-task .box:hover { border-color: var(--blue); }
.tl-task .box .ic { width: 12px; height: 12px; stroke-width: 3; }
.tl-task.is-done .box { background: var(--green); border-color: var(--green); color: #fff; }
.tl-task.is-done .task-t { color: var(--muted); text-decoration: line-through; }
.tl-task.is-busy { opacity: .45; pointer-events: none; }
.tl-task-t { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.tl-task-t:hover { color: var(--blue); }
.tl-task-m { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; }
.tl-sep { font-style: normal; color: var(--line); }
.tl-late, .tl-prio { color: var(--red); font-weight: 700; }

/* нотатки етапу */
.tl-notes { display: flex; flex-direction: column; gap: 6px; }
.tl-note { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 9px 11px; border-radius: 12px; background: var(--surface-2); }
.tl-note:hover { background: var(--blue-50); }
.tl-note-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--blue); }
.tl-note-ic .ic { width: 15px; height: 15px; }
.tl-note-b { display: flex; flex-direction: column; min-width: 0; }
.tl-note-b b { font-size: 13.5px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.tl-note-b span { font-size: 12px; color: var(--muted); }

/* ── календар ──────────────────────────────────────────────────────────────────────────────── */
/* Рік — картка календаря ліворуч і бічна колонка праворуч; місяць — сама картка на всю ширину. */
.tl-cal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 20px; align-items: start; }
.tl-cal-grid.is-one { grid-template-columns: minmax(0, 1fr); }
.tl-cal-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* шапка картки: рік або місяць, лічильники, стрілки, перемикач виду й кнопки додавання.
   Усе це разом із сіткою днів має вмощатись на екрані ноутбука, тож відступи й шрифти стиснуті. */
.tl-cal { padding: 18px 20px; }
.tl-cal-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tl-cal-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tl-cal-t { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 20px; font-weight: 800;
  color: var(--navy); font-variant-numeric: tabular-nums; }
.tl-cal-t .ic { width: 20px; height: 20px; color: var(--blue); }
.tl-cal-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tl-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.tl-today { padding: 6px 12px; font-size: 13px; }
.tl-today[aria-current] { opacity: .5; pointer-events: none; } /* уже на поточному */
.tl-arrow { width: 30px; height: 30px; }
.tl-arrow .ic { width: 16px; height: 16px; }
.tl-back .ic { transform: scaleX(-1); }

/* «Фільтри»: сім груп подій, увімкнено лише подорож (ТЗ v2 §5) */
.tl-cal-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.tl-filters-h { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.tl-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.tl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 999px;
  background: var(--blue-50); color: var(--navy); font: 800 12px/1.4 var(--sans); cursor: pointer; }
.tl-chip:hover { filter: brightness(.97); }
.tl-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--tl-c, var(--muted)); }
.tl-chip[aria-pressed="false"] { background: var(--surface-2); color: var(--muted); }
.tl-chip[aria-pressed="false"] i { background: #c9d5e5; }
.tl-chip-transport { --tl-c: var(--blue); }
.tl-chip-stay { --tl-c: var(--teal); }
.tl-chip-activity { --tl-c: var(--green); }
.tl-chip-plan { --tl-c: var(--ink-2); }
.tl-chip-task { --tl-c: var(--navy); }
.tl-chip-pay { --tl-c: var(--amber); }
.tl-chip-doc { --tl-c: var(--red); }

/* вимкнена група ховає свої події всюди: у днях місяця, у крапках мінімісяця й у бічній колонці */
.tl-calf.is-off-transport [data-grp="transport"],
.tl-calf.is-off-stay [data-grp="stay"],
.tl-calf.is-off-activity [data-grp="activity"],
.tl-calf.is-off-plan [data-grp="plan"],
.tl-calf.is-off-task [data-grp="task"],
.tl-calf.is-off-pay [data-grp="pay"],
.tl-calf.is-off-doc [data-grp="doc"] { display: none; }

/* колір події за типом (ТЗ §4) */
.tl-ev-transport { --tl-c: var(--blue); }
.tl-ev-stay { --tl-c: var(--teal); }
.tl-ev-activity { --tl-c: var(--green); }
.tl-ev-payment { --tl-c: var(--amber); }
.tl-ev-deadline { --tl-c: var(--red); }
.tl-ev-task { --tl-c: var(--navy); }
.tl-ev-note { --tl-c: var(--ink-2); }
.tl-ev-document { --tl-c: var(--red); }

/* плашки під сіткою днів: завжди рівно два ряди однакової висоти, тож усі картки місяців рівні */
.tl-plates { --ph: 25px; --pg: 5px; display: flex; flex-direction: column; gap: var(--pg);
  height: calc(var(--ph) * 2 + var(--pg)); margin-top: 10px; }
/* ряд плашок: плашка на всю ширину, а «ще N» — поряд із нею в тому самому ряді */
.tl-plate-row { display: flex; align-items: center; gap: var(--pg); min-width: 0; }
.tl-plate { display: grid; flex: 1 1 auto; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center;
  height: var(--ph); min-width: 0; padding: 3px 9px 3px 8px; border: 1.5px solid transparent; border-radius: 999px;
  background: var(--pc); color: var(--navy); }
.tl-plate:hover { filter: brightness(.96); }
.tl-plate-ic { display: grid; place-items: center; color: var(--pa); }
.tl-plate-ic .ic { width: 12px; height: 12px; }
.tl-plate-t { font-size: 12px; font-weight: 800; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-plate-go { font-size: 14px; font-weight: 800; line-height: 1; color: var(--pa); }
/* статус виглядом плашки: заброньовано — суцільна, у планах — пунктирна рамка, ідея — світліша */
.tl-plate.s-planning { border-color: var(--pa); border-style: dashed; }
.tl-plate.s-idea { background: var(--pd); }
.tl-plate-more { flex: none; padding: 3px 11px; border-radius: 999px; background: #fff;
  font-size: 11.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.tl-plate-more:hover { color: var(--blue); }

/* місяць без поїздок: сітка днів лишається, замість плашок — короткий рядок на всю висоту їхнього місця */
.tl-nostage { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; align-items: center; height: 100%;
  padding: 5px 10px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; color: var(--muted); }
.tl-nostage .ic { width: 14px; height: 14px; }
.tl-nostage b { display: block; font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.tl-nostage small { display: block; font-size: 10.5px; line-height: 1.25; }

/* місяць: сітка з понеділка, день фарбує поїздка, яка його тримає.
   Клітинка низька (84px) — місяць із шести тижнів має вмощатись на екрані ноутбука. */
.tl-month { display: flex; flex-direction: column; gap: 5px; }
.tl-wdrow, .tl-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.tl-wd { padding-bottom: 1px; font-size: 10.5px; font-weight: 800; text-align: center; color: var(--muted); }
.tl-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 84px; padding: 5px 6px;
  border-radius: 11px; background: var(--surface-2); }
.tl-cell.tl-blank { background: none; }
/* колір поїздки: --pd світліший, перший і останній день --pc щільніший; дім завжди під поїздкою */
.tl-cell.has-trip { background: var(--pd); }
.tl-cell.is-edge { background: var(--pc); }
.tl-cell.is-today { box-shadow: inset 0 0 0 2px var(--navy); }
.tl-dnum { font-size: 11.5px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.tl-cell.is-today .tl-dnum { color: var(--blue); }

/* компактна плашка в клітинці дня — у перший день поїздки в цьому місяці */
.tl-cplate { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 5px; align-items: center;
  min-width: 0; padding: 2px 6px 2px 2px; border: 1.5px solid transparent; border-radius: 999px;
  background: var(--pc); color: var(--navy); }
.tl-cplate:hover { filter: brightness(.96); }
.tl-cplate-ph { position: relative; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px;
  background: #fff; color: var(--pa); overflow: hidden; }
.tl-cplate-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl-cplate-ph .ic { width: 12px; height: 12px; }
.tl-cplate b { font-size: 11.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-cplate-go { font-size: 13px; font-weight: 800; color: var(--pa); }
.tl-cplate.s-planning { border-color: var(--pa); border-style: dashed; }
.tl-cplate.s-idea { background: var(--pd); }

.tl-ev { display: flex; align-items: baseline; gap: 4px; min-width: 0; font-size: 10.5px; font-weight: 600;
  line-height: 1.3; color: var(--ink-2); }
.tl-ev:hover { color: var(--navy); }
/* подія понад три в клітинці: ховаємо й підписуємо «ще N» (клас ставить trimCells у mount) */
.tl-ev.is-cut { display: none; }
.tl-evmore { font-size: 10px; font-weight: 800; line-height: 1.3; color: var(--muted); }
.tl-ev-ic { flex: none; display: inline-flex; align-self: center; color: var(--tl-c, var(--blue)); }
.tl-ev-ic .ic { width: 12px; height: 12px; }
.tl-ev-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ev-t b, .tl-ev .tl-tz { font-weight: 700; color: var(--muted); }

/* 12 місяців: 4×3 мінімісяці з плашками поїздок угорі */
.tl-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tl-m { min-width: 0; padding: 12px 12px 13px; border-radius: 16px; background: var(--surface-2); }
.tl-m-h { display: flex; align-items: baseline; gap: 7px; margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--navy); }
.tl-m-h a:hover { color: var(--blue); }
.tl-m-h span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tl-mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.tl-wdm { font-size: 9.5px; font-weight: 800; text-align: center; color: var(--muted); }
.tl-c { position: relative; display: grid; place-items: center; height: 24px; padding-bottom: 5px; border-radius: 7px;
  background: rgba(255, 255, 255, .55); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.tl-c.tl-cblank { background: none; }
.tl-c.has-trip { background: var(--pd); color: var(--navy); }
.tl-c.is-edge { background: var(--pc); }
.tl-c.is-today { box-shadow: inset 0 0 0 2px var(--navy); color: var(--navy); }
.tl-dots { position: absolute; right: 0; bottom: 2px; left: 0; display: flex; justify-content: center; gap: 2px; }
.tl-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--tl-c, var(--blue)); }
/* телефон, «Місяць»: крапки замість подій у клітинці й список місяця під сіткою */
.tl-cdots, .tl-mob { display: none; }

/* бічна колонка: найближчі події й поїздки по місяцях */
.tl-side-c .card-h { margin-bottom: 12px; }
.tl-side-c .list { display: flex; flex-direction: column; gap: 7px; }
/* найближчі події: у розмітці запас рядків, а видно лише перші SIDE_EVENTS (клас ставить trimSide у mount) */
.tl-sevs > li.is-cut { display: none; }
.tl-sev { grid-template-columns: 40px 34px minmax(0, 1fr); gap: 10px; padding: 9px 11px; }
.tl-sev .tile b { font-size: 19px; }
.tl-sev .ev-ic { width: 34px; height: 34px; border-radius: 10px; }
.tl-sev .ev-t { font-size: 13px; }
.tl-sev .ev-m { font-size: 11.5px; }
.tl-st { display: grid; grid-template-columns: 30px 34px auto minmax(0, 1fr) auto; gap: 8px; align-items: center;
  min-width: 0; padding: 7px 10px 7px 8px; border-radius: 13px; background: var(--pd); color: var(--navy); }
.tl-st:hover { filter: brightness(.97); }
.tl-st-m { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--pa); }
.tl-st-ph { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: #fff; color: var(--pa); overflow: hidden; }
.tl-st-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl-st-ph .ic { width: 17px; height: 17px; }
.tl-st-f { width: 18px; height: 13px; border-radius: 3px; }
.tl-st-b { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tl-st-b b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-st-b span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-st-go { font-size: 15px; font-weight: 800; color: var(--pa); }

@media (max-width: 1100px) {
  .tl-body > .span-8, .tl-body > .span-4 { grid-column: span 12; }
  .tl-cal-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-new { margin-left: 0; }
}
@media (max-width: 760px) {
  .tl-toolbar { gap: 10px; }
  .tl-tabs { flex: 1 1 100%; }
  .tl-cal-side { gap: 14px; }
  .tl-row { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; }
  .tl-ph { width: 44px; height: 38px; }
  .tl-rside { display: flex; grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; }
  .tl-kids { margin-left: 10px; padding-left: 10px; }
  .tl-row-kid { grid-template-columns: 32px minmax(0, 1fr); }
  .tl-row-kid .tl-ph { width: 32px; height: 28px; }
  .tl-hero .hero-in { min-height: 0; }
  .tl-tools .btn { flex: 1 1 auto; justify-content: center; }
  .tl-tools .tl-cmp-add { display: flex; flex: 1 1 auto; }
  .tl-tools .tl-cmp-add .btn { width: 100%; }
  .tl-permit { grid-template-columns: minmax(0, 1fr); }
  .tl-permit > .tl-count, .tl-permit.has-count > .tl-count { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 5px; } /* лічильник — рядком під текстом, по ширині тексту */
  .tl-count { align-self: flex-start; flex-direction: row; align-items: baseline; gap: 5px; }
  .tl-year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tl-m { padding: 10px 10px 11px; border-radius: 14px; }
  .tl-wdrow, .tl-week { gap: 3px; }
  .tl-cell { gap: 2px; min-height: 54px; padding: 4px; border-radius: 9px; }
  /* у клітинці ~48px назви не прочитати: лише число й кольорові крапки, самі події — у списку під сіткою */
  .tl-cell .tl-ev, .tl-cell .tl-cplate, .tl-cell .tl-evmore { display: none; }
  .tl-cdots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
  .tl-cdots .tl-dot { width: 6px; height: 6px; }
  .tl-mob { display: grid; gap: 14px; align-content: start; }
  .tl-arrow { width: 40px; height: 40px; }
  .tl-today { padding: 11px 13px; }
  .tl-wdm { font-size: 10.5px; }
  .tl-chip { padding: 9px 12px; }
  /* «← Подорожі» поверх фото — на світлій плашці, інакше губиться на строкатому знімку */
  /* «← Подорожі» — плашкою у куті фото, а не рядком над назвою: назва стоїть там само, де на «Сьогодні» */
  .tl-hero .display { margin-top: 0; } /* назва з тієї ж висоти, що на «Сьогодні» */
  /* на фото: «Усі подорожі» — плашкою зліва, сусідні — двома кружечками справа, без назв */
  .tl-hero .tl-navrow { position: absolute; top: 14px; left: 16px; right: 16px; margin: 0; }
  .tl-hero .tl-crumb { height: 40px; padding: 0 14px 0 12px; border-radius: 999px; background: #fff; box-shadow: var(--pill-shadow); } /* заввишки як кружки ← → поруч */
  .tl-hero .tl-crumb .ic { width: 18px; height: 18px; }
  .tl-pn { gap: 8px; }
  .tl-hero .tl-pn-a { justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: #fff; }
  .tl-pn-a span { display: none; }
  .tl-pn-a .ic { width: 18px; height: 18px; }
  .tl-dnum { font-size: 11px; }
  .tl-cplate { grid-template-columns: 18px minmax(0, 1fr); gap: 4px; padding: 1px 5px 1px 1px; }
  .tl-cplate-ph { width: 18px; height: 18px; border-radius: 6px; }
  .tl-cplate b { font-size: 10.5px; }
  .tl-cplate-go { display: none; }
  .tl-ev { font-size: 10px; }
  .tl-ev-ic .ic { width: 11px; height: 11px; }
  .tl-st { grid-template-columns: 26px 32px auto minmax(0, 1fr) auto; gap: 7px; }
  .tl-st-ph { width: 32px; height: 32px; }
  /* блоки складових — в одну колонку */
  .tl-blkrow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* без прокрутки всередині прокрутки: на телефоні список дороги й житла — на всю висоту */
  .tl-blkrow-rs .tl-blist { max-height: none; overflow: visible; }
  .tl-plan-x { max-height: 280px; }
  .tl-bi-in { gap: 3px 8px; }
  /* лічильник блока — праворуч у заголовку, а не окремим рядком під ним */
  .tl-sec .card-h .sub { order: 0; width: auto; }
  .tl-bi-map, .tl-bi-cal, .tl-plan-edit { font-size: 13.5px; }
  .tl-bi-map::after, .tl-bi-cal::after, .tl-plan-edit::after { content: ''; position: absolute; inset: -8px -6px; } /* ціль дотику більша за текст */
  .tl-plan-drag { width: 36px; height: 36px; margin: -4px -8px -4px 0; } /* під палець */
  .notes-body.tl-plan-txt { font-size: 14px; }
  .tl-cmp-form [data-row^="cmp_"] { width: 100%; }
  .tl-rm { width: 100vw; }
}
@media (max-width: 420px) {
  .tl-year { grid-template-columns: minmax(0, 1fr); }
  .tl-nav { margin-left: auto; }
  .tl-cal-t { font-size: 20px; }
}

/* ── погода на сторінці подорожі (timeline.js weatherBody): рядок — дата · значок · мін … макс · дощ % ── */
.tl-w-cap { margin: 4px 0 2px; font-size: 13px; font-weight: 800; color: var(--muted); }
.tl-w-cap span { font-weight: 600; }
.tl-w + .tl-w-cap { margin-top: 14px; }
.tl-w { margin: 0; }
.tl-w-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px 84px 62px; align-items: center; gap: 10px; /* сталі колонки — значки рівно */
  padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tl-w-row:first-child { border-top: 0; }
.tl-w-d { min-width: 0; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-w-ic { display: grid; place-items: center; }
.tl-w-ic .ic { width: 18px; height: 18px; }
.is-sun .tl-w-ic { color: var(--amber); }
.is-cloud .tl-w-ic { color: var(--muted); }
.is-rain .tl-w-ic { color: var(--blue); }
.tl-w-t { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tl-w-p { font-size: 12.5px; color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* «Речі» — рядок у картці «Складові» (TZ-rechi.md §6): веде на сам список */
.tl-pack { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.tl-pack > .ic { color: var(--blue); }
.tl-pack b { font-weight: 800; color: var(--navy); }
.tl-pack .more .ic { width: 15px; height: 15px; }
.tl-pack:hover { background: var(--blue-50); }

/* «Витрати»: «разом» — головне число блока, категорії — тихі рядки */
.tl-spend-card .card-h .sub { color: var(--navy); font-size: 15px; }
.tl-spend-who { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tl-spend { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.tl-spend li { display: flex; justify-content: space-between; gap: 12px; }
.tl-spend b { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── «Маршрут» змійкою (mountSnake у timeline.js): кружки ті самі, що на «Сьогодні» (.stop/.now-stop) ─────────── */
/* колонки й місце кожного кружка ставить mountSnake (--n, grid-row/column); бічний відступ = SNAKE_SIDE — під дугу й «N д.» */
.tl-snake { --cell: 124px; position: relative; display: grid; grid-template-columns: repeat(var(--n, 1), var(--cell)); justify-content: center;
  row-gap: 30px; padding: 24px 40px 8px; } /* зверху — місце під рік над першим рядком */
.tl-snake .stop::before { display: none; } /* пунктир стрічки — тут лінії малює SVG */
.sn-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sn-lines path { fill: none; stroke: #c9d5e5; stroke-width: 2; stroke-dasharray: 6 5; } /* як пунктир .stop::before у base.css */
.sn-lines path.is-solid { stroke-dasharray: none; }
.sn-year { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); padding: 0 6px; border-radius: 999px;
  background: var(--blue-50); font-size: 11px; font-weight: 800; line-height: 17px; color: var(--blue); }
.tl-snake .now-gap { left: 0; top: 0; } /* місце ставить mountSnake: середина лінії; між рядками — на вході зліва */
/* стовпчик (вузько): крапка й лінія ліворуч, кружок фото, текст, дні праворуч */
.tl-snake.is-col { grid-template-columns: minmax(0, 1fr); justify-content: stretch; row-gap: 18px; padding: 4px 0 8px; }
.tl-snake.is-col .stop { display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr;
  column-gap: 12px; align-items: start; justify-items: start; text-align: left; }
.tl-snake.is-col .stop-dot { grid-column: 1; grid-row: 1 / 4; align-self: center; justify-self: center; margin: 0; }
.tl-snake.is-col .stop-ph { grid-column: 2; grid-row: 1 / 4; width: 64px; height: 64px; }
.tl-snake.is-col .stop-ph .flag { width: 22px; height: 16px; }
.tl-snake.is-col .stop b { grid-column: 3; grid-row: 1; margin-top: 4px; }
.tl-snake.is-col .stop small { grid-column: 3; grid-row: 2; margin: 2px 0 6px; white-space: normal; }
.tl-snake.is-col .stop .chip { grid-column: 3 / -1; grid-row: 3; margin-top: 0; } /* і під днями: 4-та колонка в 3-му рядку вільна */
/* найвужчі телефони (320): «Заплановано» (103 px) не влазило — вужча колонка крапки й менше фото */
@media (max-width: 360px) {
  .tl-snake.is-col .stop { grid-template-columns: 30px 56px minmax(0, 1fr) auto; }
  .tl-snake.is-col .stop-ph { width: 56px; height: 56px; }
}
.tl-snake.is-col .stop-m { grid-column: 4; grid-row: 1; margin-top: 4px; }
@media (max-width: 760px) { .tl-snake { --cell: 108px; } }
/* стан оплати в картці: чип + стислий приглушений текст, переноситься на вузькому екрані */
.tl-bi-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.tl-bi-pay .chip { font-size: 11px; padding: 2px 9px; }
