/* Дополнения корпоративного портала к общей дизайн-системе GRP (style.css из портала отбора) */
body.staff main.container { max-width: 1240px; padding: 28px 32px 56px; }
[hidden] { display: none !important; }

/* аватар: фото или инициалы */
.ava { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--brand-10); color: var(--brand);
  font: 700 13px/1 "Roboto", sans-serif; letter-spacing: .02em; width: 40px; height: 40px; object-fit: cover; }
.ava.md { width: 48px; height: 48px; font-size: 15px; }
.ava.lg { width: 72px; height: 72px; font-size: 22px; }
.ava.xl { width: 104px; height: 104px; font-size: 32px; }
.ava.xs { width: 22px; height: 22px; font-size: 9px; }
.ava.sm { width: 30px; height: 30px; font-size: 11px; }
.who { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.who > span { min-width: 0; }
.ava-stack { display: inline-flex; }
.ava-stack .ava { border: 2px solid #fff; box-sizing: content-box; }
.ava-stack .ava + .ava { margin-left: -6px; }

/* команда */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.member { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .12s, box-shadow .12s; min-width: 0; }
.member:hover { border-color: #C9C9D8; box-shadow: 0 4px 14px -8px rgba(11,10,46,.25); color: var(--ink); }
.member-txt { display: grid; gap: 2px; min-width: 0; }
.member-txt b { font-weight: 500; }
.member-pos { color: var(--brand); font-weight: 500; margin: 0; }
.person-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.person-head h1 { margin: 0 0 4px; }
.person-head p { margin: 0 0 10px; }

/* главная */
.bday-today { display: flex; gap: 18px; align-items: center; padding: 20px 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--brand-10), var(--teal-10)); border: 1px solid var(--brand-20); }
.bday-today .eyebrow { margin: 0 0 2px; }
.bday-name { font: 700 24px/1.25 "PT Serif", serif; color: var(--brand-ink); text-decoration: none; }
.bday-today p { margin: 2px 0 0; }
.home-block .row-link { grid-template-columns: 1fr auto auto; }

/* анкета */
.two, .three { display: grid; gap: 0 16px; }
.two { grid-template-columns: 1fr 1fr; } .three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 700px) { .two, .three { grid-template-columns: 1fr; } }
.photo-row { display: flex; gap: 18px; align-items: center; }
.photo-row .field { flex: 1; }
.hide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 16px; }
.hide-list .checkbox { margin: 8px 0; }
.profile-form h2 { margin-top: 32px; }
select:disabled { background: var(--line-2); color: var(--faint); }

/* роли и доступ */
select.compact { width: auto; padding: 6px 9px; font-size: 14px; }
.rights-scroll { overflow-x: auto; }
.rights td.c, .rights th.c { text-align: center; white-space: normal; min-width: 96px; }
.rights .yes { color: var(--teal); font-weight: 700; }
.rights input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.access-add { grid-template-columns: 1.4fr 1fr auto; }
.role-add { grid-template-columns: 1fr auto; margin-top: 12px; }
@media (max-width: 800px) { .access-add, .role-add { grid-template-columns: 1fr; } }
.role-list { list-style: none; padding: 0; margin: 0; }
.role-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); }
.role-list li > span:first-child { flex: 1; }
input[type=date], input[type=time], input[type=number] { width: 100%; max-width: 240px; padding: 11px 13px; border: 1px solid #D5D5E0; border-radius: var(--radius-s);
  background: #fff; color: var(--ink); font: 400 15px/1.4 "Roboto", sans-serif; }
input[type=date]:focus, input[type=time]:focus, input[type=number]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-10); }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.rights td:first-child { min-width: 280px; }
.people td select.compact { max-width: 230px; }
.people td.acts { white-space: normal; min-width: 210px; }
.people td.acts form { display: flex; gap: 6px; flex-wrap: wrap; }
body.staff.wide main.container { max-width: none; }

/* корпоративная почта */
.mbox { padding: 20px 24px; margin-bottom: 12px; }
.mbox-who { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.mbox-form { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px; align-items: end; }
.mbox-form .field { margin: 12px 0 0; }
.mbox p { margin: 8px 0 0; }
@media (max-width: 800px) { .mbox-form { grid-template-columns: 1fr; } }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { font-size: 15px; padding: 8px 10px; border-radius: var(--radius-s); background: var(--brand-06); user-select: all; word-break: break-all; }

/* проекты */
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.proj-head h1 { margin: 0 0 4px; }
.proj-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.finish-dialog { border: 0; border-radius: var(--radius); padding: 22px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(10, 8, 80, .25); }
.finish-dialog::backdrop { background: rgba(10, 8, 80, .45); }
.finish-list { padding-left: 18px; margin: 12px 0; color: var(--ink-2); }
.finish-tasks { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 14px 10px; margin: 0 0 14px; }
.finish-tasks legend { font-weight: 500; padding: 0 4px; }
.finish-dialog .qc-acts { display: flex; justify-content: flex-end; gap: 8px; }
/* Полоса вкладок: не помещается — листается вбок, но без полосы прокрутки. Нижняя линия — тенью, а не рамкой с
   margin-bottom: -1px у вкладок: тот 1 px вылезал за край, и Windows рисовала бесполезную вертикальную прокрутку. */
.tabs-nav { display: flex; gap: 22px; box-shadow: inset 0 -1px 0 var(--line); margin: 14px 0 18px; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; }
.tabs-nav a { padding: 10px 0; font: 500 14.5px "Roboto"; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap; }
.tabs { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); overflow-y: hidden; scrollbar-width: none; }
.tabs button { margin-bottom: 0; }
.tabs-nav::-webkit-scrollbar, .tabs::-webkit-scrollbar, .set-tabs::-webkit-scrollbar { display: none; }
.tabs-nav a:hover { color: var(--brand); }
.tabs-nav a.active { color: var(--brand-ink); border-bottom-color: var(--brand); }
/* телефон: вкладки переносятся на следующую строку, а не уезжают за край */
@media (max-width: 700px) {
  .tabs-nav, .tabs { flex-wrap: wrap; gap: 0 18px; overflow: visible; }
  .tabs-nav a, .tabs button { padding: 8px 0; }
  .subtabs { flex-wrap: wrap; max-width: 100%; }
  .subtabs a { padding: 7px 11px; }
  .role-list li { flex-wrap: wrap; gap: 4px 12px; }
  .role-list li > span:first-child { flex-basis: 100%; }
  .role-list li > .muted { white-space: nowrap; }
  .set-table { display: block; overflow-x: auto; }
}
.add-box { padding: 16px 22px; }
.add-box summary { cursor: pointer; color: var(--brand); list-style: none; }
.add-box summary::-webkit-details-marker { display: none; }
.task-grid { display: grid; grid-template-columns: 2fr 1fr 270px; gap: 0 14px; }
@media (max-width: 800px) { .task-grid { grid-template-columns: 1fr; } }
table.archive tr.done td { color: var(--faint); }
table.archive tr.done a { color: var(--faint); text-decoration: line-through; }
.overdue { color: var(--danger); font-weight: 500; }
.task-layout, .two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .task-layout, .two-col { grid-template-columns: 1fr; } }
.task-layout .card, .two-col .card { padding: 22px 24px; }
.comment { border-top: 1px solid var(--line-2); padding: 10px 0; }
.comment p { margin: 4px 0 0; }
.status-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.files-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
@media (max-width: 800px) { .files-layout { grid-template-columns: 1fr; } }
.folders { display: grid; gap: 2px; }
.folders a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink-2);
  text-decoration: none; font-size: 14.5px; }
.folders a:hover { background: var(--brand-06); }
.folders a.active { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--brand-ink); font-weight: 500; }
.danger-link { color: var(--danger) !important; }
select[multiple] { padding: 6px; }

