/* Часть (б): стили экранов задач и списков. Классы — с приставкой t-. Цвета — только переменные из /shared/tokens.css.
   Телефон в первую очередь (390 px); с 900 px — средняя колонка между боковой колонкой и панелью задачи (~ 400–760 px). */

/* ───────── страница ───────── */
.t-page { padding-bottom: 24px; }
.t-wrap { max-width: 760px; }
.t-pad-y { padding: 10px 0; }
.t-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 6px; min-height: 60px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 6px 16px; background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.t-head .t-back { margin-left: -8px; }
.t-head-t { flex: 1; min-width: 0; }
.t-head h1 { display: flex; align-items: center; gap: 10px; font-size: 25px; letter-spacing: -.02em; min-width: 0; }
.t-head-ic { display: inline-flex; color: var(--brand); flex: none; }
.t-myday .t-head-ic { color: var(--accent); }
.t-head-sub { margin-top: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-head-act { display: flex; align-items: center; gap: 4px; flex: none; }
.t-greet { display: none; }
@media (min-width: 560px) { .t-greet { display: inline; } }
@media (min-width: 900px) {
  .t-head { padding: 24px 24px 10px 32px; }
  .t-head h1 { font-size: 30px; }
}

/* ───────── состояние синхронизации ───────── */
.t-sync { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; max-width: 46vw; padding: 0 10px; border-radius: 999px; border: 0;
  background: var(--surface-2); color: var(--muted); font: 600 12px/1 var(--font); }
.t-sync-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sync.off { background: var(--warn-soft); color: var(--warn); }
.t-sync.err { background: var(--danger-soft); color: var(--danger); }
.t-sync.busy .ic { animation: tb-spin 1s linear infinite; }
@media (max-width: 560px) {
  .t-sync.idle { width: 34px; padding: 0; justify-content: center; background: transparent; }
  .t-sync.idle .t-sync-t { display: none; }
  .t-sync { max-width: 40vw; }
  .t-head h1 { font-size: 23px; gap: 8px; }
  .t-head-ic .ic svg { width: 22px; height: 22px; }
}

/* ───────── поле быстрого ввода с подсветкой ───────── */
.t-qi { position: relative; flex: 1; min-width: 0; background: var(--surface); border-radius: 13px; }
.t-qi-mirror, .t-qi-input { display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: 13px;
  font: 400 16px/22px var(--font); letter-spacing: normal; word-spacing: normal; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; text-align: left;
  tab-size: 4; text-rendering: auto; font-kerning: normal; }
.t-qi-mirror { position: absolute; inset: 0; overflow: hidden; color: var(--ink); pointer-events: none; }
.t-qi-input { position: relative; resize: none; overflow: hidden; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--ink);
  border-color: var(--line-strong); transition: border-color var(--t), box-shadow var(--t); }
.t-qi-input::placeholder { color: var(--faint); -webkit-text-fill-color: var(--faint); }
.t-qi-input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.t-qi-input::selection { -webkit-text-fill-color: transparent; background: color-mix(in oklab, var(--brand) 30%, transparent); }
.t-qi.big .t-qi-mirror, .t-qi.big .t-qi-input { font-size: 20px; line-height: 28px; padding: 14px 16px; min-height: 58px; }
.t-qi mark { color: var(--k, var(--brand)); background: color-mix(in oklab, var(--k, var(--brand)) 16%, transparent); border-radius: 4px; font-weight: inherit; }
.k-date, .k-time { --k: var(--c-blue); }
.k-repeat { --k: var(--c-purple); }
.k-list { --k: var(--c-teal); }
.k-tag { --k: var(--c-green); }
.k-priority { --k: var(--p3); }
.k-assignee { --k: var(--c-orange); }
.k-duration { --k: var(--c-sky); }
.k-remind { --k: var(--c-amber); }
.t-qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.t-qchip { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; max-width: 100%; padding: 0 8px 0 9px; border-radius: 999px; border: 0;
  background: color-mix(in oklab, var(--k, var(--brand)) 14%, var(--surface)); color: var(--k, var(--brand)); font: 650 13px/1 var(--font); }
