/* Пункты левого меню при наведении мышью (просьба владельца 02.11.2026):
   пункт плавно приподнимается, получает подложку карточки и мягкую тень,
   значок чуть подпрыгивает и берёт цвет акцента. Нажатие — короткое
   «вдавливание». Только для мыши: на пальце наведения нет. Пока пункты
   переставляют (web/nav-order.js), подъём выключен, иначе соседи под
   курсором прыгали бы. */
@media (hover: hover) and (pointer: fine) {
  #tabbar .tab:not(.nav-lifted){
    transition: transform .24s cubic-bezier(.2,.8,.3,1), box-shadow .24s ease,
                background-color .18s ease, color .18s ease;
  }
  #tabbar .tab .ic{ transition: transform .32s cubic-bezier(.3,1.6,.5,1) }
  html:not(.ld-dragging) #tabbar .tab:not(.nav-lifted):hover{
    transform: translateY(-2px);
    background: var(--card); color: var(--fg);
    box-shadow: 0 8px 18px -10px rgba(0,0,0,.28), 0 0 0 1px var(--stroke);
  }
  html:not(.ld-dragging) #tabbar .tab:not(.nav-lifted):hover .ic{
    transform: translateY(-1px) scale(1.1); color: var(--accent) !important;
  }
  /* Открытый раздел остаётся залитым акцентом — только приподнимается. */
  html:not(.ld-dragging) #tabbar .tab[aria-current="page"]:not(.nav-lifted):hover{
    background: var(--accent); color: var(--on-accent);
    box-shadow: var(--glow), 0 8px 18px -10px rgba(0,0,0,.3);
  }
  html:not(.ld-dragging) #tabbar .tab[aria-current="page"]:hover .ic{ color: var(--on-accent) !important }
  html:not(.ld-dragging) #tabbar .tab:not(.nav-lifted):active{
    transform: translateY(0) scale(.98); transition-duration: .08s;
  }
  html.ld-dragging #tabbar .tab:not(.ld-shift){ transition: none }
}
@media (prefers-reduced-motion: reduce) {
  #tabbar .tab, #tabbar .tab .ic{ transition: none !important }
  #tabbar .tab:hover, #tabbar .tab:hover .ic{ transform: none !important }
}

/* «Звуки нажатий» в «Оформлении» — такой же карточкой, как строка темы над ней. */
.vd-sec .switchrow{
  background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 12px 14px;
}

/* ---- Крестик в строке поиска (заметки, цели) ----
   Был символ ✕ на подложке цвета фона — почти не виден. Теперь рисованный
   крестик в заметном кружке, при наведении — цвет акцента. */
.nsearch .nclear{
  width: 24px; height: 24px; padding: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--fg) 13%, transparent); color: var(--fg-2);
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.nsearch .nclear .nav-ic, .nsearch .nclear svg{ width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.6 }
.nsearch .nclear:hover{ background: var(--accent); color: var(--on-accent) }
.nsearch .nclear:active{ transform: scale(.9) }
.nsearch .nclear[hidden]{ display: none }

/* ---- «Словарь Syn» — карточкой настроек, с воздухом от соседей ---- */
.setcard + .card, .setcard + .setcard, .card + .setcard{ margin-top: var(--gap, 14px) }
.pb-card{ padding: 13px 14px }
.pb-card .sw-text{ margin-bottom: 6px }
.pb-card .hint{ margin: 6px 0 2px }

/* ---- Плавность (web/motion.js) ---- */
/* Новый раздел выезжает снизу и проявляется. Двигаем блоки экрана, а не
   сам #app: сдвиг родителя утащил бы за собой строку создания внизу (она
   position: fixed и при transform у родителя прыгает). */
#app.page-in > :not(.composer){ animation: page-in .46s cubic-bezier(.16,.84,.3,1) both }
#app.page-in > :nth-child(2){ animation-delay: .04s }
#app.page-in > :nth-child(3){ animation-delay: .08s }
#app.page-in > :nth-child(n+4){ animation-delay: .12s }
@keyframes page-in{ from{ opacity: 0; transform: translateY(26px) } to{ opacity: 1; transform: none } }