/* стаффинг */
.staff-grid th.c, .staff-grid td.c { text-align: center; padding: 8px 4px; min-width: 52px; }
.staff-grid th.now { color: var(--brand); }
.staff-grid td.load { font-size: 12.5px; font-weight: 500; }
.staff-grid td.l1 { background: var(--brand-06); color: var(--brand-ink); }
.staff-grid td.away { background: repeating-linear-gradient(135deg, #EEEEF3 0 6px, #F6F6F9 6px 12px); color: var(--muted); font-weight: 400; }
.staff-grid td.l50 { background: var(--brand-10); color: var(--brand-ink); }
.staff-grid td.l100 { background: var(--brand-20); color: var(--brand-ink); }
.staff-grid td.over { background: var(--danger-10); color: var(--danger); }

/* заявки */
.mb { margin-bottom: 14px; }
.two-kpi { grid-template-columns: 1fr 1fr; }
.leave-card { padding: 18px 22px; margin-bottom: 10px; }
.leave-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.appr { list-style: none; padding: 0; margin: 10px 0 0; }
.appr li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 0; font-size: 14.5px; }
.proof-form, .decide-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.decide-form input[type=text] { width: auto; flex: 1; min-width: 180px; padding: 7px 10px; font-size: 14px; }
.proof-form input[type=file] { width: auto; padding: 6px; font-size: 13px; }

/* новости и планы */
.news-feed { display: grid; gap: 14px; max-width: 760px; }
.news-item { padding: 24px 28px; }
.news-img { display: block; max-width: 100%; border-radius: var(--radius-s); margin: 10px 0; }
.news-text p { margin: 0 0 10px; }
.reactions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.react { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 10px; font-size: 15px; cursor: pointer; }
.react span { font-size: 13px; color: var(--ink-2); }
.react.zero { opacity: .45; } .react.zero:hover { opacity: 1; }
.react.mine { border-color: var(--brand); background: var(--brand-06); }
.goals { list-style: none; padding: 0; margin: 0; }
.goal { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.goal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.goal.done .goal-dot { background: var(--teal); } .goal.postponed .goal-dot { background: #D9A441; }
.goal.done b { color: var(--muted); }
@media (max-width: 600px) { .goal { grid-template-columns: 12px 1fr; } .goal > span:nth-child(n+3) { grid-column: 2; } }

/* главная */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.home-block { padding: 20px 22px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.task-row, .event-row { grid-template-columns: 1fr auto auto; }
.event-row { grid-template-columns: 96px 1fr auto; }
.ev-when { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ev-kind { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--brand); }
.ev-kind.task { background: #D9A441; } .ev-kind.project { background: var(--teal); }

/* уведомления */
.notif { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none; }
.notif:hover { background: #FAFAFC; }
.notif.unread { background: var(--brand-06); }
.notif .when { color: var(--faint); font-size: 13px; }

/* оценки (ФОС), выплаты, грейды */
.fos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .fos-layout { grid-template-columns: 1fr; } }
.side-card { padding: 18px 20px; margin-bottom: 12px; }
.fos-head { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0 0 16px; padding: 16px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); }
.fos-head dt { color: var(--muted); font-size: 14px; } .fos-head dd { margin: 0; font-weight: 500; }
.fos-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.fos-block { padding: 18px 22px; margin-bottom: 12px; }
.fos-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.fos-row textarea { grid-column: 1 / -1; min-height: 38px; padding: 8px 10px; font-size: 14px; }
.fos-row.has-error textarea { border-color: var(--danger); }
.fos-row .error { grid-column: 1 / -1; margin: 0; }
.fos-row.view { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
.fos-score { font: 700 20px "PT Serif", serif; color: var(--brand-ink); text-align: center; }
.fos-comment { font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.fos-scale span { width: 40px; height: 36px; }
@media (max-width: 700px) { .fos-row, .fos-row.view { grid-template-columns: 1fr; } }
.fos-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi .v.small-v { font-size: 18px; line-height: 1.3; }
.payout-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.payout-form .field { margin: 0; }
@media (max-width: 900px) { .payout-form { grid-template-columns: 1fr; } }
input[type=month] { width: 100%; max-width: 240px; padding: 11px 13px; border: 1px solid #D5D5E0; border-radius: var(--radius-s);
  background: #fff; color: var(--ink); font: 400 15px/1.4 "Roboto", sans-serif; }
.pct-input { width: 76px !important; padding: 6px 8px !important; font-size: 14px !important; }
.pct-input.rate-input { width: 104px !important; }
.note-input { width: 150px !important; padding: 6px 8px !important; font-size: 14px !important; }
.grade-name { width: 220px !important; padding: 6px 9px !important; font-size: 14px !important; }
.date-s { width: 150px !important; padding: 6px 8px !important; font-size: 14px !important; }
.mt-s { margin-top: 6px; }
tr.unmapped td:first-child { color: var(--warn); font-weight: 500; }
.narrow-field { max-width: 420px; }
.note.error { background: var(--danger-10); color: var(--danger); margin: 10px 0; }


/* Роли и доступ: переименование роли */
.role-rename { display: inline-block; }
.role-rename > summary { list-style: none; cursor: pointer; }
.role-rename > summary::-webkit-details-marker { display: none; }
.role-rename[open] > summary { display: none; }
.role-rename form { display: inline-flex; gap: 6px; align-items: center; }
.role-rename input[type=text] { width: 260px; max-width: 60vw; }

/* Канбан-доска задач */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 12px; }
@media (max-width: 1200px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr; } }
.kcol { background: var(--line-2); border-radius: var(--radius); padding: 12px; min-height: 140px; transition: box-shadow .15s; }
.kcol.drop { box-shadow: inset 0 0 0 2px var(--brand-20); background: var(--brand-06); }
.kcol-head { font: 500 14px/1.3 "Roboto", sans-serif; color: var(--brand-ink); margin: 2px 4px 10px; }
.kcol-note { margin: -6px 4px 10px; }
.kcol-cards { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcol-empty { margin: 8px 4px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; cursor: grab;
  display: flex; flex-direction: column; gap: 5px; }
.kcard:hover { border-color: var(--brand-20); }
.kcard.late { border-left: 3px solid var(--danger); }
.kcard.dragging { opacity: .5; }
.kcard-title { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35; }
.kcard-title:hover { color: var(--brand); text-decoration: underline; }
.kcard-project { color: var(--brand); }
.kcard-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-2); }
.kcard-chip { align-self: flex-start; }
.kcard-move select.compact { font-size: 12.5px; padding: 3px 6px; }
.js .kanban .kcard-move { display: none; }
@media (hover: none) { .js .kanban .kcard-move { display: block; } .kcard { cursor: default; } }

/* Таймлайн стаффинга */
.tl-card { overflow-x: auto; }
.tl { min-width: 760px; }
.tl-head, .tl-row { display: flex; border-top: 1px solid var(--line-2); }
.tl-head { border-top: 0; font-size: 12px; color: var(--muted); }
.tl-name { flex: none; width: 210px; padding: 10px 14px; font-size: 14px; }
.tl-head .tl-name { padding: 8px 14px; font-size: 12px; }
.tl-track { position: relative; flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; min-height: 40px; padding: 6px 0; }
.tl-head .tl-track { padding: 0; }
.tl-col { padding: 8px 4px; border-left: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; }
.tl-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line-2); }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); opacity: .55; z-index: 0; }
.tl-lane { position: relative; flex-basis: 100%; height: 26px; margin: 2px 0; }
.tl-bar { position: absolute; top: 0; height: 24px; border-radius: 6px; padding: 0 8px; font-size: 12px; line-height: 24px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 6px; box-sizing: border-box; z-index: 1; }
.tl-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tl-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tl-bar.ext { background: #2E7D32; }
.tl-bar.int { background: #A9C4F5; color: #0B2A66; box-shadow: inset 0 0 0 1px rgba(21, 101, 192, .25); }
.tl-bar.leave { background: #DCDCE4; color: #4A4A5E; }
a.tl-bar.leave:hover { background: #CACAD6; color: #4A4A5E; }
a.tl-bar { text-decoration: none; cursor: pointer; } a.tl-bar:hover { filter: brightness(1.12); color: #fff; }
a.tl-bar.int:hover { filter: brightness(.95); color: #0B2A66; } .tl-bar.int .tl-handle { background: rgba(11, 42, 102, .15); }
.tl-handle { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: ew-resize; background: rgba(255,255,255,.25); }
.tl-bar.resizing { outline: 2px solid var(--brand-ink); z-index: 3; }
/* свободные дни — бледная штриховка: заметно, но не заливает таблицу */
.tl-free-band { position: absolute; top: 0; bottom: 0; z-index: 0;
  background: repeating-linear-gradient(135deg, rgba(198, 40, 40, .10) 0 2px, transparent 2px 7px); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 4px; color: var(--ink-2); }
.tl-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tl-key { display: inline-block; width: 22px; height: 10px; border-radius: 3px; }
.tl-key.ext { background: #2E7D32; } .tl-key.int { background: #A9C4F5; } .tl-key.leave { background: #DCDCE4; }
.tl-key.free { background: repeating-linear-gradient(135deg, rgba(198, 40, 40, .35) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px rgba(198, 40, 40, .25); }
.tl-empty { padding: 4px 8px; align-self: center; }
.two-col .tl { min-width: 520px; }
.two-col .tl-name { width: 150px; }

/* Настройки уведомлений о задачах */
.notify-form h2:not(.mt0) { margin-top: 26px; }
.notify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; align-items: end; }
@media (max-width: 700px) { .notify-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; margin: 6px 0; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; margin: 0; }
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-list.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tg-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tg-actions { display: flex; gap: 12px; align-items: center; }
.two-col .tl-col { font-size: 10px; padding: 8px 2px; }

/* панель форматирования текста (чат, резюме) */
.fmt-bar { position: relative; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-bottom: 4px; }
.fmt-bar button { min-width: 32px; height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: none;
  cursor: pointer; font: 14px/1 "Roboto", sans-serif; color: var(--ink-2); }
.fmt-bar button:hover { background: var(--brand-06); color: var(--brand); border-color: var(--brand-10); }
.fmt-hint { margin-left: auto; font-size: 12px; color: var(--faint); }
.emoji-pop { position: absolute; left: 0; bottom: 32px; z-index: 20; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px;
  padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px -10px rgba(11,10,46,.35); }
.emoji-pop button { width: 34px; height: 32px; font-size: 19px; padding: 0; }
.rich ul { margin: 4px 0; padding-left: 20px; }
.rich p { margin: 0 0 6px; }

/* статус «в сети» */
.ava-wrap { position: relative; display: inline-flex; flex: none; }
.online-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #2BA84A;
  border: 2px solid #fff; }
.ava-wrap .ava.lg + .online-dot, .ava-wrap .ava.xl + .online-dot { width: 16px; height: 16px; right: 3px; bottom: 3px; border-width: 3px; }
.presence { font-size: 13px; color: var(--muted); }
.presence.on { color: #2BA84A; }
.resume-view h3 { font-size: 15px; margin: 14px 0 4px; }
.resume-view ul { margin: 0; }
.two-col-plain { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 700px) { .two-col-plain { grid-template-columns: 1fr; } }

/* календарь встреч */
.cal { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-row + .cal-row { border-top: 1px solid var(--line-2); }
.cal-head div { padding: 8px 10px; font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-day { min-height: 96px; padding: 6px 6px 8px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:first-child { border-left: 0; }
.cal-week .cal-day { min-height: 260px; }
.cal-day.weekend { background: #FAFAFC; }
.cal-day.other .cal-date { color: var(--faint); }
.cal-date { font-size: 13px; color: var(--ink-2); padding: 2px 4px; }
.cal-day.today .cal-date { color: #fff; background: var(--brand); border-radius: 12px; align-self: flex-start; padding: 2px 8px; }
.cal-ev { display: block; font-size: 12.5px; line-height: 1.3; padding: 3px 6px; border-radius: 5px; background: var(--brand-06);
  color: var(--brand-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-week .cal-ev { white-space: normal; }
.cal-ev:hover { background: var(--brand-10); color: var(--brand); }
@media (max-width: 700px) {
  .cal-month .cal-day { min-height: 64px; padding: 4px 2px; }
  .cal-month .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; background: var(--brand); }
  .cal-week .cal-row { grid-template-columns: 1fr; } .cal-week .cal-head { display: none; }
  .cal-week .cal-day { min-height: 0; border-left: 0; border-top: 1px solid var(--line-2); }
}
.block-links { display: flex; gap: 14px; }
.tpl-top { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: end; }
.tpl-top p { margin: 0 0 18px; }
.tpl-people { columns: 2; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin-top: 8px; }
.tpl-people label { break-inside: avoid; display: flex; gap: 10px; align-items: center; padding: 5px 0; cursor: pointer; }
.tpl-people input { width: 17px; height: 17px; accent-color: var(--brand); }
.tpl-tools { margin-top: 6px; }
@media (max-width: 700px) { .tpl-top { grid-template-columns: 1fr; } .tpl-people { columns: 1; } }
.decision-note { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; min-width: 260px; }
.rich-field .fmt-bar { margin: -2px 0 4px; }

/* --- Задачи как в YouGile: цвета колонок, меток и карточек ------------------------------------------ */
.c-grey { --c: #6F6F85; --cbg: #EEEEF3; } .c-blue { --c: #2F5BD8; --cbg: #E6EDFC; } .c-teal { --c: #0B8A8F; --cbg: #E0F2F2; }
.c-green { --c: #2E8540; --cbg: #E4F3E7; } .c-yellow { --c: #A07800; --cbg: #FBF3D6; } .c-orange { --c: #C25E12; --cbg: #FCEADB; }
.c-red { --c: #B3261E; --cbg: #FBE4E2; } .c-purple { --c: #6B3FC4; --cbg: #EEE7FA; } .c-pink { --c: #B8326E; --cbg: #FAE3EE; }
.c-none { --c: #C9C9D6; --cbg: #fff; }
.c-brand { --c: #0F02BE; --cbg: #E9E8FB; }
.color-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.color-opt { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13.5px; background: #fff; }
.color-opt input { position: absolute; opacity: 0; pointer-events: none; }
.color-opt:has(input:checked) { border-color: var(--c); box-shadow: 0 0 0 2px var(--cbg); font-weight: 500; }
.color-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }
.label { display: inline-block; font-size: 11.5px; line-height: 1.5; padding: 0 7px; border-radius: 9px; background: var(--cbg, var(--line-2)); color: var(--c, var(--ink-2)); font-weight: 500; white-space: nowrap; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.col-chip { display: inline-block; padding: 0 7px; border-radius: 9px; background: var(--cbg, var(--line-2)); color: var(--c, var(--ink-2)); font-weight: 500; }
.proj-code { font: 500 13px/1 "Roboto", sans-serif; letter-spacing: .04em; padding: 3px 7px; border-radius: 5px; background: var(--brand-06); color: var(--brand); vertical-align: middle; }
.name-code { display: grid; grid-template-columns: 1fr 160px; gap: 0 14px; }
@media (max-width: 600px) { .name-code { grid-template-columns: 1fr; } }

.kanban-cols { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; padding-bottom: 6px; }
@media (max-width: 900px) { .kanban-cols { grid-auto-flow: row; grid-auto-columns: auto; } }
.kcol[class*=" c-"] { border-top: 3px solid var(--c); }
.kcol-head { display: flex; gap: 6px; align-items: baseline; }
.kcol-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kcol-add { margin: 10px 0 0; }
.kcol-add input { width: 100%; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px dashed transparent; border-radius: var(--radius-s); background: transparent; color: var(--ink); }
.kcol-add input::placeholder { color: var(--muted); }
.kcol-add input:hover { background: rgba(255, 255, 255, .6); }
.kcol-add input:focus { outline: none; background: #fff; border: 1px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-10); }
.kcard { cursor: pointer; }
.kcard.tinted { border-left: 4px solid var(--c); background: linear-gradient(90deg, var(--cbg), #fff 60%); }
.kcard.late { border-left: 3px solid var(--danger); }
.kcard.is-done .kcard-title { color: var(--muted); }
.kcard.is-cancel .kcard-title { color: var(--muted); text-decoration: line-through; }
.kcard-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 18px; }
.kcard-code { color: var(--faint); font-size: 11.5px; letter-spacing: .02em; }
.prio { font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.prio.p3 { color: var(--danger); } .prio.p2 { color: #C25E12; } .prio.p0 { color: var(--faint); font-weight: 400; }
.kcard-labels { display: flex; flex-wrap: wrap; gap: 3px; }
.check-ok { color: var(--teal); font-weight: 500; }

.task-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.task-filters input[type=search] { flex: 1 1 240px; max-width: 360px; font: inherit; font-size: 14px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.task-filters input[type=search]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-10); }

/* Панель задачи поверх доски */
.task-panel { position: fixed; inset: 0; z-index: 1100; }
.task-panel-bg { position: absolute; inset: 0; background: rgba(11, 10, 46, .35); }
.task-panel-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(1000px, 94vw); display: flex; flex-direction: column;
  background: var(--bg); box-shadow: -12px 0 40px -16px rgba(11, 10, 46, .45); animation: panel-in .18s ease-out; }
@keyframes panel-in { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.task-panel-bar { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.task-panel-box iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
body.panel-open { overflow: hidden; }
@media (max-width: 700px) { .task-panel-box { width: 100vw; } }

/* Карточка задачи (страница и панель) */
body.embed main.embed-main { max-width: none; padding: 14px 18px 30px; }
.task-title-box h2 { margin: 4px 0 2px; }
.task-code { color: var(--ink-2); letter-spacing: .02em; }
.task-page .task-layout { grid-template-columns: minmax(0, 1fr) 340px; margin-top: 10px; }
@media (max-width: 860px) { .task-page .task-layout { grid-template-columns: 1fr; } }
.task-main { display: grid; gap: 14px; min-width: 0; }
.task-page .task-layout .card { padding: 16px 18px; }
.task-desc { overflow-wrap: anywhere; }
.task-fields .field { margin-top: 10px; }
.task-fields .two { gap: 0 10px; }
.checks-field .check-list { display: grid; gap: 0; max-height: 220px; overflow-y: auto; }
.checks-field .checkbox { margin: 4px 0; font-size: 14px; gap: 8px; }
.checklist { list-style: none; margin: 6px 0 10px; padding: 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line-2); }
.checklist li:first-child { border-top: 0; }
.checklist form { margin: 0; }
.check-box { width: 20px; height: 20px; padding: 0; border: 1.5px solid var(--faint); border-radius: 5px; background: #fff; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.check-box:hover { border-color: var(--brand); }
.checklist li.done .check-box { background: var(--teal); border-color: var(--teal); }
.checklist li.done .check-text { color: var(--muted); text-decoration: line-through; }
.check-text { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14.5px; }
.check-del { opacity: 0; } .checklist li:hover .check-del, .check-del:focus-within { opacity: 1; }
@media (hover: none) { .check-del { opacity: 1; } }
.check-add { display: flex; gap: 8px; align-items: flex-start; }
.check-add textarea { flex: 1; font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; min-height: 34px; }
.task-chat-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.task-chat-acts { display: flex; gap: 6px; align-items: center; }
.task-chat-acts form { margin: 0; }
.setup-list { display: grid; margin: 10px 0; }
.setup-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.setup-line:first-child { border-top: 0; }
.setup-row.grow { flex: 1 1 420px; }
.setup-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.setup-row input[name=title] { font: inherit; font-size: 14px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; min-width: 180px; }
form.inline { display: inline-flex; gap: 2px; margin: 0; }

/* --- Срок с временем, просрочка ------------------------------------------------------------------ */
.due-pair, .field > span.due-pair { display: flex; gap: 8px; font-weight: 400; margin: 0; }
.due-pair input[type=date] { flex: 1 1 auto; min-width: 0; }
.due-pair input[type=time] { flex: 0 0 auto; width: 7.2em; }
.kcard.late { border-left: 4px solid var(--danger); background: #FFF6F4; }
.kcard.late.tinted { background: linear-gradient(90deg, #FDE7E3, #fff 60%); }
table.tasks tr.late td { background: #FFF6F4; }
table.tasks tr.late td:first-child { box-shadow: inset 4px 0 0 var(--danger); }

/* --- Кружок проекта: картинка или буквы в цвете проекта ---------------------------------------------- */
.pava { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%;
  background: var(--cbg, var(--brand-06)); color: var(--c, var(--brand)); font: 600 12px/1 "Roboto", sans-serif;
  object-fit: cover; vertical-align: middle; overflow: hidden; }
.pava.xs { width: 18px; height: 18px; font-size: 8px; }
.pava.sm { width: 24px; height: 24px; font-size: 10px; }
.pava.md { width: 36px; height: 36px; font-size: 13px; }
.pava.lg { width: 56px; height: 56px; font-size: 19px; }
.pava.dim { opacity: .45; filter: grayscale(.6); }
.proj-head { justify-content: flex-start; align-items: center; }
.proj-head .grow { flex: 1; min-width: 0; }
.proj-short { font: 500 13px/1 "Roboto", sans-serif; padding: 3px 8px; border-radius: 5px; background: var(--line-2); color: var(--ink-2); vertical-align: middle; }
.proj-cell { display: flex; gap: 12px; align-items: flex-start; }
.kcard-project .pava { margin-right: 3px; }

/* --- Главная: два ровных ряда по три карточки ---------------------------------------------------- */
.home-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .home-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .home-row { grid-template-columns: minmax(0, 1fr); } }
.home-row > .home-block { display: flex; flex-direction: column; padding: 18px 20px 14px; min-height: 0; }
@media (min-width: 701px) { .home-main > .home-block { min-height: 330px; } }
.block-head .linklike { font-size: 13px; }
.home-low > .home-block { min-height: 0; }
.home-block .block-head { margin-bottom: 8px; align-items: center; }
.home-block .block-head h2 { margin: 0; font-size: 19px; }
.home-block .block-head form { margin: 0; }
.home-list { flex: 1; display: flex; flex-direction: column; }
.home-empty { margin: 4px 0; }
.home-more { margin-top: 8px; align-self: flex-start; }
.home-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 7px 6px; margin: 0 -6px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; min-height: 40px; }
a.home-item:hover, .home-item a.hi-main:hover .hi-title { background: var(--line-2); }
.home-item + .home-item { border-top: 1px solid var(--line-2); }
/* поиск из шапки: строки во всю ширину карточки, с отступами как у заголовка группы; .plain — без значка слева */
.search-row { margin: 0; padding: 9px 20px; border-radius: 0; }
.search-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.search-row.plain { grid-template-columns: minmax(0, 1fr) auto; }
.home-item .hi-main { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.hi-title { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-side { font-size: 12.5px; text-align: right; white-space: nowrap; color: var(--muted); }
.hi-side.overdue { color: var(--danger); }
.hi-time { font: 500 13px "Roboto", sans-serif; color: var(--ink-2); min-width: 38px; }
.home-item.late { box-shadow: inset 3px 0 0 var(--danger); padding-left: 10px; }
.home-item.meet.now { background: var(--teal-10); }
.home-day { font: 600 11.5px "Roboto", sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 2px; }
.home-day:first-child { margin-top: 0; }
.note-item .hi-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.note-item.unread .hi-dot { background: var(--brand); }
.note-item.unread .hi-title { font-weight: 600; }
.note-item:not(.unread) .hi-title { color: var(--ink-2); }
.count-pill { display: inline-block; min-width: 20px; padding: 2px 7px; border-radius: 10px; background: var(--brand); color: #fff; font: 600 12px/1.2 "Roboto", sans-serif; vertical-align: middle; text-align: center; }
.home-item .goal-dot { width: 8px; height: 8px; }
.goal-dot.done { background: var(--teal); } .goal-dot.postponed { background: #D9A441; }
.home-low .home-item { min-height: 32px; padding-top: 5px; padding-bottom: 5px; }
.home-low .hi-title { font-size: 14px; }

/* --- Профиль и мастер первого входа -------------------------------------------------------------- */
.radio-set { border: 0; padding: 0; margin: 0 0 16px; }
.radio-set legend { font-weight: 500; margin-bottom: 6px; padding: 0; }
.radio-set .checkbox { display: flex; margin: 4px 0; }
.narrow-form { max-width: 420px; }
.setup-wrap { max-width: 780px; margin: 0 auto; }
.setup-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 6px 0 16px; flex-wrap: wrap; }
.setup-steps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--line-2); }
.setup-steps li span { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; font-weight: 600; font-size: 11.5px; }
.setup-steps li.cur { background: var(--brand); color: #fff; }
.setup-steps li.cur span { color: var(--brand); }
.setup-steps li.ok { background: var(--teal-10); color: var(--teal); }
@media (max-width: 600px) { .setup-steps li:not(.cur) { font-size: 0; padding: 4px; gap: 0; } .setup-steps li:not(.cur) span { font-size: 11.5px; } }
.setup-card { padding: 28px 32px; }
.setup-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.setup-nav form { margin: 0; }
.setup-list-plain { padding-left: 4px; list-style: none; }
.setup-list-plain li { margin: 4px 0; }
.setup-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .setup-tips { grid-template-columns: minmax(0, 1fr); } .setup-card { padding: 22px 18px; } }
.setup-tips div { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.setup-tips span { color: var(--ink-2); font-size: 14px; }

/* --- Трекер времени в шапке ------------------------------------------------------------------------ */
.tt-today { flex: none; display: flex; align-items: center; gap: 5px; height: 40px; box-sizing: border-box; padding: 0 12px; white-space: nowrap;
  border-radius: 10px; border: 1px solid #D5D5E0; background: #fff; color: #0B0A2E; font-size: 14px; text-decoration: none; }
.tt-today b { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 500; }
.tt-today:hover { border-color: #0F02BE; color: #0F02BE; text-decoration: none; }
.tt-today-l { color: var(--muted); }
@media (max-width: 700px) { .tt-today-l { display: none; } .tt-today { padding: 0 10px; } }
.tt { position: relative; flex: none; }
.tt summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; height: 40px; box-sizing: border-box;
  color: #0B0A2E; padding: 0 14px; border-radius: 10px; border: 1px solid #D5D5E0; background: #fff; font-size: 14px; font-weight: 500; }
.tt summary::-webkit-details-marker { display: none; }
.tt summary:hover, .tt[open] summary { border-color: #0F02BE; color: #0F02BE; }
.tt-play { width: 11px; height: 11px; fill: currentColor; }
.tt.on summary { background: #1D7A46; border-color: #1D7A46; color: #fff; }
.tt.on summary:hover, .tt.on[open] summary { background: #18683B; color: #fff; }
.tt.on.call summary { background: #7B3FB0; border-color: #7B3FB0; color: #fff; }
.tt.on.site summary { background: #9A5B00; border-color: #9A5B00; color: #fff; }
.tt.site .tt-dot { background: #FFD89A; }
.tt.ask summary { background: #B4520E; border-color: #B4520E; color: #fff; }
.tt .tt-play { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.tt-dot { width: 8px; height: 8px; border-radius: 50%; background: #9BE7B4; }
.tt.call .tt-dot { background: #E2C7FA; }
.tt-kind { opacity: .85; }
.tt-clock { font-variant-numeric: tabular-nums; font-size: 15px; }
.tt-proj { max-width: 14em; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.tt-aw { width: 8px; height: 8px; border-radius: 50%; display: none; }
.tt.work.aw-bad .tt-aw { display: inline-block; background: #FFB020; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.tt-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 320px; padding: 14px; display: grid; gap: 10px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(11, 10, 46, .35);
  font-weight: 400; }
.tt-menu a { color: var(--brand); }
.tt-menu .field { margin: 0; }
.tt-menu .field > span { font-size: 13px; margin-bottom: 4px; }
.tt-menu select { width: 100%; }
.tt-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tt-now { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.tt-ask { background: #FFF4E5; border-radius: 8px; padding: 10px; display: grid; gap: 8px; }
.tt-answers { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-aw-note { color: #8A4B00; background: #FFF4E5; padding: 8px 10px; border-radius: 6px; margin: 0; }
.tt-menu form { display: grid; }
@media (max-width: 1200px) { .tt-proj, .tt-kind { display: none; } }
@media (max-width: 900px) { .tt-menu { right: -90px; width: min(320px, 92vw); } }

/* --- Учёт времени: страницы ----------------------------------------------------------------------- */
.tt-setup summary { cursor: pointer; }
.tt-howto ol { padding-left: 20px; } .tt-howto li { margin: 8px 0; }
.tt-howto .subtabs { margin: 10px 0 4px; }
.tt-rules li { margin: 4px 0; }
.tt-week th.num, .tt-week td.num, table.archive td.num, table.archive th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tt-week th.today { color: var(--brand); }
.tt-week tfoot td { border-top: 2px solid var(--line); }
.tt-callmark { font-size: 10px; margin-left: 2px; }
.tt-week-head { align-items: baseline; padding: 18px 20px 4px; }
.tt-session { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.tt-session:first-of-type { border-top: 0; }
.tt-extra-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px 190px; gap: 0 12px; }
.tt-hm { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
@media (max-width: 800px) { .tt-extra-grid { grid-template-columns: minmax(0, 1fr); } }
.tt-proj-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 18px; }
.tt-decide { display: grid; gap: 6px; min-width: 220px; }
.tt-decide input[type=number] { width: 70px; }
.archive-card > h2.mt0 { padding: 18px 20px 4px; margin: 0; }
.tt-cfg { margin: 8px 0 4px; }
.tt-cmd code { white-space: normal; word-break: break-all; font-size: 12px; }

/* === Единый вид: скругления, шрифты, кнопки, поля, таблицы ============================================ */
:root { --radius: 12px; --radius-s: 8px; }
body { font-size: 15px; line-height: 1.55; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 20px; line-height: 1.3; margin: 26px 0 10px; }
h3 { font-size: 16.5px; line-height: 1.35; margin: 18px 0 8px; }
.small { font-size: 13px; }
.card { border-color: var(--line); }
.btn { font-size: 14.5px; padding: 9px 16px; border-radius: var(--radius-s); border-color: #D5D5E0; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn.wide { padding: 12px 18px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=url], input[type=search],
input[type=datetime-local], input[type=file], input[type=date], input[type=time], input[type=number], input[type=month],
textarea, select { padding: 9px 12px; font-size: 14.5px; border-radius: var(--radius-s); border-color: #D5D5E0; }
select.compact { padding: 6px 10px; font-size: 13.5px; }
.field > span { font-size: 14px; margin-bottom: 6px; }
.chip { font-size: 12px; }
table.archive th { font-size: 12px; text-transform: none; color: var(--muted); background: #FAFAFC; }
table.archive td { font-size: 14px; }
.board-head h1 { margin-bottom: 0; }
.board-head { margin-bottom: 18px; }

/* широкие экраны: контент шире, доски — во всю ширину */
/* большие экраны: контент на всю ширину справа от панели (у форм и текстов свои узкие карточки) */
@media (min-width: 1800px) {
  body.staff main.container { max-width: none; margin: 0; padding: 32px 48px 64px; }
  .home-main > .home-block { min-height: 380px; }
}
@media (max-width: 700px) { body.staff main.container { padding: 20px 14px 40px; } h1 { font-size: 24px; } }

/* Окно выбора области картинки (core/static/core/crop.js) */
.crop-dialog { border: 0; border-radius: var(--radius); padding: 18px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(10, 8, 80, .25); }
.crop-dialog::backdrop { background: rgba(10, 8, 80, .45); }
.crop-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.crop-stage { height: min(420px, 60vh); background: #f3f4f8; border-radius: var(--radius-s); overflow: hidden; }
.crop-stage img { display: block; max-width: 100%; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); }
.crop-zoom input { flex: 1; }
.crop-acts { display: flex; justify-content: flex-end; gap: 8px; }
.crop-dialog.round .cropper-view-box, .crop-dialog.round .cropper-face { border-radius: 50%; }
.crop-dialog .cropper-view-box { outline: 2px solid #fff; outline-color: rgba(255, 255, 255, .9); }
.crop-dialog .cropper-modal { background: #0a0850; opacity: .55; }
.crop-edit { margin-top: 6px; }
.crop-preview { display: block; max-width: 100%; border-radius: var(--radius-s); }
.resume-photo { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.resume-photo img { border-radius: 6px; border: 1px solid var(--line); }

/* Проекты до GRP (resumes/_past.html) */
.past-list { display: grid; gap: 10px; margin: 12px 0; }
.past-card { padding: 14px 16px; }
.past-card.editing { outline: 2px solid var(--brand); }
.past-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.past-acts { display: flex; gap: 4px; flex: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chips-row .chip { white-space: normal; }
.chips-row .chip:not(.soft) { background: var(--brand-10); color: var(--brand); }
.past-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 6px 0; }
.past-dl dt { color: var(--muted); }
.past-dl dd { margin: 0; }
.past-form { padding: 14px 16px; }
.past-form > summary { list-style: none; display: inline-flex; cursor: pointer; }
.past-form > summary::-webkit-details-marker { display: none; }
.past-form[open] > summary { margin-bottom: 12px; }
.check-list.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.check-group { margin: 6px 0 10px; }
.check-group .check-list { display: grid; gap: 2px; }
.flags-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; margin: 10px 0; }
@media (max-width: 640px) { .past-dl { grid-template-columns: 1fr; } }
.career { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.career li { display: inline-flex; align-items: center; gap: 6px; }
.career li + li::before { content: "→"; color: var(--muted); margin-right: 4px; }
.career-edit { margin: 6px 0 12px; }
.career-edit > summary { list-style: none; display: inline-flex; cursor: pointer; margin-bottom: 8px; }
.career-edit > summary::-webkit-details-marker { display: none; }
.team-tools { flex-wrap: wrap; }
.team-tools select { max-width: 240px; }
.team-block { margin: 22px 0 10px; font-size: 17px; }
.idx-input { width: 70px; }
.resume-projects ul { margin: 6px 0; padding-left: 18px; }

/* Папка проекта и файлы задачи (projects/files.html) */
.files-task { margin: 0 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; }
.files-tools { display: grid; gap: 10px; }
.files-upload .dropzone { margin-bottom: 8px; }
.files-add { display: flex; flex-wrap: wrap; gap: 8px; }
details.pop { position: relative; display: inline-block; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop .pop-body { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 300px; max-width: min(420px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 12px 32px rgba(10, 8, 80, .14);
  padding: 12px; display: grid; gap: 10px; }
details.pop.right .pop-body { left: auto; right: 0; }
details.pop.up .pop-body { top: auto; bottom: calc(100% + 6px); }
.archive-card.files-card { overflow: visible; }   /* меню «⋯» не обрезается рамкой таблицы */
.files-table .pick { width: 1%; padding-right: 0; }
.files-table .pick input { width: 16px; height: 16px; margin: 2px 0 0; cursor: pointer; }
.files-table tr.picked td { background: var(--brand-10); }
.files-bulk { position: sticky; top: calc(var(--top-h, 0px) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 8px 24px rgba(10, 8, 80, .10); }
.files-bulk[hidden] { display: none; }
.files-all { margin-left: auto; }
.files-all[hidden] { display: none; }
.link-form { display: grid; gap: 8px; }
.link-form .field { margin: 0; }
.files-table td { vertical-align: top; }
.folder-link { font-weight: 500; }
.task-badge { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: var(--brand-10); color: var(--brand); text-decoration: none; margin-left: 4px; }
.file-desc { margin-top: 3px; max-width: 520px; }
.link-item { font-weight: 500; }
@media (max-width: 640px) { .hide-sm { display: none; } details.pop .pop-body { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; max-width: none; min-width: 0; } }
.task-files { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* «Живое» поле с форматированием (core/static/core/rich.js) */
.rich-input { position: relative; width: 100%; padding: 11px 13px; border: 1px solid #D5D5E0; border-radius: var(--radius-s); background: #fff; color: var(--ink);
  font: 400 15px/1.45 "Roboto", sans-serif; min-height: 2.9em; max-height: 420px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  transition: border-color .15s, box-shadow .15s; cursor: text; }
.rich-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-10); }
.rich-input.empty::before { content: attr(data-placeholder); color: var(--faint, #9a9ab0); pointer-events: none; position: absolute; }
.rich-input > div { min-height: 1.45em; }
.rich-input b, .rich-input strong { font-weight: 700; }
.fmt-bar button.on { background: var(--brand-10); color: var(--brand); border-color: var(--brand-10); }
.chat-row .rich-input { flex: 1; font-size: 15px; line-height: 1.4; padding: 9px 12px; max-height: 200px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 10px; background: #FBFBFD; }
.chat-row .rich-input:focus { background: #fff; }
@media (max-width: 760px) { .chat-row .rich-input, .rich-input { font-size: 16px; } }
/* Круглая рамка: затемняем всё вокруг круга тенью самой рамки (тень у view-box обрезалась бы её overflow). */
.crop-dialog.round .cropper-modal { opacity: 0; }
.crop-dialog.round .cropper-crop-box { border-radius: 50%; box-shadow: 0 0 0 9999px rgba(10, 8, 80, .6); }
.crop-dialog.round .cropper-view-box { border-radius: 50%; outline: 0; }
.crop-dialog.round .cropper-face { background: transparent; border: 2px solid rgba(255, 255, 255, .95); border-radius: 50%; box-sizing: border-box; opacity: 1; }
.crop-pv-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.crop-pv { overflow: hidden; flex: none; background: #f3f4f8; border-radius: var(--radius-s); }
.crop-dialog.round .crop-pv { border-radius: 50%; }

/* Окно «Добавить людей» (projects/static/projects/team.js) */
.add-people { border: 0; border-radius: var(--radius); padding: 18px; width: min(720px, calc(100vw - 24px));
  box-shadow: 0 20px 60px rgba(10, 8, 80, .25); }
.add-people::backdrop { background: rgba(10, 8, 80, .35); }
.add-people .qc-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.add-people .qc-head b { font-size: 17px; }
.add-people .qc-acts { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.add-people .qc-error { margin-top: 8px; }
.ap-period { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-filter { display: flex; gap: 12px; align-items: center; margin: 4px 0 8px; flex-wrap: wrap; }
.ap-filter input[type=search] { flex: 1; min-width: 180px; }
.ap-list { max-height: min(52vh, 520px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.ap-row { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ap-row:last-child { border-bottom: 0; }
.ap-row.on { background: var(--brand-06); }
.ap-row.off { opacity: .6; }
.ap-who { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; }
.ap-who .ava { width: 36px; height: 36px; font-size: 13px; object-fit: cover; }
.ap-text { display: flex; flex-direction: column; min-width: 0; }
.ap-sub { overflow: hidden; text-overflow: ellipsis; }
.ap-set { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 2px 26px; }
.ap-set select, .ap-set input { width: auto; padding: 5px 8px; font-size: 13.5px; }
.ap-load { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.ap-load input { width: 72px; }
.ap-warn { color: #8A3F08; flex-basis: 100%; }
.ap-warn:empty { display: none; }
.ap-err { flex-basis: 100%; }
.ap-count { margin-right: auto; }
@media (max-width: 560px) { .ap-period { grid-template-columns: 1fr; } .ap-set { margin-left: 0; } }

/* Раздел «Рекрутинг» (recruiting/) */
.rec-list { display: grid; }
.rec-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: center; padding: 10px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rec-row:last-child { border-bottom: 0; }
.rec-row:hover { background: var(--brand-06); }
.rec-row.soon { box-shadow: inset 3px 0 0 #D9A441; }
.rec-row.urgent { box-shadow: inset 3px 0 0 #B3261E; }
.rec-col .rec-row { grid-template-columns: minmax(0, 1fr); }
.rec-main { min-width: 0; }
.rec-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .rec-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .rec-row { grid-template-columns: minmax(0, 1fr); } }
.rec-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 10px; }
.rec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-panel { margin: 8px 0; }
.rec-panel > summary { list-style: none; display: inline-flex; cursor: pointer; }
.rec-panel > summary::-webkit-details-marker { display: none; }
.rec-panel[open] > form { margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--brand-06); }
.rec-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0; }
.rec-facts dt { color: var(--muted); }
.rec-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .rec-facts { grid-template-columns: 1fr; } .rec-facts dd { margin-bottom: 6px; } }
.rec-preview { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: var(--radius-s); margin-top: 10px; }
.rec-step { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rec-step:last-child { border-bottom: 0; }
.rec-comment { white-space: normal; background: #F7F7FB; border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; }
.rec-eval fieldset { border: 0; padding: 0; margin: 0; }
.rec-scale { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-scale label { position: relative; margin: 0; }
.rec-scale input { position: absolute; opacity: 0; }
.rec-scale span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; }
.rec-scale input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.rec-scale input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.rec-radios { display: flex; gap: 18px; flex-wrap: wrap; }
.rec-radios label { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.rec-plan-table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.rec-plan-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 4px 6px; }
.rec-plan-table td { padding: 4px 6px; }
.rec-plan-table select { width: 100%; }
.rec-banner a { font-weight: 500; }

/* FAQ: презентации и частые вопросы */
.faq-welcome { margin: 0 0 18px; }
.faq-decks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.faq-deck { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; color: inherit; text-decoration: none; }
.faq-deck:hover { border-color: var(--brand); }
.faq-deck.active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.faq-deck b { display: block; color: var(--ink); }
.faq-who { display: block; margin: 2px 0 6px; }
.faq-about { display: block; color: var(--ink-2); line-height: 1.45; }
.faq-ico { flex: none; width: 38px; height: 38px; border-radius: 8px; background: var(--brand-06); color: var(--brand);
  display: flex; align-items: center; justify-content: center; }
.faq-viewer { padding: 0; overflow: hidden; }
.faq-viewer-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
.faq-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.faq-pdf { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: #E9E9EF; }
.faq-mobile { display: none; padding: 12px 16px; margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 12px 18px; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; font-weight: 500; }
.faq-list details p { margin: 8px 0 2px; color: var(--ink-2); }
.faq-list { padding: 0; }
@media (max-width: 760px) { .faq-pdf { display: none; } .faq-mobile { display: block; } }

/* «Команда»: таблица с загрузкой и часами, вкладка «Опыт до GRP» (core/team.html, core/team_past.html) */
.team-tabs { margin-top: 4px; }
.team-view { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.team-who { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.team-who:hover b, .team-who:hover > span:last-child { color: var(--brand); }
.team-table .ava, .past-table .ava, .past-fill-list .ava { width: 32px; height: 32px; font-size: 11.5px; }
.team-table { table-layout: fixed; }   /* колонки разделов (блоков) — одной ширины */
.team-table td { vertical-align: middle; overflow-wrap: break-word; }
.team-table .tm-city { width: 17%; }
.team-table .tm-load { width: 21%; }
.team-table .tm-h { width: 88px; }
.team-load a { color: var(--ink-2); text-decoration: none; }
.team-load a:hover { color: var(--brand); }
.team-load a.over b { color: var(--danger); }
.member-stats { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.member-stats .over { color: var(--danger); font-weight: 600; }
.past-fill { padding: 12px 16px; margin: 0 0 14px; }
.past-fill > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.past-fill-list { list-style: none; padding: 0; margin: 12px 0 2px; display: grid; gap: 6px 16px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.past-fill-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.past-fill-list li > a:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-width: 0; }
.past-fill-list a.chip { text-decoration: none; }
.past-filters { margin-bottom: 6px; }
.past-filters select { max-width: 240px; }
.past-table td { vertical-align: top; }
.past-table td:first-child { min-width: 190px; }
table.archive.team-table tbody tr, table.archive.past-table tbody tr { cursor: default; }
.past-table .past-more { margin-top: 4px; text-decoration: none; text-align: left; white-space: nowrap; }
.past-table td:nth-child(2) { min-width: 170px; }
.past-table .past-more::before { content: "▸ "; }
.past-table .past-more[aria-expanded="true"]::before { content: "▾ "; }
.past-table tr.open td { border-bottom-color: transparent; }
.past-table tr.past-detail td { background: #FAFAFC; padding-top: 4px; }
.past-table tr.past-detail .past-dl { max-width: 900px; }
@media (max-width: 700px) {
  .team-table .tm-opt { display: none; }
  .team-table .tm-load { width: 25%; }
  .team-table .tm-h { width: 58px; }
  .team-table th, .team-table td { padding-left: 6px; padding-right: 6px; font-size: 13px; }
  .team-table th { font-size: 11px; letter-spacing: 0; }
  .team-table td:first-child, .team-table th:first-child { padding-left: 12px; }
  .team-table td:last-child, .team-table th:last-child { padding-right: 12px; width: 64px; }
  .team-table .team-who { gap: 6px; }
  .team-table .ava { width: 24px; height: 24px; font-size: 9.5px; }
  .team-table .member-pos { display: none; }
  .past-table thead { display: none; }
  .past-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.archive.past-table td { display: block; padding: 2px 0; border: 0; min-width: 0; }
  table.archive.past-table td:first-child { padding-bottom: 6px; }
  table.archive.past-table tr.past-detail td { padding: 8px 10px; }
}

/* Паспорт проекта (projects/_passport_fields.html, _passport_view.html): создание, «Паспорт», «Завершить проект» */
.passport-block, .finish-passport { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 16px 6px; margin: 14px 0 16px; min-width: 0; }
.passport-block legend, .finish-passport legend { font-weight: 500; padding: 0 4px; }
.finish-dialog.with-passport { width: min(720px, calc(100vw - 32px)); }
.passport-fields .checks-field .check-list { max-height: none; overflow: visible; }
.passport-todo { align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 12px 0 0; }
.passport-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.passport-dl { display: grid; grid-template-columns: 190px 1fr; gap: 10px 18px; margin: 12px 0; }
.passport-dl dt { color: var(--muted); font-weight: 500; }
.passport-dl dd { margin: 0; line-height: 1.5; }
@media (max-width: 640px) { .passport-dl { grid-template-columns: 1fr; gap: 2px; } .passport-dl dd { margin-bottom: 10px; } }
/* «Проекты в GRP» во вкладке «Консалтинговый опыт» (resumes/_grp.html) */
.grp-card h2 { font-size: 17px; }
.grp-lines { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.grp-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grp-lines .checkbox { margin: 0; }
.past-h { font-size: 17px; margin: 22px 0 8px; }

/* Соисполнители в карточке задачи: кто отметил свою часть готовой */
.task-co-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.task-co-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Компактный стаффинг «по людям»: одна полоса, «Фамилия Имя» и должность под ним */
.tl-key.mix, .tl-bar.mix { background: linear-gradient(to bottom, #2E7D32 50%, #A9C4F5 50%); }
.tl-bar.mix { text-shadow: 0 0 3px rgba(0, 0, 0, .45); }
.tl-compact .tl-name { width: 290px; padding: 3px 12px; font-size: 14.5px; align-self: center; }
.tl-compact .tl .tl-name .st-who { gap: 8px; }
.tl-compact .tl .tl-name .ava { width: 26px; height: 26px; font-size: 10px; }
.tl-compact .tl .tl-name .st-who a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.25; }
.tl-pos { color: var(--muted); font-size: 12px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-compact .tl-track { min-height: 38px; padding: 2px 0; }
.tl-compact .tl-bar { height: 22px; line-height: 22px; font-size: 12px; padding: 0 7px; }
/* толщина полосы — по загрузке (projects/staffing.bar_size): полосы стоят на нижнем крае дорожки, тонкие подписаны сверху */
.tl-compact .tl-lane { height: 34px; margin: 0; }
.tl-compact .tl-bar { top: auto; bottom: 0; transition: none; }
.tl-compact .tl-bar.thin { overflow: visible; padding: 0; line-height: normal; }
.tl-compact .tl-bar.int.thin { background: #7FA3E8; }
/* короткая полоса (staffing._place narrow): ровно по своим дням — без отступов и текста, подсказка остаётся */
.tl .tl-bar.narrow { padding: 0; min-width: 2px; font-size: 0; }
.tl .tl-bar.narrow .ava, .tl .tl-bar.narrow .tl-bar-t, .tl .tl-bar.narrow .tl-cap { display: none; }
.tl-cap { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 1px; padding: 0 2px; color: var(--ink-2); font-size: 11px;
  line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; text-shadow: none; }
.tl-bar.over, .tl-key.over { box-shadow: inset 0 2px 0 #FFB300; }
.tl-bar.int.over { box-shadow: inset 0 2px 0 #FFB300, inset 0 0 0 1px rgba(21, 101, 192, .25); }
.tl-key.over { background: #A9C4F5; }
.tl-compact .tl-bar.join-l { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid rgba(255, 255, 255, .8); }
.tl-compact .tl-bar.join-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* Линия-срез по дате (ui.js, data-tl-slice): тянется по шкале; справа от имени — свободен ли человек в этот день */
.tl[data-tl-slice] { position: relative; }
.tl-slice { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--brand); z-index: 4; pointer-events: none; }
.tl-slice-knob { position: absolute; top: 4px; left: -1px; transform: translateX(-50%); padding: 3px 9px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 12px; line-height: 16px; white-space: nowrap; cursor: ew-resize;
  pointer-events: auto; user-select: none; touch-action: none; box-shadow: 0 2px 6px rgba(15, 2, 190, .25); }
.tl-slice-knob:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.tl-slice-n { opacity: .8; font-weight: 400; }
.tl-sl { flex: none; margin-left: auto; padding: 1px 7px; border-radius: 9px; font: 500 11px/16px Roboto, sans-serif; font-style: normal; white-space: nowrap; }
.tl-name span .tl-sl { display: inline-block; margin: 3px 0 0; }
.tl-sl.free { background: #DDF1DF; color: #1B5E20; }
.tl-sl.part { background: #EEF6EE; color: #2E7D32; }
.tl-sl.away { background: #EDEDF2; color: #5A5A6E; }
.tl-row.sl-free > .tl-name { background: #F3FAF3; }
.tl .tl-name a { text-decoration: none; color: inherit; } .tl .tl-name a:hover { color: var(--brand); text-decoration: underline; }
/* «Команда»: часы кликабельны → окно с задачами за 24 / 168 часов */
.member-stats .worked-link { cursor: pointer; border-bottom: 1px dashed currentColor; }
.member-stats .worked-link:hover, .member-stats .worked-link:focus-visible { color: var(--brand); }
.worked-dlg { width: min(640px, calc(100vw - 32px)); max-height: 80vh; border: 0; border-radius: 14px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.worked-dlg::backdrop { background: rgba(16, 12, 60, .35); }
.worked-x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.worked-x:hover { background: var(--line-2); color: var(--ink); }
.worked-head { padding-right: 36px; }
.worked-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 12px; }
.worked-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.worked-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.worked-table .r { text-align: right; padding-right: 0; }
.worked-table a { text-decoration: none; color: inherit; } .worked-table a:hover { color: var(--brand); }
.artifacts-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; margin: 0 0 14px; border-radius: 10px; background: var(--brand-06, #f3f2fb); }
.artifacts-switch > span { flex: 1 1 320px; }
/* Левое меню по разделам: Портал, Рекрутинг, Финансы, Настройки — заголовки сворачиваются */
.side-sec + .side-sec { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .14); }
.side-sec > summary { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 8px; list-style: none;
  cursor: pointer; color: rgba(255, 255, 255, .55); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side-sec > summary::-webkit-details-marker { display: none; }
.side-sec > summary:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side-sec-t { flex: 1; }
.side-sec[open] > summary .side-caret { transform: rotate(180deg); }
.side-sec[open] > summary .snav-n { display: none; }
.side-sec .side-link { margin-top: 2px; }

/* Карточка человека: средний балл под фото */
.person-ava { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; margin-bottom: 8px; }
.avg-score { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 10px; background: var(--brand-06); color: var(--brand-ink, var(--brand)); }
.avg-score b { font-size: 20px; line-height: 1; }
.avg-score span { font-size: 11px; line-height: 1.2; color: var(--muted); }
.score-hist { overflow-x: auto; }
/* «Команда»: средний балл поверх фото (слева внизу; справа внизу — точка «в сети»), карточка не растёт */
.ava-score { position: absolute; left: -4px; bottom: -4px; padding: 1px 5px; border-radius: 8px; border: 2px solid #fff;
  background: var(--brand); color: #fff; font: 600 11px/1.3 Roboto, sans-serif; font-style: normal; }

/* «Стаффинг» → «Доступные»: фильтр «когда» и «насколько свободен» */
.free-filter { display: grid; gap: 10px; padding: 14px 18px; margin-bottom: 10px; }
.free-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.free-l { min-width: 72px; font-size: 13px; color: var(--muted); }
.subtabs .sub-radio { position: relative; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 8px; color: var(--ink-2); white-space: nowrap;
  font-size: 14px; font-weight: 500; cursor: pointer; }
.subtabs .sub-radio:hover { color: var(--brand); }
.subtabs .sub-radio.active { background: var(--card); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(11, 10, 46, .12); }
.subtabs .sub-radio input { position: absolute; opacity: 0; pointer-events: none; }
.subtabs .sub-radio:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }
.free-filter input[type=date].dim { opacity: .55; }
/* «Доступные» — карточки как в «Команде»: когда доступен, формат, стоимость для клиента, частые типы проектов */
.free-cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.free-card { align-items: flex-start; }
.free-card .member-txt { gap: 4px; }
.fc-years { color: var(--ink-2); font-weight: 400; }
.fc-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--ink-2); }
.fc-avail { color: #B4520E; font-weight: 500; }
.fc-avail.full { color: #1D7A46; }
.fc-avail::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.fc-price { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.fc-types { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.fc-type { padding: 1px 8px; border-radius: 10px; background: var(--brand-06, #EEF0FB); color: var(--ink-2); font-size: 12px; line-height: 1.6; white-space: nowrap; }
.fc-type b { color: var(--brand); font-weight: 600; margin-left: 2px; }
.ava-score.new { background: #2E8540; }
@media (max-width: 400px) { .free-cards { grid-template-columns: 1fr; } }
table.archive a.file-dl { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; text-decoration: underline; }

/* Приложение на телефон (PWA): каналы уведомлений, окно первого запуска, плашка «Установить» */
.channels { width: 100%; border-collapse: collapse; }
.channels th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.channels th:not(:first-child), .channels td:not(:first-child) { text-align: center; width: 92px; }
.channels td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.channels td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.channels input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.app-grid .app-wide { grid-column: 1 / -1; }
.app-grid h3 { font-size: 15px; margin: 16px 0 4px; }
.app-grid ol { margin: 4px 0 0; padding-left: 20px; } .app-grid li { margin: 3px 0; }
.pwa-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }
.pwa-devices { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.pwa-devices li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pwa-dialog { border: 0; border-radius: var(--radius); padding: 18px; width: min(560px, calc(100vw - 20px)); max-height: calc(100vh - 40px);
  box-shadow: 0 20px 60px rgba(10, 8, 80, .25); }
.pwa-dialog::backdrop { background: rgba(10, 8, 80, .35); }
.pwa-dialog h2 { font-size: 20px; }
.pwa-dialog-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; position: sticky; bottom: -18px; background: #fff; padding: 10px 0 0; }
.pwa-banner { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 900; display: flex; align-items: center;
  gap: 8px; background: #0A0850; color: #fff; border-radius: 12px; padding: 10px 10px 10px 14px; box-shadow: 0 10px 30px rgba(10, 8, 80, .3); font-size: 14px; }
.pwa-banner[hidden] { display: none; }
.pwa-banner span { flex: 1; }
.pwa-banner .btn:not(.primary) { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.pwa-banner-x { border: 0; background: none; color: #fff; font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; opacity: .8; }
.rights tr.rights-group th { text-align: left; padding: 14px 12px 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--bg, #F6F6FA); }
/* Доска кандидатов (рекрутинг): с боковым меню 7 колонок не помещаются — колонки не уже 190px, лента прокручивается */
.board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); overflow-x: auto; }

/* Звонки (calls/ring.js): входящий на любой странице, 📞 в шапке и списке чатов, «Идёт звонок — присоединиться» */
.ring-box { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: min(340px, calc(100vw - 32px)); background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 16px; animation: ring-in .25s ease-out; }
.ring-box[hidden] { display: none; }
@keyframes ring-in { from { transform: translateY(16px); opacity: 0; } }
.ring-who { display: flex; gap: 12px; align-items: center; }
.ring-who .ava { width: 52px; height: 52px; font-size: 18px; object-fit: cover; animation: ring-pulse 1.2s ease-in-out infinite; }
@keyframes ring-pulse { 50% { box-shadow: 0 0 0 8px var(--brand-06, rgba(47, 123, 246, .12)); } }
.ring-acts { display: flex; gap: 8px; margin-top: 14px; }
.ring-acts .btn { flex: 1; justify-content: center; }
@media (max-width: 640px) { .ring-box { left: 16px; right: 16px; bottom: 16px; width: auto; } }
.call-live { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18); animation: ring-in .25s ease-out; }
.call-live[hidden] { display: none; }
.call-live-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.call-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3dd68c; flex: none; animation: ring-pulse 1.2s ease-in-out infinite; }
.call-live-x { appearance: none; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 6px; }
@media (max-width: 640px) { .call-live { top: auto; bottom: 16px; left: 16px; right: 16px; transform: none; } }
.chat-call { font-size: 15px; }
.chat-call-banner { display: block; padding: 8px 16px; background: var(--brand-06, rgba(47, 123, 246, .1)); border-bottom: 1px solid var(--line);
  color: var(--brand); text-decoration: none; }
.chat-call-banner[hidden] { display: none; }
.ci-call { margin-left: 4px; font-size: 13px; }
.calls-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.calls-link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.calls-link-row input { flex: 1 1 280px; min-width: 0; }
.calls-table tr.missed td:first-child { color: var(--danger); }