.t-qchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-qchip .ic:last-child { opacity: .7; }
.t-qchip:hover .ic:last-child { opacity: 1; }
.t-qchip.static { padding-right: 10px; }
.t-hint { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.t-hint b { color: var(--ink-2); font-weight: 650; }

/* поле «Добавить задачу» в списке */
.t-addbar { margin: 4px 0 14px; padding: 2px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: box-shadow var(--t), border-color var(--t); }
.t-addbar.on { border-color: var(--brand); box-shadow: var(--ring); }
.t-addbar-row { display: flex; align-items: center; gap: 2px; cursor: text; }
.t-addbar-plus { display: grid; place-items: center; width: 36px; flex: none; color: var(--brand); padding-left: 6px; }
.t-addbar .t-qi-input, .t-addbar .t-qi-input:focus { border-color: transparent; box-shadow: none; padding-left: 6px; }
.t-addbar .t-qi-mirror { padding-left: 6px; }
.t-addbar-go { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 6px; border-radius: 11px; border: 0; background: var(--primary); color: var(--on-primary); flex: none; }
.t-addbar .t-qchips { margin: 0 10px 8px 44px; }

/* ───────── строки задач ───────── */
.t-rows { display: flex; flex-direction: column; }
.t-item { position: relative; transition: transform .18s var(--ease); }
.t-rows.is-dragging .t-item:not(.dragging) { transition: transform .18s var(--ease); }
.t-item.dragging { z-index: 5; transition: none; }
.t-item.dragging .t-row { background: var(--surface); box-shadow: var(--sh-3); border-radius: 14px; }
.t-row { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 13px 8px 11px 6px;
  border-bottom: 1px solid var(--line); border-radius: 0; outline: none; transition: background var(--t-fast), opacity .3s var(--ease); }
.t-row:hover { background: color-mix(in oklab, var(--surface-2) 55%, transparent); }
.t-row:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); border-radius: 12px; }
.t-row.active { background: var(--primary-soft); border-radius: 12px; }
.t-row .tcheck { margin-top: 1px; }
.t-body { flex: 1; min-width: 0; cursor: pointer; }
.t-title { font-size: 15.5px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.t-row.done .t-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.t-m { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.t-m .ic { opacity: .85; }
.t-m.over { color: var(--danger); font-weight: 650; }
.t-m.today { color: var(--info); font-weight: 600; }
.t-m-list { color: var(--ink-2); }
.t-m-wait { color: var(--warn); }
.t-tag { --tc: var(--c-gray); display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap;
  color: var(--tc); background: color-mix(in oklab, var(--tc) 13%, transparent); }
.t-tag.big { font-size: 13px; padding: 3px 4px 3px 9px; }
.t-tag button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: inherit; padding: 0; }
.t-tag button:hover { background: color-mix(in oklab, var(--tc) 22%, transparent); }
.t-snip { display: flex; gap: 5px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-side { display: flex; align-items: center; gap: 6px; flex: none; min-height: 24px; }
.t-flag { color: var(--p3); display: inline-flex; }
.t-subtoggle { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); transition: transform var(--t) var(--ease), background var(--t); }
.t-subtoggle:hover { background: var(--surface-2); }
.t-subtoggle.on { transform: rotate(180deg); }
.t-subs { padding-left: 34px; }
.t-row.sub { min-height: 44px; padding-top: 10px; padding-bottom: 8px; }
.t-row.sub .t-title { font-size: 14.5px; }
.t-grip { display: grid; place-items: center; width: 22px; height: 30px; margin: -3px -8px 0 -4px; border: 0; background: transparent; color: var(--faint);
  cursor: grab; touch-action: none; border-radius: 6px; flex: none; opacity: 0; transition: opacity var(--t); }
.t-row:hover .t-grip, .t-row:focus-within .t-grip, .t-item.dragging .t-grip { opacity: 1; }
.t-grip:active { cursor: grabbing; }
@media (hover: none) { .t-grip { opacity: .55; } }
.t-row.shadow { opacity: .62; }
.t-row.shadow .t-title { font-style: italic; }
.t-shadow-ic { display: grid; place-items: center; width: 22px; height: 22px; flex: none; color: var(--faint); margin-top: 1px; }
.t-mini { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--faint); flex: none; }
.t-mini:hover { background: var(--accent-soft); color: var(--accent-ink); }
.t-mini.text { width: auto; padding: 0 10px; font: 650 13px var(--font); color: var(--primary); }
.t-mini.text:hover { background: var(--primary-soft); color: var(--primary-soft-ink); }
.t-plus { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.t-plus:hover { background: var(--accent); color: #2a1a00; }

/* выполнение: галочка «прыгает», строка зачёркивается и уходит */
.t-row.leaving { animation: t-leave .9s var(--ease) forwards; pointer-events: none; }
.t-row.leaving .t-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.t-row.leaving .tcheck { animation: t-pop .42s var(--bm-back, cubic-bezier(.34,1.56,.64,1)); }
.t-row.leaving::after { content: ''; position: absolute; left: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  border: 2px solid var(--ok); animation: t-ring .6s var(--ease) forwards; pointer-events: none; }
.t-row.bumped { animation: t-bump .9s var(--ease); }
.t-row.bumped .tcheck { animation: t-pop .42s var(--bm-back, cubic-bezier(.34,1.56,.64,1)); }
@keyframes t-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes t-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
@keyframes t-leave { 0%, 55% { opacity: 1; transform: none; max-height: 120px; } 100% { opacity: 0; transform: translateX(24px); max-height: 0; padding-top: 0; padding-bottom: 0; } }
@keyframes t-bump { 0% { background: transparent; } 25% { background: var(--ok-soft); } 100% { background: transparent; } }

/* разделы и сворачивание */
.t-sec { margin-top: 14px; }
.t-sech { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.t-sech .muted { font-weight: 600; }
.t-sech-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.t-fold { margin-top: 14px; }
.t-fold-h { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--surface-2);
  color: var(--ink-2); font: 650 14px var(--font); }
.t-fold-h:hover { background: var(--surface-3); }
.t-fold-n { color: var(--muted); }
.t-fold-h .chev { display: inline-flex; transition: transform var(--t) var(--ease); transform: rotate(-90deg); }
.t-fold-h.on .chev { transform: none; }
.t-fold > .t-rows { margin-top: 6px; }
.t-allclear { display: flex; gap: 8px; align-items: center; padding: 18px 6px; color: var(--ok); font-weight: 650; }
.t-more-link { display: inline-block; margin: 10px 6px; font-weight: 650; }
.t-sortnote { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 6px; font-size: 13px; color: var(--muted); }
.t-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 8px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.t-banner > .ic { color: var(--accent-ink); }
.t-tip { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 10px 0; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 14px; }

/* скелетоны */
.t-sk-row { padding: 15px 6px; border-bottom: 1px solid var(--line); align-items: flex-start; }

/* пусто */
.t-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 16px 28px; animation: bm-fade-up .42s var(--ease) both; }
.t-empty h2 { font-size: 20px; }
.t-empty p { max-width: 380px; }
.t-empty .btn { margin-top: 8px; }
.t-art { width: 112px; height: 112px; margin-bottom: 4px; }
.t-art-bg { fill: var(--accent-soft); }
.t-art-rays rect { fill: var(--accent); opacity: .75; }
.t-art-rays { transform-origin: 60px 60px; animation: t-spin 24s linear infinite; }
.t-art-sun { fill: var(--accent); }
.t-art-ok { stroke: #fff; }
.t-art-card { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.t-art-line { stroke: var(--line-strong); }
.t-art-dot { fill: var(--accent); }
.t-art:has(.t-art-card) .t-art-bg { fill: var(--primary-soft); }
@keyframes t-spin { to { transform: rotate(360deg); } }

/* ───────── «Мой день» ───────── */
.t-myday.with-sugg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.t-suggcol { position: sticky; top: 0; max-height: 100dvh; overflow-y: auto; padding: 26px 20px 40px; border-left: 1px solid var(--line);
  background: color-mix(in oklab, var(--accent-soft) 40%, var(--bg)); scrollbar-width: thin; }
.t-suggbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); font: 650 14px var(--font); }
.t-suggbtn:hover { background: var(--surface-2); }
.t-suggbtn.has .ic { color: var(--accent-ink); }
.t-suggbtn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #2a1a00; font-size: 12px; display: inline-grid; place-items: center; }
.d-only-i { display: none; }
@media (min-width: 900px) { .d-only-i { display: inline; } }
.t-sugg-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 6px; }
.t-sugg-title .ic { color: var(--accent-ink); }
.t-sugg-g h3 { display: flex; align-items: center; gap: 6px; margin: 16px 0 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.t-sugg .t-row { padding-right: 2px; }
.t-sugg-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px 8px; color: var(--accent-ink); }