/* Окно: затемнение проявляется, окно выезжает. */
.modal.on{ animation: modal-dim .22s ease both }
.modal-in{ animation: modal-up .42s cubic-bezier(.16,.84,.3,1) both }
@keyframes modal-dim{ from{ background-color: rgba(10,11,13,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0) } }
@keyframes modal-up{ from{ opacity: 0; transform: translateY(44px) scale(.95) } to{ opacity: 1; transform: none } }
/* Закрытие: копия окна уплывает и тает, настоящее уже убрано. */
.modal.modal-ghost{ display: flex; pointer-events: none; z-index: 69; animation: modal-dim-out .26s ease both }
.modal.modal-ghost .modal-in{ animation: modal-down .26s cubic-bezier(.4,0,.7,.4) both }
@keyframes modal-dim-out{ to{ background-color: rgba(10,11,13,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0) } }
@keyframes modal-down{ to{ opacity: 0; transform: translateY(36px) scale(.96) } }
/* На телефоне окно — лист снизу: выезжает из-под края. */
@media (max-width: 640px){
  .modal-in{ animation-name: modal-sheet }
  @keyframes modal-sheet{ from{ opacity: .4; transform: translateY(60px) } to{ opacity: 1; transform: none } }
}

/* Выпадающая сортировка. */
.nsort.open .nsort-menu{ animation: drop-in .2s cubic-bezier(.2,.8,.3,1) both; transform-origin: top right }
@keyframes drop-in{ from{ opacity: 0; transform: translateY(-6px) scale(.97) } to{ opacity: 1; transform: none } }

/* Шрифт, размер, палитра: страница перетекает дольше обычного щелчка. */
html.vt-look::view-transition-old(root),
html.vt-look::view-transition-new(root){ animation-duration: .4s; animation-timing-function: ease }

@media (prefers-reduced-motion: reduce){
  #app.page-in > *, .modal.on, .modal-in, .modal.modal-ghost, .modal.modal-ghost .modal-in, .nsort.open .nsort-menu{ animation: none }
  .modal.modal-ghost{ display: none }
}

/* ---- Вложения (web/attachments.js) ----
   В заметке и цели — «альбом» под текстом: мозаика фото, ниже плашки
   документов, ниже кнопка. В окне задачи — ряд миниатюр. Фото всегда
   обрезается по плитке (object-fit: cover): квадрат или горизонталь, и
   никакой размер картинки не ломает вид. Плитка залита средним цветом фото,
   фото мягко проявляется поверх. */
.att-strip{ display: flex; flex-direction: column; gap: 10px }
.att-goal, .att-note{ margin-top: 18px }
.att-goal-card{ margin-top: 0 }

/* мозаика */
.att-mosaic{ display: grid; gap: 4px; width: 100%; max-width: 520px; border-radius: 18px; overflow: hidden;
  animation: att-in .32s cubic-bezier(.2,.8,.3,1) both }
.att-mosaic.m1{ aspect-ratio: 16 / 9; max-height: 280px }
.att-mosaic.m2{ aspect-ratio: 2 / 1; grid-template-columns: 1fr 1fr }
.att-mosaic.m3{ aspect-ratio: 3 / 2; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr }
.att-mosaic.m3 .att-tile:first-child{ grid-row: span 2 }
.att-mosaic.m4{ aspect-ratio: 1 / 1; max-width: 420px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr }
.att-tile{ position: relative; min-width: 0; min-height: 0; background: var(--tone, var(--soft)); border-radius: 5px; overflow: hidden }
.att-tile .att-open{ display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in }
.att-tile img, .att-pic img{ display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.3,1) }
.att-tile img.on, .att-pic img.on{ opacity: 1; transform: none }
@media (hover: hover){ .att-tile .att-open:hover img.on{ transform: scale(1.04) } }
.att-more{ position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45);
  color: #fff; font-family: var(--display); font-size: 26px; font-weight: 800 }

