/* Revision 27 — пользовательские правки: Dashboard, оформление строк, срок, тэги. */

/* Проект в строках/чипах: «@» цвета проекта вместо значка. */
.tp-artifact .tp-at{color:var(--tp-color,var(--accent));font-weight:700}

/* Меню «Перенести срок»: вертикальный список прямоугольников как в меню задачи, bullet-point вместо значков, OK/Отмена справа. */
.r25-postpone-dialog .r23-project-stack{display:block}
.r25-postpone-dialog .r23-project-stack+.r23-project-stack{margin-top:12px}
.r25-postpone-dialog .r23-project-row{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:5px 12px;margin:0;border:1px solid var(--panel,#fffdf8);border-radius:0;background:color-mix(in srgb,#8a7a5f 16%,var(--panel));color:var(--ink);font:inherit;text-align:left;cursor:pointer}
html[data-interface-design=classic] .r25-postpone-dialog .r23-project-row{background:white}
.r25-postpone-dialog .r23-project-stack>.r23-project-row:first-child{border-radius:10px 10px 0 0}
.r25-postpone-dialog .r23-project-stack>.r23-project-row:last-child{border-radius:0 0 10px 10px}
.r25-postpone-dialog .r23-project-stack>.r23-project-row:only-child{border-radius:10px}
.r25-postpone-dialog .r23-project-stack>.r23-project-row+.r23-project-row{border-top:0}
.r25-postpone-dialog .r25-postpone-presets [aria-pressed=true]{color:var(--ink);border-color:var(--panel,#fffdf8);background:color-mix(in srgb,#8a7a5f 16%,var(--panel))}
html[data-interface-design=classic] .r25-postpone-dialog .r25-postpone-presets [aria-pressed=true]{background:white}
.r25-postpone-dialog .r25-postpone-fields{display:block}
.r25-postpone-dialog .r25-postpone-fields label{display:flex;gap:10px;align-items:center;justify-content:space-between}
.r25-postpone-dialog .r25-postpone-fields input{width:auto;flex:1 1 auto;min-width:0;min-height:0;border:0;background:transparent;text-align:right;font:inherit;color:var(--ink)}
.r25-bullet{position:relative;box-sizing:border-box;flex:0 0 16px;width:16px;height:16px;border:2px solid var(--accent);border-radius:50%}
.r25-radio-row[aria-pressed=true] .r25-bullet::after{content:"";position:absolute;inset:2px;border-radius:50%;background:var(--accent)}
.r25-postpone-dialog .r25-dialog-actions{justify-content:flex-end}

/* ── Меню срока: 5 строк ── */
.time-menu .time-menu-card{display:flex;flex-direction:column;gap:10px}
.time-menu .r27-time-row{display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:0!important;grid-template-columns:none!important}
.time-menu .r27-time-row>label{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 90px;font-size:var(--dj-text-secondary-size);font-weight:var(--dj-text-secondary-weight);color:var(--muted)}
.time-menu .r27-time-row>label>span{line-height:1.2}
.time-menu .r27-time-row input,.time-menu .r27-time-row select{box-sizing:border-box;width:100%;min-width:0;min-height:36px;font:inherit;font-size:var(--dj-text-body-size);color:var(--ink)}
.time-menu .r27-time-row>.r27-time-label{flex:0 0 100%;font-size:var(--dj-text-secondary-size);font-weight:700;color:var(--muted);text-transform:none;letter-spacing:0}
.time-menu .r27-row-quick{align-items:stretch}
.time-menu .r27-row-quick>.btn{flex:1 1 0;min-height:36px;white-space:nowrap}
.time-menu .r27-row-deadline>.btn,.time-menu .r27-row-exec>.btn{min-height:36px}
.time-menu .r27-row-exec .r27-duration{flex:1 1 110px}
.time-menu .r27-exec-clear{flex:0 0 36px;width:36px;height:36px;min-width:36px;padding:0!important;display:inline-grid;place-items:center}
.time-menu .r27-exec-clear .v22-icon{width:18px;height:18px}
.time-menu .r27-time-row input:disabled,.time-menu .r27-time-row select:disabled,.time-menu .r27-exec-clear:disabled{opacity:.45;cursor:not-allowed}
.time-menu .r27-row-actions{display:flex;align-items:center;gap:8px;margin-top:2px}
.time-menu .r27-row-actions .r27-postpone-btn{margin-right:auto;display:inline-flex;align-items:center;gap:6px;min-height:40px}
.time-menu .r27-row-actions .r27-postpone-btn .v22-icon{width:18px;height:18px}
.time-menu .r27-row-exec{flex-wrap:nowrap;gap:6px}
.time-menu .r27-row-exec>label{flex:1 1 0;min-width:0}
.time-menu .r27-row-exec .r27-duration{flex:1.1 1 0}
.time-menu .r27-row-exec input,.time-menu .r27-row-exec select{padding:4px 3px;font-size:13px}

/* ── Dashboard: три кнопки внизу, поверх содержимого; вертикальная полоса прокрутки ── */
.rightbar.r26-dashboard{position:sticky}
.rightbar.r26-dashboard>.r26-dashboard-launchers{position:absolute!important;left:0;right:10px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:12;display:flex!important;flex-direction:row;justify-content:flex-end;align-items:center;gap:8px;margin:0!important;padding:0;pointer-events:none}
.rightbar.r26-dashboard>.r26-dashboard-launchers>button{pointer-events:auto;width:44px;height:44px;min-width:44px;min-height:44px;box-shadow:0 4px 14px #0003}
.rightbar.r26-dashboard>.r26-dashboard-launchers .v22-icon,.rightbar.r26-dashboard>.r26-dashboard-launchers svg{width:22px!important;height:22px!important}
@media(min-width:600px) and (max-width:1024px){
  .rightbar.r26-dashboard>.r26-dashboard-launchers{right:6px}
  .rightbar.r26-dashboard>.r26-dashboard-launchers>button{width:52px;height:52px;min-width:52px;min-height:52px}
  .rightbar.r26-dashboard>.r26-dashboard-launchers .v22-icon,.rightbar.r26-dashboard>.r26-dashboard-launchers svg{width:24px!important;height:24px!important}
}
/* свёрнутый: вертикальный столбец внизу; Помощник (последний) остаётся на прежнем месте, соседи — выше него */
.rightbar.r26-dashboard.r26-dashboard-collapsed>.r26-dashboard-launchers{left:0;right:0;top:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));flex-direction:column;justify-content:flex-end;align-items:center;margin:0!important}
.rightbar.r26-dashboard.r26-dashboard-collapsed>.r26-dashboard-launchers>button{width:44px;height:44px;min-width:44px;min-height:44px}
@media(min-width:600px) and (max-width:1024px){.rightbar.r26-dashboard.r26-dashboard-collapsed>.r26-dashboard-launchers>button{width:52px;height:52px;min-width:52px;min-height:52px}}
/* полоса прокрутки всегда нарисована; снизу запас под кнопки */
.rightbar.r26-dashboard>.rightbar-scroll{overflow-y:scroll!important;scrollbar-gutter:stable;padding-bottom:78px!important}
.rightbar.r26-dashboard>.rightbar-scroll::-webkit-scrollbar{width:10px}
.rightbar.r26-dashboard>.rightbar-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 45%,transparent);border-radius:8px;border:2px solid transparent;background-clip:content-box}
.rightbar.r26-dashboard>.rightbar-scroll::-webkit-scrollbar-track{background:transparent}

/* Project dashboard: показатели в одну строку высотой, ёмкость в минутах, расписание как в «Фокусе дня» */
.r26-dashboard-metrics{gap:6px}
.r26-dashboard-metric{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px!important;min-height:0}
.r26-dashboard-metric>b{font-size:var(--dj-text-body-size,15px)!important}
.r26-dashboard-failed{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:-2px}
.r26-dashboard-failed>b{color:var(--danger,#c64f43);font-size:var(--dj-text-secondary-size,12px)}
.r26-dashboard-head .right-title .r26-dashboard-rating{margin-left:4px;color:var(--accent)}
.r26-dashboard-schedule .timeline{margin-top:4px}

/* Планшет: при сворачивании Dashboard кнопка «Настройки» (правый край шапки) остаётся на месте — шапка привязана к ширине РАЗВЁРНУТОГО Dashboard,
   а свёрнутый Dashboard (64px) прижат к правому краю без пустой щели. */
@media(min-width:600px) and (max-width:1024px){
  :root{--r27-dash-open:clamp(248px,31vw,336px)}
  html body .app-shell.r26-dashboard-collapsed{grid-template-columns:var(--r26-tablet-rail) minmax(0,1fr) 64px!important}
  /* шапка всегда доходит до правого меню (свёрнутого или развёрнутого); кнопки в ней остаются на прежних местах за счёт внутреннего отступа; без анимации по горизонтали */
  html body main.main>.v76-mobile-header{--r27-dash-now:var(--r27-dash-open);right:var(--r27-dash-now)!important;padding-right:calc(10px + var(--r27-dash-open) - var(--r27-dash-now))!important;transition:none!important}
  html:has(.app-shell.r26-dashboard-collapsed) body main.main>.v76-mobile-header{--r27-dash-now:64px}
  html body main.main{transition:none!important}
  html body main.main>.v76-mobile-header :is(.v76-mobile-main-row,.v76-active-route){transition:none!important}
  html body .app-shell{transition:none!important}
}

/* Ручная цель с цифрами: четыре строки-прямоугольника «Достичь / Единицы / Как / Срок»; родные контролы v19/v40 скрыты и управляются через них */
html body .v19-task-menu .v40-measure-row[data-r27-rows]{display:block!important;overflow:visible!important;margin:4px 0 0!important;padding:0!important}
html body .v19-task-menu .v40-measure-row[data-r27-rows]>:not(.r27-goal-rows){display:none!important}
.r27-goal-rows{display:block}
.r27-goal-row{box-sizing:border-box;display:flex;align-items:center;gap:8px;min-height:38px;padding:4px 12px;border:1px solid var(--panel,#fffdf8);background:color-mix(in srgb,#8a7a5f 16%,var(--panel));color:var(--ink)}
html[data-interface-design=classic] .r27-goal-row{background:white}
.r27-goal-rows>.r27-goal-row:first-child{border-radius:10px 10px 0 0}
.r27-goal-rows>.r27-goal-row:last-child{border-radius:0 0 10px 10px}
.r27-goal-rows>.r27-goal-row+.r27-goal-row{border-top:0}
.r27-goal-label{flex:0 0 auto;color:var(--muted);font-size:var(--dj-text-body-size,15px);font-weight:var(--dj-text-body-weight,600)}
html body .v19-task-menu .r27-goal-row .r27-goal-value{flex:0 1 auto;min-height:0;padding:2px 4px;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:700;text-align:left;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
html body .v19-task-menu .r27-goal-row .r27-goal-value:disabled{cursor:default;text-decoration:none;opacity:.75}
html body .v19-task-menu .r27-goal-row .r27-goal-number{width:84px!important;min-height:0!important;height:28px!important;padding:0 6px!important;border:0!important;border-bottom:1px solid var(--line,#0003)!important;background:transparent!important;color:var(--ink);font:inherit;font-weight:700;text-align:right;box-shadow:none!important}
html body .v19-task-menu .r27-goal-deadline{margin-top:6px!important}
.r27-goal-deadline .r26-deadline{font-weight:700}
.r27-goal-deadline[data-r26-tone="overdue"] .r26-deadline,.r27-goal-deadline .r26-deadline{color:var(--danger,#c94b43)}
.r27-goal-deadline .r27-critical{margin-left:auto;flex:0 0 auto;min-height:28px;padding:2px 10px;font-size:var(--dj-text-secondary-size,12px)}
.r27-critical-menu{position:fixed;z-index:10000;box-sizing:border-box;padding:8px;border:1px solid var(--line,#0002);border-radius:12px;background:var(--panel,#fffdf8);box-shadow:0 10px 30px #0003}
.r27-critical-menu .r27-critical-option{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:5px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.r27-critical-menu .r27-critical-option[aria-pressed=true]{background:color-mix(in srgb,#8a7a5f 16%,var(--panel))}
.r27-critical-menu .r25-radio-row[aria-pressed=true] .r25-bullet::after{content:"";position:absolute;inset:2px;border-radius:50%;background:var(--accent)}
.r27-critical-menu p{margin:6px 10px 2px;color:var(--muted);font-size:var(--dj-text-secondary-size,12px);line-height:1.35}

/* Dashboard: заметки и комментарии открытой задачи */
.r27-dash-task{margin:0 0 12px}
.r27-dash-task .r27-dash-note{display:grid;gap:2px;width:100%;box-sizing:border-box;margin:0 0 6px;padding:7px 10px;border:1px solid var(--line,#0002);border-radius:10px;background:var(--panel,#fffdf8);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.r27-dash-task .r27-dash-note>b{font-size:var(--dj-text-body-size,15px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r27-dash-task .r27-dash-note>span{color:var(--muted);font-size:var(--dj-text-secondary-size,12px);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.r27-dash-task time{color:var(--muted);font-size:var(--dj-text-secondary-size,12px)}
.r27-dash-task .r27-dash-comment{display:grid;gap:1px;margin:0 0 6px;padding:5px 10px;border-left:3px solid var(--accent)}
.r27-dash-task .r27-dash-comment>span{font-size:var(--dj-text-secondary-size,13px);line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Тэги: кружок с числом справа, перед ним избранное, левее — редактирование/цвет */
.r27-tag-row{display:flex!important;align-items:center;gap:8px}
.r27-tag-row>.entity-link{flex:1 1 auto;min-width:0;order:0}
.r27-tag-row>.tag-actions{display:contents}
.r27-tag-row .tag-actions>[data-delete-tag]{order:1}
.r27-tag-row .tag-actions>[data-edit-tag],.r27-tag-row>.v57-system-tag-color{order:2}
.r27-tag-row .tag-actions>.v24-favorite-toggle,.r27-tag-row>.v24-favorite-toggle{order:3}
.r27-tag-row>.r27-tag-count{order:4;flex:0 0 auto;margin-left:2px}

/* Меню тэга: «Удалить» — опасное действие (контур --accent, значок «удаление»), слева в нижнем ряду кнопок */
.r25-dialog-actions{align-items:center}
.r25-dialog-actions>.r27-delete-action{margin-right:auto;width:44px;height:44px;flex:0 0 44px;padding:0;display:grid;place-items:center;border-radius:50%;border:1px solid var(--accent);color:var(--accent);background:transparent}
.r25-dialog-actions>.r27-delete-action .v22-icon{color:var(--accent)}

/* Справка: колонка понятий центрирована относительно картинки (и на телефоне тоже); справка по наведению на Dashboard */
@media(max-width:599px){
  .r24-help-map{padding:28px 66px 18px 66px}
  .r24-help-map button{font-size:13px;padding:5px 4px}
  .r24-help-levels>div{gap:3px}
}
.rightbar.r26-dashboard>.r27-dash-help{position:absolute;left:8px;right:8px;top:56px;bottom:78px;z-index:8;box-sizing:border-box;overflow:auto;padding:12px 14px;border-radius:14px;background:var(--panel,#fffdf8);border:1px solid var(--line,#0002);box-shadow:0 6px 20px #0002}
.rightbar.r26-dashboard>.r27-dash-help p{margin:8px 0 0;font-size:var(--dj-text-body-size,15px);line-height:1.45;color:var(--ink)}

/* Вопрос «одну задачу или несколько?» поверх редактора заметки (v84 прячет остальные .modal-backdrop) */
html.notes-editing .modal-backdrop.r27-ask-layer{visibility:visible!important;pointer-events:auto!important;z-index:100030!important}
.r27-ask-dialog h2{margin:0 0 12px;font-size:var(--dj-text-heading-size,18px)}

/* Редактор заметки рядом с Dashboard: слой редактора оставляет справа место под Dashboard, preview и артефакты живут в нём */
html.r27-note-dash.notes-editing .notes-editor{right:var(--r27-note-dash-w,320px)!important;left:0!important;width:auto!important}
html.r27-note-dash.notes-editing .rightbar{visibility:visible!important;z-index:100010}
html.r27-note-dash.notes-editing .rightbar .r26-dashboard-launchers{z-index:100011}
.r27-dash-note-editor{margin:0 0 12px;display:grid;gap:6px}
.r27-dash-note-editor .notes-mini-preview,.r27-dash-note-editor .notes-mini-preview[hidden]{position:relative!important;display:block!important;right:auto!important;top:auto!important;width:auto;max-width:160px!important;margin:0 auto;pointer-events:auto}
.r27-dash-note-editor .notes-attached{position:static!important;display:flex;flex-wrap:wrap;gap:6px;max-width:none;padding:0;margin:0;background:transparent}
.r27-dash-note-editor .right-title:has(+ .r27-note-attached-slot .notes-attached:empty),.r27-dash-note-editor .r27-note-attached-slot:has(.notes-attached:empty){display:none}
.r27-dash-notes-filter{margin:0 0 12px}
.r27-dash-notes-filter .notes-tools{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0;position:static}

/* Телефон: Заметка / Фокус / Помощник — в одну вертикальную линию у правого края (Помощник — нижний, на своём месте) */
html.v76-phone body .v18-action-dock{left:auto!important;right:16px!important;top:auto!important;bottom:calc(80px + 52px + 12px)!important;flex-direction:column!important;gap:12px!important}

/* Планшет: единый шрифт всего бокового меню — как у пунктов под «Ещё» */
@media(min-width:600px) and (max-width:1024px){
  html body .sidebar :is(.nav-item,.nav-item>span:not(.count),.v76-wide-more-toggle,.v76-wide-more-toggle>span:not(.v76-more-dots),.v19-favorites-drawer button,.v76-wide-more-items>button){font-family:var(--font,inherit)!important;font-size:var(--dj-text-body-size)!important;font-weight:var(--dj-text-body-weight)!important}
}
/* Заметки: сетка карточек не схлопывается в нулевую ширину */
.notes-grid{min-width:120px}.notes-card{min-width:min(120px,100%)}

/* Меню цели с цифрами: шапка как у меню задачи — название тянется, справа подряд статусы и «Отмена» без провалов */
html body .v19-task-menu .v40-goal-head{display:flex!important;align-items:center;justify-content:flex-start!important;gap:8px}
html body .v19-task-menu .v40-goal-head>.v40-title-wrap{flex:1 1 0!important;min-width:0;width:auto!important}
html body .v19-task-menu .v40-goal-head>.v76-task-state-wrap{flex:0 0 auto;margin:0!important;order:8}
html body .v19-task-menu .v40-goal-head>.r26-editor-actions{flex:0 0 auto;margin:0!important;order:9}
.time-menu .r27-missing{outline:2px solid var(--accent);border-radius:6px}
.r25-postpone-dialog .r25-postpone-fields[hidden]{display:none!important}
.r25-postpone-dialog .r25-postpone-presets+.r25-postpone-fields{margin-top:6px}

/* Ширина раскладки не прыгает от появления/исчезновения полосы прокрутки (раскрытие разделов, разные закладки) — Dashboard одной ширины везде */
html{scrollbar-gutter:stable}

/* Тэги: без кнопок «удалить»; у системных цветной кружок заменён «редактировать»; кружки-счётчики одного размера и в одной колонке */
.r27-tag-row .tag-actions>[data-delete-tag]{display:none!important}
.r27-tag-row>.v57-system-tag-color{display:none!important}
.r27-tag-row>.r27-tag-edit{order:2}
.r27-tag-row>.r27-tag-count{box-sizing:border-box;width:26px;min-width:26px;height:26px;padding:0!important;display:inline-grid;place-items:center;margin-left:2px;text-align:center}
.rightbar.r26-dashboard-collapsed{cursor:pointer}

/* Идея: «редактировать идею» — стандартная круглая 44px, системного цвета, значок белый */
html body main [data-r26-idea-edit].r27-idea-edit{--v77-circle-size:44px;width:44px!important;height:44px!important;min-width:44px;padding:0;border-radius:50%;background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
html body main [data-r26-idea-edit].r27-idea-edit .v22-icon,html body main [data-r26-idea-edit].r27-idea-edit svg{color:#fff!important;stroke:#fff}
/* Идея/проект: кнопки «новая задача / цель / датчик / ритуал / мысль (/ подпроект)» — круглые 44px системного цвета, в одну строку, без подписей */
@media(min-width:600px){
  .r26-idea-actions,.r25-idea-secondary{display:flex;flex-wrap:nowrap;gap:8px;align-items:center;overflow:visible}
  .r26-idea-actions>.r26-entity-button{flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;justify-content:center;background:var(--accent);border-color:var(--accent);color:#fff}
  .r26-idea-actions>.r26-entity-button>span{display:none}
  .r26-idea-actions>.r26-entity-button .v22-icon{color:#fff}
  .r21-secondary-tools{display:flex;flex-wrap:nowrap;gap:8px;align-items:center}
  .r21-secondary-tools>.r21-icon-button{flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;border-radius:50%}
  .r21-secondary-tools>.r21-icon-button.primary,.r21-secondary-tools>[data-r27-create]{background:var(--accent);border-color:var(--accent);color:#fff}
  .r21-secondary-tools>[data-r27-create] .v22-icon{color:#fff}
}
/* Идеи: значок идеи в строках разделов — цвета идеи */
.idea-card>.v22-icon:first-child,.idea-card>svg:first-child{color:inherit!important}
.r27-dash-stones{margin:0}
.r27-dash-stones .v19-project-stones{display:flex;flex-direction:column;gap:6px;margin:6px 0 0;padding:0;background:transparent}
@media(min-width:600px){
  html body .r21-project-secondary .r21-secondary-tools>button{flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important}
  html body .r21-project-secondary .r21-secondary-tools>[data-r27-create]{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
  html body .r21-project-secondary .r21-secondary-tools>[data-r27-create] :is(svg,.v22-icon){color:#fff!important}
  html body .r21-project-secondary .r21-secondary-tools>[data-r27-create]>span{display:none}
}

/* График по дням на Dashboard (Ритуалы, Привычки) */
.r27-dash-daychart{margin:0 0 12px}
.r27-dash-daychart svg{display:block;width:100%;height:auto;margin-top:6px}
.r27-dash-daychart .r27-c-done,.r27-c-legend .r27-c-done{fill:#5fa77e;background:#5fa77e}
.r27-dash-daychart .r27-c-skip,.r27-c-legend .r27-c-skip{fill:#b8a99a;background:#b8a99a}
.r27-dash-daychart .r27-c-fail,.r27-c-legend .r27-c-fail{fill:var(--accent);background:var(--accent)}
.r27-c-label{font-size:8px;fill:var(--muted)}
.r27-c-legend{display:flex;gap:12px;margin-top:4px;font-size:var(--dj-text-secondary-size,12px);color:var(--muted)}
.r27-c-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px;vertical-align:-1px}

/* Календарь: расписание выбранного дня */
.r27-cal-timeline{position:relative}
.r27-cal-timeline .time-block.r27-underline .time-title{text-decoration:underline}
.r27-cal-line{position:absolute;width:1px;background:var(--r27-line,#888);pointer-events:none;z-index:2}
.r27-cal-line-red{background:#d00}

/* Боковое дерево проектов: вместо значка — «@» цвета проекта после названия */
.sidebar .v78-sidebar-project-link:not(.r27-idea-link) .v78-sidebar-project-glyph{display:none!important}
.sidebar .v78-sidebar-project-name::after{content:" @";font-weight:700}

/* ═══ Часть 3 ═══ */
/* «@» проекта — слева от названия, цвета проекта (боковое дерево и избранное) */
.sidebar .v78-sidebar-project-link:not(.r27-idea-link) .v78-sidebar-project-name::after{content:none!important}
.sidebar .v78-sidebar-project-link:not(.r27-idea-link) .v78-sidebar-project-name::before{content:"@ ";font-weight:700}
.sidebar .v19-favorites-drawer [data-v19-favorite-project],.sidebar .v19-favorites-drawer [data-project]{color:inherit}
/* Планшет: левое меню при раскрытии накрывает центр, а не сжимает его */
@media(min-width:600px) and (max-width:1024px){
  html body main.main{margin-left:0!important}
  html body main.main>.v76-mobile-header{left:var(--r26-tablet-rail,64px)!important}
  html body .sidebar.r25-rail-open{z-index:60;box-shadow:6px 0 24px #0003}
}
/* Переход на новую закладку — снизу вверх (вся закладка и Dashboard) */
@keyframes r27-route-up{from{opacity:.0;transform:translateY(28px)}to{opacity:1;transform:none}}
.r27-route-enter{animation:r27-route-up .3s ease-out both}
@media(prefers-reduced-motion:reduce){.r27-route-enter{animation:none}}
/* Dashboard: вертикальная полоса прокрутки не показывается (прокрутка остаётся) */
.rightbar.r26-dashboard>.rightbar-scroll{overflow-y:auto!important;scrollbar-width:none!important;-ms-overflow-style:none;scrollbar-gutter:auto!important}
.rightbar.r26-dashboard>.rightbar-scroll::-webkit-scrollbar{display:none!important;width:0!important}
/* Кнопка «Фокус» на Dashboard — значок белый */
.rightbar.r26-dashboard [data-r26-dashboard-focus] :is(svg,.v22-icon){filter:brightness(0) invert(1)!important;color:#fff!important}
/* Что показывает Dashboard: закладки без расписания/ёмкости */
html[data-r27-route="rituals"] .rightbar-scroll>.rightbar-schedule-title,html[data-r27-route="rituals"] .rightbar-scroll>.timeline,
html[data-r27-route="habits"] .rightbar-scroll>.rightbar-schedule-title,html[data-r27-route="habits"] .rightbar-scroll>.timeline{display:none!important}
html[data-r27-route="notes"] .rightbar-frozen,html[data-r27-route="goals"] .rightbar-frozen,html[data-r27-route="settings"] .rightbar-frozen,html[data-r27-route="help"] .rightbar-frozen,html[data-r27-route="ideas"] .rightbar-frozen,
html[data-r27-modal="task"] .rightbar-frozen,html.notes-editing .rightbar-frozen{display:none!important}
html[data-r27-route="notes"] .rightbar-scroll>*:not([class*="r27-"]),html[data-r27-route="goals"] .rightbar-scroll>*:not([class*="r27-"]),html[data-r27-route="settings"] .rightbar-scroll>*:not([class*="r27-"]),
html[data-r27-route="help"] .rightbar-scroll>*:not([class*="r27-"]),html[data-r27-route="ideas"] .rightbar-scroll>*:not([class*="r27-"]),
html[data-r27-modal="task"] .rightbar-scroll>*:not([class*="r27-"]),html.notes-editing .rightbar-scroll>*:not([class*="r27-"]){display:none!important}
.r27-concept{margin:8px 0;font-size:var(--dj-text-body-size,15px);line-height:1.5}
.r27-concept-hint{color:var(--muted);font-size:var(--dj-text-secondary-size,12px)}
.r27-dash-route{margin:0 0 12px}
/* Меню поверх страницы занимают область до Dashboard — Dashboard остаётся доступным */
html.r27-dash-live .modal-backdrop:not(.r27-ask-layer){right:var(--r27-dash-w,0px)!important;width:auto!important}
html.r27-dash-live .r26-dashboard-launchers{z-index:100040}
/* Показатели Dashboard проекта/идеи — кнопки-фильтры */
.r26-dashboard-metric[data-r27-filter]{cursor:pointer}
.r26-dashboard-metric.r27-filter-on{outline:2px solid var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.r27-filtered-out{display:none!important}
/* Цели с цифрами: число в поле выбора — следующий размер шрифта */
html body .v19-task-menu .r27-goal-row .r27-goal-number{font-size:var(--dj-text-heading-size,18px)!important;height:32px!important}
/* Кнопки «выделить» и «аналитика» проекта — справа */
@media(min-width:600px){html body .r21-project-secondary .r21-secondary-tools>[data-r21-select]{margin-left:auto}}
/* Идеи: значок в круглой кнопке создания — белый; «…» под общей кнопкой */
html body main .r25-new-idea :is(svg,.v22-icon),html body main .v82-create-button :is(svg,.v22-icon){color:#fff!important}
.r27-ideas-more{display:flex;align-items:center;gap:8px;margin:8px 0}
.r27-ideas-more>button{min-width:44px;height:44px;border-radius:50%;border:1px solid var(--line,#0003);background:transparent;color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.r27-ideas-more[data-open="1"]>button{background:var(--accent);color:#fff;border-color:var(--accent)}
.r27-ideas-hidden[hidden]{display:none!important}
.r27-dash-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.r27-dash-chip{padding:3px 10px;border-radius:999px;border:1px solid currentColor;font-size:var(--dj-text-secondary-size,13px);font-weight:600}
.r26-favorite-heading{display:flex;align-items:center;gap:8px}
.r26-favorite-heading>[data-r26-favorite-fold]{display:contents}
.r26-favorite-heading .r26-favorite-add{order:4;margin-left:auto;min-height:32px;padding:2px 12px}
.r26-favorite-heading .r26-favorite-count{order:5}
.r26-favorite-row .r27-fav-date{margin-left:auto;color:var(--muted);font-size:var(--dj-text-secondary-size,12px)}
.r24-help-map aside.r24-help-left{position:absolute;left:10px;top:150px;right:auto;display:flex;flex-direction:column;gap:40px}
@media(max-width:599px){.r24-help-map aside.r24-help-left{left:4px}}
/* Настройки: свёрнутый раздел скрывает всё, кроме заголовка ("Система" раньше оставляла строку) */
.v76-settings-collapsed>:not(h3){display:none!important}
.notes-security-settings.v76-settings-collapsed>:not(h3){display:none!important}
/* Графики истории цели/датчика/привычки — на Dashboard (в форме скрыты; на телефоне их нет вовсе) */
html.r27-dash-live [data-task-form]>.r26-history,html.r27-dash-live [data-v40-goal-form]>.r26-history{display:none!important}
@media(max-width:599px){.r26-history{display:none!important}}
.r27-dash-history svg{max-width:100%;height:auto}
.r27-hist-meta{color:var(--muted);font-weight:400}
.task-state-actions>.r27-state-sep{border:0;border-top:1px solid var(--line,#0003);margin:6px 0}
.task-state-actions>.r27-copy-action{width:100%}
/* Срок цели/датчика: название срока, выбор срока и «критичный» не наезжают друг на друга */
html body .v19-task-menu .r27-goal-deadline{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 10px;position:relative;height:auto!important;min-height:36px}
html body .v19-task-menu .r27-goal-deadline>*{position:static!important;flex:0 1 auto;min-width:0;max-width:100%}
html body .v19-task-menu .r27-goal-deadline .r26-deadline{flex:1 1 140px}
html body .v19-task-menu .r27-goal-deadline>.r27-critical{order:9;margin-left:auto;width:auto!important;min-width:0!important;height:28px!important;min-height:28px!important;padding:2px 12px!important;border-radius:14px!important;white-space:nowrap;overflow:visible!important;font-size:var(--dj-text-secondary-size,13px)!important}
html body .v19-task-menu .r27-goal-deadline>.r26-deadline{order:2}
html body .v19-task-menu .r27-goal-deadline>button[data-v40-time-open]{order:1}
.r27-note-stats{padding:2px 2px 6px;font-size:var(--dj-text-body-size,15px)}
html.r27-note-dash .notes-editor .notes-focus-launch{display:none!important}

.r27-ideas-tree[hidden]{display:none!important}
.r27-ideas-tree{padding-left:8px}
.r27-search-notes{margin-top:16px}
.r27-search-note{display:flex!important;justify-content:space-between;gap:12px;width:100%;box-sizing:border-box;min-height:40px;padding:6px 12px;border:0;border-bottom:1px solid var(--line,#0001);background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.r27-search-note time{color:var(--muted);font-size:var(--dj-text-secondary-size,12px)}
.r27-parser-doc{margin-top:10px;font-size:var(--dj-text-secondary-size,14px)}
.r27-parser-doc code{padding:1px 6px;border-radius:6px;background:color-mix(in srgb,#8a7a5f 16%,var(--panel))}
.r27-ideas-wrap>.r27-ideas-tree{grid-column:1/-1}
/* Срок цели: порядок и размеры перебивают task-menu-r19 (order:-1 / flex:0 0 20px с !important у кнопок в .time-line) */
html body .v19-task-menu .r27-goal-deadline>.r27-critical{order:9!important;flex:0 0 auto!important;width:auto!important;margin-left:auto!important}
html body .v19-task-menu .r27-goal-deadline>.r26-deadline{order:2!important}
html body .v19-task-menu .r27-goal-deadline>[data-v40-time-open]{order:1!important}