/* ───────── «Запланировано» ───────── */
.t-day { margin-top: 8px; }
.t-day-h { display: flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 2px solid var(--line); }
.t-day-h h2 { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; }
.t-day.empty .t-day-h { border-bottom-width: 1px; }
.t-day.empty .t-day-h h2 { font-weight: 600; color: var(--muted); font-size: 14px; }
.t-day-add { width: 34px; height: 34px; color: var(--muted); }
.t-today-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ───────── меню ───────── */
.t-menu-anchor { display: inline-flex; position: relative; }
.t-menu-btn { border: 0; background: none; padding: 0; color: inherit; }
.t-pop { position: fixed; z-index: 300; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); max-height: min(70vh, 520px); overflow-y: auto; padding: 6px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: tb-pop .16s var(--ease); }
.t-pop-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink);
  text-align: left; font: 500 15px var(--font); }
.t-pop-i:hover, .t-pop-i:focus-visible { background: var(--surface-2); box-shadow: none; }
.t-pop-i:disabled { opacity: .45; }
.t-pop-i.danger { color: var(--danger); }
.t-pop-i .ic { color: var(--muted); }
.t-pop-i.danger .ic { color: inherit; }
.t-pop-ic { width: 18px; flex: none; }
.t-pop-hint { font-size: 12px; color: var(--muted); }
.t-pop-sep { height: 1px; background: var(--line); margin: 5px 6px; }
.t-pop-h { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.t-chipmenu .chip { pointer-events: none; }

/* ───────── листы выбора ───────── */
.t-quickdates { display: flex; flex-direction: column; gap: 2px; }
.t-qd { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; font: 500 15px var(--font); width: 100%; }
.t-qd:hover { background: var(--surface-2); }
.t-qd.on { background: var(--primary-soft); color: var(--primary-soft-ink); font-weight: 650; }
.t-qd.danger { color: var(--danger); }
.t-qd .ic { color: var(--muted); }
.t-qd.on .ic { color: inherit; }
.t-cal { border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.t-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 4px; }
.t-cal-h b { font-size: 15px; }
.t-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.t-cal-wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.t-cal-d { aspect-ratio: 1; min-height: 38px; max-height: 46px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 600 14px var(--font); display: grid; place-items: center; }
.t-cal-d:hover { background: var(--surface-2); }
.t-cal-d.out { color: var(--faint); }
.t-cal-d.we:not(.out) { color: var(--ink-2); }
.t-cal-d.today { box-shadow: inset 0 0 0 2px var(--accent); }
.t-cal-d.on { background: var(--primary); color: var(--on-primary); }
.t-cal-d:disabled { opacity: .35; cursor: default; }
.t-time { display: flex; flex-direction: column; gap: 6px; }
.t-time-in { width: 130px; flex: none; }
.t-num { width: 86px; flex: none; }
.t-wdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; }
.t-wday { min-height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font: 650 13px var(--font); color: var(--ink-2); }
.t-wday.on { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.t-preview { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-soft-ink); font-weight: 600; font-size: 14px; }
.t-listprev { display: flex; align-items: flex-end; gap: 12px; }
.t-listprev-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.t-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.t-color { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cc); box-shadow: inset 0 0 0 2px color-mix(in oklab, #000 10%, transparent); position: relative; }
.t-color.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--cc); }
.t-colors.big .t-color { width: 44px; height: 44px; }
.t-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; margin-top: 6px; }
.t-iconpick { height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; }
.t-iconpick.on { border-color: var(--cc, var(--brand)); color: var(--cc, var(--brand)); background: color-mix(in oklab, var(--cc, var(--brand)) 12%, var(--surface)); }
.t-icons.small { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.t-icons.small .t-iconpick { height: 38px; }

/* ───────── панель задачи ───────── */
.t-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--surface); }
.t-panel-top { display: flex; align-items: center; gap: 4px; padding: calc(6px + env(safe-area-inset-top)) 8px 4px 8px; border-bottom: 1px solid var(--line); flex: none; }
.t-listbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; max-width: 70%; padding: 0 10px; border: 0; border-radius: 11px; background: var(--surface-2);
  color: var(--ink-2); font: 650 14px var(--font); }