/* документы */
.att-docs{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-width: 520px }
.att-item{ position: relative; display: inline-flex; min-width: 0; animation: att-in .28s cubic-bezier(.2,.8,.3,1) both }
@keyframes att-in{ from{ opacity: 0; transform: translateY(6px) scale(.98) } }
.att-docitem .att-open{ display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; padding: 9px 12px 9px 9px;
  border: 1px solid var(--stroke); border-radius: 14px; background: var(--card); color: var(--fg); text-align: left; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease }
.att-docitem .att-open:hover{ transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke));
  box-shadow: 0 8px 18px -12px rgba(0,0,0,.3) }
.att-badge{ flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text, var(--accent)); font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .03em }
.att-dt{ display: flex; flex-direction: column; min-width: 0; gap: 2px }
.att-n{ font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.att-sz{ font-size: 12px; color: var(--fg-3) }

/* ряд в окне задачи */
.att-row{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.att-compact .att-docitem{ max-width: 230px }
.att-pic .att-open{ display: block; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--tone, var(--soft)); cursor: zoom-in; transition: transform .16s ease }
.att-pic .att-open:hover{ transform: translateY(-2px) }

/* убрать */
.att-x{ position: absolute; top: 6px; right: 6px; z-index: 2; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(15,15,18,.62); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.85); transition: opacity .15s ease, transform .15s ease }
.att-docitem .att-x, .att-pic .att-x{ top: -7px; right: -7px }
.att-x svg{ width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round }
.att-tile:hover .att-x, .att-item:hover .att-x, .att-x:focus-visible{ opacity: 1; transform: none }
@media (hover: none){ .att-x{ opacity: 1; transform: none } }

