/* exec-home.css — главная исполнителя (KSH-520) в общей оболочке. Блоки кабинета клиента (client-v2.css тут не подключён):
   серая карточка с цифрами (.cv-prog / .cv-fact), «Сейчас важно» (.cv-nowrow / .cv-now), стрелка-ссылка (.cv-arrow-btn),
   метка фронта работ (.cv-front) — копии правил client-v2 внутри .lw-scope, снаружи ничего не меняем. Свои блоки — .xh-*. */
.lw-scope.xh { --front-fill: color-mix(in srgb, #4A4540 26%, #F3F1EE); --accent-h: #34302C; --over: #94632A; --over-bg: #F7F0E6;
  display: flex; flex-direction: column; gap: 0; }
.xh .cv-prog { margin-top: 8px; background: var(--surface); border-radius: 28px; padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.xh .cv-prog-facts { display: grid; gap: 20px; }
.xh .cv-fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--text); }
.xh .cv-fact .v { font-size: 28px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.xh .cv-fact .lab { font-size: 13px; }
.xh .cv-nowrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.xh .cv-nowrow .cv-now { margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 18px 20px; border-radius: 24px; background: var(--bg); border: 1px solid var(--hair); }
.xh .cv-nowrow .cv-now.is-over { box-shadow: inset 3px 0 0 var(--over); }
.xh .cv-now .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.xh .cv-now .by { font-size: 12px; color: var(--over); }
.xh .cv-now .t { font-size: 17px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xh .cv-now .bot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.xh .cv-now .bot .lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xh .cv-arrow-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; white-space: nowrap; text-decoration: none; }
.xh .cv-arrow-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.xh .cv-wcirc { display: grid; place-items: center; }
.xh .cv-front { position: absolute; top: 50%; z-index: 1; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid #fff; background: #4A4540; pointer-events: none; }

.xh-h2 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.01em; color: var(--text); }
.xh-sec { margin-top: 36px; }
.xh .cv-w { margin-top: 36px; gap: 12px; }
.xh-wh { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.xh-grp + .xh-grp { margin-top: 10px; }
.xh-gh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 4px; border-bottom: 1px solid var(--hair); }
.xh-gh .t { font-size: 15px; font-weight: 500; }
.xh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); color: var(--text); text-decoration: none; }
.xh-row:last-child { border-bottom: 0; }
.xh-row:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.xh-row .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xh-row .t { font-size: 14.5px; }
.xh-row .st { flex: none; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.xh-row.is-late .st { color: var(--late); }
.xh-tiles { margin-top: 16px; }
.xh-note { margin: 0; }
.xh-arow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); }
.xh-arow .t { font-size: 14.5px; }
.xh-arow .lab { flex: 1; }
.xh-aform { display: flex; flex-direction: column; gap: 10px; }
.xh-adates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xh-adates label { display: flex; flex-direction: column; gap: 4px; }
.xh-adates input, .xh-anote { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 14px; background: var(--bg); color: var(--text); }
.xh-abtn { display: flex; gap: 8px; justify-content: flex-end; }
.xh-err { margin: 0; font-size: 13px; color: var(--late); }
.xh .xp-ords { margin-bottom: 20px; }

/* «Мой график» (KSH-528): свои работы — как у прораба, смежные (чужие) — пунктиром и приглушённо; ниже этапы и готовность фронта */
.xh-sch .lw-wk { margin-top: 4px; }
.xh .lw-wki.is-adj { background: transparent; box-shadow: none; border: 1px dashed var(--line); cursor: default; }
.xh .lw-wki.is-adj .t { color: var(--text-2, #5C5650); }
.xh .lw-wki.is-adj:hover { box-shadow: none; }
.xh .lw-wki.is-adj .lab { white-space: normal; }
/* своя работа — белая плашка с линией, как у прораба: не теряется в серой клетке «Завтра» */
.xh .lw-wki.is-mine { background: var(--bg); }
.xh .lw-wki.is-mine.is-late .lab, .xh .lw-wki.is-mine.is-returned .lab { color: var(--late); }
.xh-h3 { margin: 18px 0 0; font-size: 15px; font-weight: 500; color: var(--text); }
.xh-fr-l { display: flex; flex-direction: column; }
.xh-fr { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--text); text-decoration: none; }
.xh-fr:last-child { border-bottom: 0; }
.xh-fr:hover .xh-fr-a .t { text-decoration: underline; text-underline-offset: 3px; }
.xh-fr-a, .xh-fr-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xh-fr-a .t { font-size: 14.5px; }
.xh-fr-b .lab b { font-weight: 500; color: var(--text); }
.xh-chip { justify-self: end; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: 12.5px; display: inline-flex; align-items: center; white-space: nowrap; color: var(--text); }
.xh-chip.is-ready::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4A4540; margin-right: 6px; }
.xh-chip.is-wait { color: var(--muted); }
.xh-chip.is-late { color: var(--late); background: var(--over-bg); }
.xh-chip.is-go, .xh-chip.is-done { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }

@media (max-width: 760px) {
  .xh .cv-prog { padding: 18px; border-radius: 22px; }
  .xh .cv-prog-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
  .xh .cv-fact .v { font-size: 22px; }
  .xh .cv-nowrow { grid-template-columns: minmax(0, 1fr); }
  .xh-h2 { font-size: 19px; }
  .xh-sec, .xh .cv-w { margin-top: 28px; }
  .xh-row { align-items: flex-start; }
  .xh-row .st { max-width: 40%; white-space: normal; text-align: right; }
  .xh-fr { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .xh-chip { justify-self: start; }
}
.xh-tm .lw-tm { margin-top: 4px; }
.xh-wks { margin-bottom: 4px; }

/* «Мой график» на модели прораба: подпись и переключатель шкалы в одну строку */
.xh-gh { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.xh-gh .xh-note { max-width: 62ch; }
.xh-sch .lw-gscroll { margin-bottom: 24px; }