.t-listbtn:hover:not(:disabled) { background: var(--surface-3); }
.t-listbtn:disabled { background: transparent; cursor: default; }
.t-listbtn.big { min-height: 42px; margin-top: 12px; }
.t-panel-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.t-panel .pad { padding-inline: 18px; }
.t-crumb { display: flex; align-items: center; gap: 6px; margin: 10px 18px 0; padding: 0; border: 0; background: none; color: var(--primary); font: 600 13px var(--font); text-align: left; }
.t-titlerow { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 6px; }
.t-titlerow .tcheck { margin-top: 3px; }
.t-titlein { flex: 1; min-width: 0; resize: none; overflow: hidden; border: 0; padding: 2px 4px; margin: 0 -4px; border-radius: 8px; background: transparent;
  font: 700 21px/1.3 var(--font); letter-spacing: -.01em; color: var(--ink); }
.t-titlein:focus { outline: none; background: var(--surface-2); }
.t-titlerow.done .t-titlein { color: var(--muted); text-decoration: line-through; }
.t-props { display: flex; flex-direction: column; margin: 6px 10px; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.t-prop { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 2px; border-radius: 12px; color: var(--muted); }
.t-prop.on { color: var(--ink); }
.t-prop.accent { color: var(--accent-ink); }
.t-prop.accent .ic { color: var(--accent); }
.t-prop.danger, .t-prop.danger .t-prop-b .ic { color: var(--danger); }
.t-prop-b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 11px; background: none; color: inherit; text-align: left; font: 550 15px var(--font); }
.t-prop-b:hover:not(:disabled) { background: var(--surface-2); }
.t-prop-b:disabled { cursor: default; }
.t-prop-x { width: 36px; height: 36px; color: var(--muted); }
.t-prop-ic { display: grid; place-items: center; width: 35px; flex: none; padding-left: 8px; }
.t-rem-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 4px 8px 4px; font-size: 14px; }
.t-remchip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.t-remchip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.t-remchip button:hover { background: var(--surface-3); color: var(--ink); }
.t-prio-seg { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px 6px 6px 4px; }
.t-prio-i { min-width: 0; min-height: 36px; padding: 0 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 13px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-prio-i.on { color: #fff; border-color: transparent; background: var(--muted); }
.t-prio-i.p1.on { background: var(--p1); } .t-prio-i.p2.on { background: var(--p2); color: #2a1a00; } .t-prio-i.p3.on { background: var(--p3); }
.t-tags { align-items: flex-start; }
.t-tags .t-prop-ic { padding-top: 13px; }
.t-tags-in { position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 9px 4px; }
.t-tag-input { flex: 1; min-width: 110px; min-height: 30px; border: 0; background: none; color: var(--ink); font: 500 14px var(--font); padding: 0 4px; }
.t-tag-input:focus { outline: none; }
.t-tag-sugg { position: absolute; left: 0; top: 100%; z-index: 10; display: flex; flex-direction: column; min-width: 160px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.t-tag-sugg button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--ink); font: 550 14px var(--font); }
.t-tag-sugg button:hover { background: var(--surface-2); }
.t-assign { min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: inherit; font: 550 15px var(--font); padding: 0 8px; }
.t-assign:hover:not(:disabled) { background: var(--surface-2); }
.t-note { margin-top: 10px; }
.t-notein { width: 100%; min-height: 64px; resize: none; overflow: hidden; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
  font: 400 15px/1.5 var(--font); color: var(--ink); }
.t-notein:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }
.t-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.t-links a { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-height: 32px; min-width: 0; }
.t-subsec, .t-attsec { margin-top: 18px; }
.t-subsec .t-sech, .t-attsec .t-sech { margin-top: 0; }
.t-subprog { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: -2px 0 6px; }
.t-subprog i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .4s var(--ease); }
.t-sublist { display: flex; flex-direction: column; }
.t-subrow { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 0 0 2px; border-bottom: 1px solid var(--line); transition: transform .18s var(--ease); background: var(--surface); }
.t-subrow.dragging { z-index: 5; box-shadow: var(--sh-2); border-radius: 10px; transition: none; }
.t-subrow .t-grip { opacity: .5; margin: 0 -6px 0 -6px; }
.t-subrow:hover .t-grip { opacity: 1; }
.t-subin { flex: 1; min-width: 0; min-height: 38px; border: 0; background: none; font: 400 15px var(--font); color: var(--ink); padding: 0 4px; border-radius: 8px; }
.t-subin:focus { outline: none; background: var(--surface-2); }
.t-subrow.done .t-subin { color: var(--muted); text-decoration: line-through; }
.t-subadd { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-left: 2px; color: var(--brand); }
.t-atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.t-att { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.t-att-open { display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--ink); text-decoration: none !important; min-height: 56px; }
.t-att.img .t-att-open { flex-direction: column; align-items: stretch; padding: 0; gap: 0; }
.t-att.img img { width: 100%; height: 100px; object-fit: cover; display: block; }
.t-att.img .t-att-name { padding: 6px 10px 8px; }
.t-att-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--muted); flex: none; }
.t-att-name { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; }
.t-att-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.t-att-del { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 70%, transparent); color: var(--bg); opacity: 0; transition: opacity var(--t); }
.t-att:hover .t-att-del, .t-att-del:focus-visible { opacity: 1; }
@media (hover: none) { .t-att-del { opacity: 1; } }
.t-more { margin-top: 6px; }
.t-foot { margin: 22px 18px 0; font-size: 12px; color: var(--faint); }