/* загрузка, ошибка */
.att-up{ pointer-events: none }
.att-up .att-open{ opacity: .6 }
.att-tile.att-up::after, .att-pic.att-up::after{ content: ''; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border-radius: 50%; border: 2.5px solid #fff; border-right-color: transparent; animation: att-spin .8s linear infinite }
.att-broken .att-open{ background: var(--soft) }

/* кнопка */
.att-bar{ display: flex }
.att-strip label.att-add{ display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 15px; border-radius: 12px;
  border: 1px dashed var(--control-edge, var(--stroke)); color: var(--fg-2); font-size: 13.5px; font-weight: 600;
  text-transform: none; letter-spacing: normal; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease }
.att-strip label.att-add:hover{ color: var(--accent); border-color: var(--accent); background: var(--accent-soft) }
.att-add svg, .att-chip .nav-ic, .att-mi .nav-ic{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round }
.att-field .att-strip{ margin-top: 4px }

/* перетаскивание файла */
.att-drop{ outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 18px }

/* скрепка в строке задачи */
.chip.att-chip{ display: inline-flex; align-items: center; gap: 4px }
.chip.att-chip .nav-ic{ width: 13px; height: 13px }

/* ---- просмотр ---- */
.modal-in.att-wide{ max-width: min(960px, 100%) }
.att-view{ position: relative; display: flex; flex-direction: column; gap: 12px }
.att-view-top{ display: flex; align-items: baseline; justify-content: center; gap: 10px; min-width: 0 }
.att-view-t{ margin: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.att-view-n{ flex: none; font-size: 12.5px; color: var(--fg-3) }
.att-view-b{ display: grid; place-items: center; min-height: 220px; border-radius: 16px; overflow: hidden;
  background: var(--soft); transition: background-color .3s ease; touch-action: pan-y }
.att-dark .att-view-b{ background: color-mix(in srgb, var(--tone, #111) 30%, #0d0d10) }
.att-view-b img{ display: block; max-width: 100%; max-height: 72vh; object-fit: contain; user-select: none; -webkit-user-drag: none }
.att-view-b img.att-fade{ opacity: 0; transform: scale(.985); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.3,1) }
.att-view-b img.att-fade.on{ opacity: 1; transform: none }
.att-view-b iframe{ width: 100%; height: 72vh; border: 0; background: #fff }
.att-view-doc{ display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px }
.att-view-doc svg{ width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.6 }
.att-view-doc span{ color: var(--fg-2); font-size: 13px }
.att-nav{ position: absolute; top: calc(50% - 4px); width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.88); color: #111; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s ease }
.att-nav:hover{ transform: scale(1.06) }
.att-nav.prev{ left: 12px }
.att-nav.next{ right: 12px }
.att-nav svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.att-spin{ width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--accent); border-right-color: transparent; animation: att-spin .8s linear infinite }
@keyframes att-spin{ to{ transform: rotate(360deg) } }

@media (max-width: 640px){
  .att-mosaic, .att-docs{ max-width: none }
  .att-mosaic.m4{ max-width: none }
  .att-docs{ grid-template-columns: 1fr }
  .att-nav{ width: 36px; height: 36px }
}
@media (prefers-reduced-motion: reduce){
  .att-item, .att-mosaic{ animation: none }
  .att-tile img, .att-pic img, .att-view-b img.att-fade{ transition: none }
}


/* ---- Размер текста — ползунок (app.js, ползунокРазмера) ----
   Ползунок держит свой размер постоянным, сколько бы ни менялся масштаб
   страницы вокруг: zoom обратный к --scale. Иначе он рос бы под пальцем. */
.fs{ zoom: calc(1 / var(--scale, 1)); display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 360px; padding: 6px 2px 0 }
.fs-line{ display: flex; align-items: center; gap: 12px }
.fs-a{ flex: none; font-weight: 700; color: var(--fg-2); line-height: 1 }
.fs-a.sm{ font-size: 13px }
.fs-a.lg{ font-size: 21px }
.fs-track{ position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; outline: none }
.fs-track::before{ content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; background: var(--soft-2, var(--soft)) }
.fs-fill{ position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; width: calc(var(--p) * 100%); border-radius: 99px; background: var(--accent) }
.fs-dot{ position: absolute; top: 50%; left: calc(var(--d) * 100%); width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--card); opacity: .9 }
.fs-thumb{ position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.05); transition: transform .15s ease, box-shadow .15s ease }
.fs-track:hover .fs-thumb{ transform: scale(1.06) }
.fs-track.drag .fs-thumb{ transform: scale(1.15); box-shadow: 0 4px 14px rgba(0,0,0,.25), 0 0 0 6px var(--accent-soft) }
.fs-track:focus-visible .fs-thumb{ box-shadow: 0 2px 8px rgba(0,0,0,.22), 0 0 0 4px var(--accent-soft) }
.fs-ticks{ position: relative; height: 22px; margin: 0 33px }
.fs-tick{ position: absolute; left: calc(var(--d) * 100%); transform: translateX(-50%); padding: 2px 6px; border: 0; border-radius: 8px;
  background: none; color: var(--fg-3); font-size: 12px; white-space: nowrap; cursor: pointer; transition: color .15s ease }
.fs-tick:hover{ color: var(--fg) }
.fs-tick[aria-pressed="true"]{ color: var(--accent-text, var(--accent)); font-weight: 700 }
.subrow .fs{ margin-top: 2px }

/* ---- Меню «Настройки и другое» выдвигается из карточки профиля ----
   Растёт снизу, от карточки, раскрываясь как шторка; пункты проявляются
   один за другим. Закрытие — тот же путь обратно. */
#tabbar .rail-pop.pop-in{ animation: rail-pop-in .38s cubic-bezier(.16,.9,.25,1.04) both; transform-origin: 28px 100% }
#tabbar .rail-pop.pop-out{ animation: rail-pop-out .24s cubic-bezier(.5,0,.75,.3) both; transform-origin: 28px 100%; pointer-events: none }
@keyframes rail-pop-in{
  from{ opacity: 0; transform: translateY(16px) scale(.94); clip-path: inset(70% 0 0 0 round 18px) }
  to{ opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px) }
}
@keyframes rail-pop-out{
  from{ opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px) }
  to{ opacity: 0; transform: translateY(16px) scale(.94); clip-path: inset(70% 0 0 0 round 18px) }
}
#tabbar .rail-pop.pop-in > *{ animation: rail-pop-item .34s cubic-bezier(.2,.8,.3,1) both }
#tabbar .rail-pop.pop-in > :nth-last-child(1){ animation-delay: .03s }
#tabbar .rail-pop.pop-in > :nth-last-child(2){ animation-delay: .06s }
#tabbar .rail-pop.pop-in > :nth-last-child(3){ animation-delay: .09s }
#tabbar .rail-pop.pop-in > :nth-last-child(4){ animation-delay: .12s }
#tabbar .rail-pop.pop-in > :nth-last-child(n+5){ animation-delay: .15s }
@keyframes rail-pop-item{ from{ opacity: 0; transform: translateY(8px) } }
#tabbar .rail-more svg{ transition: transform .35s cubic-bezier(.3,1.4,.5,1) }
#tabbar .rail-more[aria-expanded="true"] svg{ transform: rotate(180deg) }

