/* IAM — экран «Задачи»: шапка фразой (js/ui/43-tasks-head.js), строки с разделителями и значком проекта, серые кружки.
   10.11.2026, владелец: макет ~/mac-dashboard/design/iam-tasks2, вариант Б, «кружки у задач не разноцветные». Только ПК, тёмная тема. */
body:not(.tsh-on) #tsh-head { display: none !important; }
/* старое сверху: вкладки, название по центру, «Мои», «+», поиск — на этом экране не показываем */
@layer iam-tsh {   /* важное из слоя сильнее неслойного !important — прячем старое и снимаем чужие стили кнопок без гонки по весу */
  body.tsh-on #iam-topbar :is(.tb-ttabs, .tb-rt) { display: none !important; }   /* название «Задачи» по центру — как было (владелец 10.11) */
  body.tsh-on.tb-tight #iam-topbar .tb-ttl { display: flex !important; }   /* «тесно» считалось по старым кнопкам справа — их здесь нет */
  body.tsh-on #page-tasks .sec-hdr { visibility: hidden !important; pointer-events: none !important; }
  #tsh-head { margin: 0 !important; max-width: none !important; width: auto !important; }
  body.tsh-on #page-tasks #tasks-list { padding-top: 6px !important; }   /* место под старые вкладки больше не нужно */
  #tsh-head .tsh-add { padding: 0 10px 0 0 !important; }
  #tsh-head button { appearance: none !important; background: none !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
  #tsh-head .tsh-who { background: #1e1e21 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05) !important; }
  #tsh-head .tsh-who:hover { background: #262629 !important; }
  #tsh-head .tsh-add { border-radius: 12px !important; }
  #tsh-head .tsh-add:hover { background: rgba(255,255,255,.03) !important; }
  #tsh-head .tsh-pop button:hover { background: rgba(255,255,255,.06) !important; }
  #tsh-head .tsh-pop button.on { background: rgba(255,255,255,.09) !important; }
}

#tsh-head { padding: 26px 10px 0 10px; }
#tsh-head .tsh-s { font: 900 34px/1.22 'Nunito', system-ui, sans-serif; color: #5d5d62; letter-spacing: -.005em; max-width: 1080px; }
#tsh-head .tsh-s a { color: #f4f4f2; text-decoration: none; background-image: linear-gradient(#b9f36c, #b9f36c); background-repeat: no-repeat; background-size: 0 3px; background-position: 0 100%; transition: background-size .3s cubic-bezier(.2,.8,.2,1), color .2s; cursor: pointer; }
#tsh-head .tsh-s a:hover { color: #fff; }
#tsh-head .tsh-s a.red { color: #ff8a80; }
#tsh-head .tsh-s a.on { background-size: 100% 3px; }
#tsh-head .tsh-bar { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 16px; }
#tsh-head .tsh-who { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 4px; border-radius: 13px; background: #1e1e21; color: #c9c9cc; font: 700 13px 'Nunito', system-ui; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
#tsh-head .tsh-who:hover { background: #262629; color: #f4f4f2; }
#tsh-head .tsh-who i { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#9bd0a8,#5e8f6c) center/cover; }
#tsh-head .tsh-who[hidden] { display: none; }
#tsh-head .tsh-pop { position: absolute; left: 0; top: 42px; z-index: 30; min-width: 170px; padding: 6px; border-radius: 16px; background: linear-gradient(180deg,#252528,#1f1f22); box-shadow: 0 24px 50px -16px rgba(0,0,0,.75), inset 0 0 0 .5px rgba(255,255,255,.12); display: flex; flex-direction: column; }
#tsh-head .tsh-pop button { height: 34px; padding: 0 12px; border-radius: 10px; text-align: left; font: 600 13.5px 'Nunito', system-ui; color: #d4d4d2; }
#tsh-head .tsh-pop button:hover { background: rgba(255,255,255,.06); }
#tsh-head .tsh-pop button.on { color: #f4f4f2; background: rgba(255,255,255,.09); }
#tsh-head .tsh-add { display: flex; align-items: center; gap: 14px; width: 100%; height: 50px; margin-top: 12px; padding: 0 10px; border-radius: 12px; color: #6d6d72; font: 600 15px 'Nunito', system-ui; border-bottom: 1px solid rgba(255,255,255,.05); border-radius: 0; }
#tsh-head .tsh-add:hover { color: #c9c9cc; background: rgba(255,255,255,.03); }
#tsh-head .tsh-add .c { width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed #4a4a4f; display: grid; place-items: center; font-size: 12px; line-height: 1; }
#tsh-head .tsh-add kbd { margin-left: auto; font: 700 12px 'Nunito', system-ui; color: #5d5d62; background: #1e1e21; border-radius: 7px; padding: 3px 7px; }

/* «Просрочено» — только эта группа */
body.tsh-on #tasks-list[data-ttab="active"][data-tsh-late] > .task-group:not(.sh-late) { display: none !important; }

/* строки: высота 50, тонкая линия, название 16, значок проекта цветом проекта */
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row { min-height: 50px !important; }   /* 10.11 владелец: линии между задачами убрать */
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row .t-name { font-size: 16px !important; }
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row .t-meta { font-size: 13px !important; display: inline-flex !important; align-items: center; gap: 5px; }
/* подписи групп — с линией до края */
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-group:not(.sh-doneg) > .tg-hdr { display: flex !important; align-items: center; gap: 10px; }
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-group:not(.sh-doneg) > .tg-hdr .tg-arrow { order: 3; }
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-group:not(.sh-doneg) > .tg-hdr::after { content: ""; order: 2; flex: 1; height: 1px; background: rgba(255,255,255,.06); margin-top: 2px; }

/* кружки — один цвет, не цветом проекта: серый, при наведении светлее, готово — салатовый */
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row:hover .task-check:not(.done) { border-color: #9a9a9f !important; background: rgba(255,255,255,.05) !important; box-shadow: none !important; }
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row .task-check.done:not(.has-progress) { background: #b9f36c !important; border-color: #b9f36c !important; }

/* значок проекта — как в попапе проектов (cards-v2.css §9): серый, при наведении на строку цвет проекта заливает его снизу вверх */
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row .tsh-pi .iam-pi { display: inline-grid; width: 15px; height: 15px; place-items: center; color: var(--pc) !important; }   /* 10.11 владелец: цвет проекта всегда, не только при наведении */
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row .tsh-pi .iam-pic { width: 15px; height: 15px; fill: currentColor; }
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row .tsh-pi .iam-pi .fl { display: none !important; position: absolute; inset: 0; color: var(--pc) !important; clip-path: inset(100% 0 0 0); transition: clip-path .42s cubic-bezier(.2,.8,.2,1); }
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row:hover .tsh-pi .iam-pi .fl { clip-path: inset(0 0 0 0); }
:root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row .tsh-pi .iam-pi.em { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { :root.iam-tray body.tsh-on #app-sheet #page-tasks #tasks-list .task-row .tsh-pi .iam-pi .fl { transition: none; } }