/* ───────── быстрое добавление (лист) ───────── */
.t-quicksheet .sheet-body { gap: 10px; }
@media (min-width: 700px) { .sheet.t-quicksheet { max-width: 600px; } }

/* ───────── списки ───────── */
.t-searchlink { display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 4px 0 12px; padding: 0 14px; border-radius: 13px; background: var(--surface-2); color: var(--muted); text-decoration: none !important; }
.t-smartgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.t-smart { --sc: var(--brand); display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none !important; min-width: 0; }
.t-smart b { font-size: 13px; color: var(--muted); }
.t-smart-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; flex: none; color: var(--sc); background: color-mix(in oklab, var(--sc) 14%, transparent); }
.t-lh { display: flex; align-items: center; gap: 4px; margin: 22px 0 6px; }
.t-lh h2 { flex: 1; font-size: 17px; }
.t-lrows { display: flex; flex-direction: column; }
.t-lrows.in { padding-left: 18px; }
.t-lrow { display: flex; align-items: center; gap: 4px; min-height: 52px; border-bottom: 1px solid var(--line); background: var(--bg); transition: transform .18s var(--ease); }
.t-lrow.dragging, .t-folder.dragging { z-index: 5; box-shadow: var(--sh-3); border-radius: 12px; background: var(--surface); transition: none; }
.t-lrow .t-grip, .t-folder-h .t-grip { opacity: .45; margin: 0; }
.t-lrow:hover .t-grip, .t-folder-h:hover .t-grip { opacity: 1; }
.t-grip-gap { width: 22px; flex: none; }
.t-lrow-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 6px; color: var(--ink); text-decoration: none !important; font-size: 15.5px; font-weight: 550; border-radius: 10px; }
.t-lrow-a:hover { background: var(--surface-2); }
.t-cnt { min-width: 22px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-cnt.over { color: var(--danger); font-weight: 700; }
.t-avas { display: inline-flex; }
.t-avas .ava { margin-left: -6px; box-shadow: 0 0 0 2px var(--bg); }
.t-folder { position: relative; background: var(--bg); transition: transform .18s var(--ease); }
.t-folder-h { display: flex; align-items: center; gap: 4px; min-height: 50px; border-bottom: 1px solid var(--line); }
.t-folder-b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 6px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 700 15.5px var(--font); text-align: left; }
.t-folder-b:hover { background: var(--surface-2); }
.t-folder-b .chev { display: inline-flex; color: var(--faint); transition: transform var(--t) var(--ease); }
.t-folder-b .chev.closed { transform: rotate(-90deg); }
.t-folder-empty { padding: 10px 0 12px 46px; font-size: 13px; color: var(--muted); }