@media (prefers-reduced-motion: reduce){
  html.scale-anim{ transition: none }
  #tabbar .rail-pop.pop-in, #tabbar .rail-pop.pop-out, #tabbar .rail-pop.pop-in > *{ animation: none }
}

/* ---- Картинки в тексте заметки (02.11.2026) ----
   Стоят там, куда их поставили, по ширине карточки, не выше 460 px. Пока
   грузятся — залиты средним цветом в своих пропорциях, без прыжка текста. */
.ne-body img{ max-width: 100%; height: auto; border-radius: 14px; display: block }
.ne-body figure.ne-img{ position: relative; margin: 12px 0; width: min(100%, var(--fw, 100%)); max-width: 100%; border-radius: 16px;
  background: var(--tone, var(--soft)); aspect-ratio: var(--ar, 16 / 9); overflow: hidden; cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s ease, opacity .2s ease }
.ne-body figure.ne-img img{ width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0;
  opacity: 0; transition: opacity .4s ease; pointer-events: none }
.ne-body figure.ne-img img.on{ opacity: 1 }
.ne-body figure.ne-img.ne-img-up::after{ content: ''; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid #fff; border-right-color: transparent; animation: att-spin .8s linear infinite }
.ne-body figure.ne-img.ne-img-lift{ position: relative; z-index: 20; opacity: .9; cursor: grabbing; overflow: visible;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); transition: box-shadow .2s ease }
html.ne-img-dragging, html.ne-img-dragging *{ cursor: grabbing !important; user-select: none !important }
.ne-drop-line{ position: fixed; z-index: 90; height: 4px; border-radius: 4px; background: var(--accent); pointer-events: none;
  box-shadow: 0 0 0 3px var(--accent-soft); transition: top .12s ease }
.ne-img-acts{ position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease }
.ne-body figure.ne-img:hover .ne-img-acts{ opacity: 1; transform: none }
@media (hover: none){ .ne-img-acts{ opacity: 1; transform: none } }
.ne-img-btn{ display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 10px;
  background: rgba(15,15,18,.62); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px) }
.ne-img-btn svg, .ne-cover-btn svg, .ne-cover-add svg{ width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round }

/* ---- Обложка заметки ---- */
.ne{ position: relative }
.ne-cover{ position: relative; margin: 0 0 18px; height: clamp(160px, 22vw, 260px); border-radius: 18px; overflow: hidden;
  background: var(--tone, var(--soft)); animation: att-in .4s cubic-bezier(.2,.8,.3,1) both }
.ne-cover img{ display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease }
.ne-cover img.on{ opacity: 1 }
.ne-cover-acts{ position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; opacity: 0; transition: opacity .16s ease }
.ne-cover:hover .ne-cover-acts{ opacity: 1 }
@media (hover: none){ .ne-cover-acts{ opacity: 1 } }
.ne-cover-btn{ display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; margin: 0; border: 0; border-radius: 10px;
  background: rgba(15,15,18,.6); color: #fff; font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: normal; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px) }
.ne-cover-add{ display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; margin: 0 0 10px; border-radius: 10px;
  color: var(--fg-3); font-size: 12.5px; font-weight: 600; cursor: pointer; opacity: .75;
  transition: color .15s ease, background-color .15s ease, opacity .15s ease }
.ne-cover-add:hover{ color: var(--accent); background: var(--accent-soft); opacity: 1 }

/* Карточка «Размер текста» — в ряду справа от «Шрифта» (просьба владельца
   02.11.2026: на всю ширину она занимала лишнюю строку). */
.vd-card .fs{ margin-top: 10px; max-width: none }
.lsplit-main > .ne-cover{ height: clamp(130px, 14vw, 190px) }

/* Кнопки «Картинка» и «Обложка» в панели заметки. */
.ne-att-tool{ display: inline-grid; place-items: center; margin: 0; cursor: pointer; text-transform: none; letter-spacing: normal }
.ne-att-tool svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
/* Фото из мозаики, которое несут в текст. */
.att-ghost{ position: fixed; left: 0; top: 0; z-index: 95; width: 100px; height: 80px; border-radius: 12px; pointer-events: none;
  background: var(--soft) center / cover no-repeat; box-shadow: 0 16px 36px -10px rgba(0,0,0,.4); transform-origin: 50% 50%; opacity: .95 }
.att-tile.att-taken{ opacity: .35 }
.att-note .att-tile img{ -webkit-user-drag: none; user-select: none }

/* ---- Галерея обложек (web/covers.js) ---- */
.cv-pick h3{ margin-bottom: 4px }
.cv-pick .s{ margin-bottom: 14px }
.cv-upload{ display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin: 0 0 6px; border-radius: 14px;
  border: 1.5px dashed var(--control-edge, var(--stroke)); color: var(--fg-2); font-weight: 600; font-size: 14px; cursor: pointer;
  text-transform: none; letter-spacing: normal; transition: color .15s ease, border-color .15s ease, background-color .15s ease }
.cv-upload:hover{ color: var(--accent); border-color: var(--accent); background: var(--accent-soft) }
.cv-upload svg{ width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round }
.cv-group{ margin: 16px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); text-align: left }
.cv-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px }
.cv-item{ display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; color: var(--fg-2); font-size: 12.5px; text-align: left; cursor: pointer }
.cv-item img{ display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--stroke);
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s ease }
.cv-item:hover img{ transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(0,0,0,.35), 0 0 0 1px var(--stroke) }
.cv-item.on img{ box-shadow: 0 0 0 3px var(--accent) }
.cv-item.on span{ color: var(--accent-text, var(--accent)); font-weight: 700 }

/* ---- Обложка списка: полосой над названием ---- */
.list-cover{ margin: 0 0 16px; border-radius: 20px; height: clamp(130px, 16vw, 200px) }
.cover-chip{ display: inline-flex; align-items: center; gap: 6px; margin-left: 6px }
.cover-chip svg{ width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round }

/* ---- Поиск в галерее обложек, обложка цели ---- */
.cv-top{ display: flex; gap: 8px; margin: 4px 0 6px }
.cv-search{ flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px;
  background: var(--soft); margin: 0; text-transform: none; letter-spacing: normal; cursor: text }