/* ───────── свой умный список ───────── */
.t-form { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; padding-bottom: 30px; }
.t-frow { display: flex; flex-direction: column; gap: 8px; }
.t-fset { border: 0; padding: 0; margin: 0; min-width: 0; }
.t-fset legend { font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.t-fset .seg { max-width: 100%; }
.t-fpreview { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-soft-ink); }

/* ───────── поиск ───────── */
.t-search-in { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }
.t-search-in:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.t-search-in .input { border: 0; box-shadow: none !important; padding-left: 4px; background: transparent; }
.t-search-in.small { margin: 4px 0 10px; }
.t-search-chips { margin: 10px 0 6px; }
.t-recent { margin-top: 8px; }
.t-results { margin-top: 8px; }

/* ───────── /add и окно /quick ───────── */
.t-addpage { min-height: 100dvh; background: var(--bg); }
.t-addpage-h { display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px 8px; }
.t-addpage-h h1 { font-size: 19px; }
.t-hints { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.t-hints b { color: var(--primary); font-weight: 650; }
.t-quickwin-root, .t-quickwin-root body { background: var(--surface); }
.t-quickwin { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 16px; background: var(--surface); }
.t-quickwin-row { display: flex; align-items: center; gap: 10px; }
.t-quickwin-mark { color: var(--brand); display: inline-flex; flex: none; }
.t-quickwin .t-qi-input { border-color: var(--line); }
.t-quickwin-foot { display: flex; align-items: center; gap: 8px; min-height: 30px; padding-left: 32px; flex-wrap: wrap; }
.t-quickwin-foot .t-qchips { margin: 0; }
.t-quickwin-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  .t-row.leaving { animation-duration: .01ms; }
  .t-art-rays { animation: none; }
}

/* поле поиска: свой крестик вместо встроенного; кнопки с подписью в шапке на телефоне — только значок */
.t-search-in input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
@media (max-width: 560px) {
  .t-hide-txt { padding: 0 9px; }
  .t-hide-txt > span:last-child:not(.ic) { display: none; }
}