.cv-search:focus-within{ box-shadow: 0 0 0 2px var(--accent) }
.cv-search svg{ width: 17px; height: 17px; flex: none; fill: none; stroke: var(--fg-3); stroke-width: 2; stroke-linecap: round }
.cv-search input{ flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14.5px; color: var(--fg) }
.cv-search input::-webkit-search-cancel-button{ display: none }
.cv-top .cv-upload{ height: 44px; margin: 0; padding: 0 16px; flex: none }
.cv-item img{ background: var(--soft) }
.cv-sec[hidden], .cv-item[hidden], .cv-empty[hidden]{ display: none }
.cv-empty{ margin: 18px 0 6px; color: var(--fg-2); font-size: 14px; text-align: center }
.gd-cover-btn{ display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 3px 9px; border: 0; border-radius: 999px;
  background: var(--soft); color: var(--fg-2); font-size: 12px; font-weight: 600; cursor: pointer; vertical-align: middle;
  transition: color .15s ease, background-color .15s ease }
.gd-cover-btn:hover{ background: var(--accent-soft); color: var(--accent-text, var(--accent)) }
.gd-cover-btn svg{ width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.goal-cover{ margin: 0 0 16px; border-radius: 20px; height: clamp(140px, 18vw, 220px) }
.gdesk-main > .goal-cover{ height: clamp(140px, 15vw, 210px) }

/* ---- «Две колонки»: панели по колонкам страницы (02.11.2026) ---- */
.ntool-right{ display: flex; gap: 10px; align-items: center; flex: 1 1 auto; min-width: 0 }
.ntool-right .nsearch{ flex: 1 1 220px }
@media (min-width: 1040px){
  .listbar.ntool.ntool-split{ display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr); gap: 20px; align-items: center }
  .ntool-split .nseg{ display: flex !important; width: 100%; min-width: 0 }
  .ntool-split .nseg .lv-btn{ flex: 1 1 auto; padding-left: 8px; padding-right: 8px; white-space: nowrap }

  .lsplit.lsplit-top{ margin-top: 0 }
  .lsplit-left{ display: flex; flex-direction: column; gap: 14px; min-width: 0; position: sticky; top: 24px }
  .lsplit-left .lsplit-nav{ position: static }
  .lsplit-left .listbar{ margin: 0; flex-wrap: wrap; gap: 10px }
  .lsplit-left .listbar .listseg{ display: flex !important; flex: 1 1 100% !important; width: 100%; min-width: 0 }
  .lsplit-left .listbar .listseg .lv-btn{ flex: 1 1 auto; padding: 8px 6px; white-space: nowrap; text-align: center }
  .lsplit-left .listbar > .btn{ width: 100% }
}

/* Компактный вид задач: плашки прижаты вправо, и «Переносилась 2 раза»,
   «…9 раз», «…13 раз» разной длины — левые края гуляли, столбик выглядел
   кривым (владелец 04.11.2026: «почему надписи не ровно стоят?»). Одна
   ширина, текст по центру, цифры одной ширины — встают ровным столбиком. */
html[data-dense="1"] .item .chips .chip{ font-variant-numeric: tabular-nums }
html[data-dense="1"] .item .chips .chip.carried{ min-width: 12.9em; justify-content: center; text-align: center }

/* Компактный вид на компьютере: дата, время, срок и переносы — каждый в своём
   столбце (владелец 09.11.2026: «всё должно быть друг под другом аккуратно»).
   Пустая ячейка держит место, ширину столбца ставит выровнятьПлашки() в app.js. */
html[data-dense="1"] .item .chips.cols{ gap: 6px; align-items: center; justify-content: flex-end }
html[data-dense="1"] .item .chips.cols .cx{ display: flex; gap: 6px; flex: none }
html[data-dense="1"] .item .chips.cols .cs{ display: flex; gap: 6px; flex: none; justify-content: flex-start }

/* Пример меток в настройках: настоящая строка задачи на подложке, как в
   примере компактного вида. Нажатия выключены — задача ненастоящая. */
.status-demo{ display: flex; flex-direction: column; gap: 8px; padding: 10px; margin: 4px 0 14px;
  border-radius: 16px; background: var(--panel-strong, var(--soft)); pointer-events: none; user-select: none }
.status-demo .item{ background: var(--card); border-radius: 12px; margin: 0 }
.status-demo .item .side, .status-demo .item .kill, .status-demo .detail-wrap{ display: none }
