/* OKKwork — панель профиля МКК */
/* Типографика как в меню / рабочем пространстве (Rubik) */

:root {
  --okk-profile-panel-edge: rgba(6, 88, 162, 0.16);
  --okk-profile-outline-active: rgba(6, 88, 162, 0.3);
  /* Параметры блоков дашборда — Figma OKKwork (1) */
  --profile-dash-bg: rgba(6, 88, 162, 0.14);
  --profile-dash-radius: 10px;
  --profile-dash-blue: #0658a2;
  --profile-dash-text: #515f6c;
  --profile-dash-muted: rgba(81, 95, 108, 0.85);
  --profile-dash-green-bg: rgba(17, 188, 32, 0.14);
  --profile-dash-green: #11bc20;
  --profile-dash-green-pill-bg: #bfe0d4;
  --profile-dash-green-strong: #11bc20;
  --profile-dash-red-bg: rgba(220, 53, 69, 0.12);
  --profile-dash-red: #b91c1c;
  --profile-dash-red-pill-bg: #ddc9d3;
  --profile-dash-red-strong: #e31212;
  --profile-dash-ring-bg: #dce8f2;
  --profile-dash-ring-sales: #f39108;
  --profile-dash-ring-kc: #515f6c;
  --profile-dash-tile: #0658a2;
  --profile-dash-gap: 10px;
}

#okkwork-mkk-profile-panel,
#okkwork-mkk-profile-panel .profile-panel__scroll {
  font-family: "Rubik", "Rubik-Medium", "Rubik-Light", system-ui, sans-serif;
  color: rgba(81, 95, 108, 1);
  -webkit-font-smoothing: antialiased;
}

.profile-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px 12px 18px;
  border-bottom: 1px solid rgba(6, 88, 162, 0.12);
  background: #fff;
  flex-shrink: 0;
}

.profile-page__title {
  margin: 0;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(6, 88, 162, 1);
}

.profile-page__layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 20px 12px;
  align-items: start;
  position: relative;
  isolation: isolate;
}

.profile-aside {
  position: relative;
  z-index: 4;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  background: #fff;
  padding-bottom: 16px;
}

.profile-main {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

@media (max-width: 800px) {
  .profile-page__layout { grid-template-columns: 1fr; }
}

/* —— Левая колонка: данные —— */
.profile-aside__start {
  margin: 0 0 12px;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(81, 95, 108, 0.85);
}

.profile-aside__avatar-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.profile-aside__avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc, #e8f0fa);
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(6, 88, 162, 0.15);
  overflow: hidden;
  position: relative;
}

.profile-aside__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(var(--okkwork-profile-avatar-scale, 1));
  transform-origin: center center;
}

.profile-aside__avatar-actions {
  font-size: 12px;
}

.profile-aside__avatar-generate {
  border: none;
  background: none;
  padding: 0;
  font-family: "Rubik-Regular", "Rubik", sans-serif;
  font-size: 12px;
  color: var(--okk-blue, #0658a2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-aside__avatar-generate:hover {
  color: #044a8a;
}

.profile-field {
  margin-bottom: 12px;
}

.profile-field__label {
  display: block;
  margin-bottom: 4px;
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
}

.profile-field__input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(6, 88, 162, 0.14);
  background: #fff;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(81, 95, 108, 1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-field__input:focus {
  outline: none;
  border-color: rgba(6, 88, 162, 0.45);
  box-shadow: 0 0 0 2px rgba(6, 88, 162, 0.1);
}

.profile-field__input--readonly,
.profile-field__input[readonly] {
  background: #f8fafc;
  color: rgba(81, 95, 108, 0.9);
  cursor: default;
}

.profile-field__hint {
  margin: 6px 0 0;
}

.profile-field__hint-input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(6, 88, 162, 0.2);
  background: #f8fafc;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(81, 95, 108, 0.9);
}

.profile-field__role-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(6, 88, 162, 0.2);
  background: #f8fafc;
  min-height: 38px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.profile-field__role-value {
  margin: 0;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: "Rubik-Regular", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(6, 88, 162, 0.95);
  line-height: 1.35;
}

.profile-field__role-transfer {
  flex-shrink: 0;
  align-self: flex-end;
  margin: 0;
  padding: 0;
  transform: translate(2px, 8px);
  border: none;
  background: none;
  font-family: "Rubik-Regular", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(81, 95, 108, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.profile-field__role-transfer:hover {
  color: rgba(6, 88, 162, 1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-field__role-transfer[hidden] {
  display: none !important;
}

.profile-field__hint--role {
  font-size: 11px;
  color: rgba(81, 95, 108, 0.75);
}

/* Pop-up передачи прав владельца */
.okkwork-profile-transfer-modal__panel {
  width: min(440px, 100%);
}

.okkwork-profile-transfer-modal__question {
  margin-bottom: 12px;
}

.okkwork-profile-transfer-modal__risks-title {
  margin: 0 0 8px;
}

.okkwork-profile-transfer-modal__risks {
  margin: 0 0 4px;
  padding: 10px 12px 10px 14px;
  list-style: none;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(6, 88, 162, 0.12);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(81, 95, 108, 0.92);
  line-height: 1.45;
}

.okkwork-profile-transfer-modal__risks li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 16px;
}

.okkwork-profile-transfer-modal__risks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(6, 88, 162, 1);
  transform: translateY(-50%);
}

.okkwork-profile-transfer-modal__risks li:last-child {
  margin-bottom: 0;
}

.okkwork-profile-transfer-email-modal__panel {
  width: min(400px, 100%);
}

.okkwork-profile-transfer-email-modal__input {
  width: 100%;
  box-sizing: border-box;
}

.okkwork-profile-transfer-done-modal__panel {
  width: min(440px, 100%);
}

.okkwork-profile-transfer-done-modal__message {
  margin: 0 0 4px;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(81, 95, 108, 0.95);
}

.profile-field--password {
  position: relative;
  z-index: 6;
}

.profile-field__pwd-box {
  display: block;
  padding: 0;
}

.profile-field__pwd-box .profile-field__pwd-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: none;
  background: transparent;
  padding: 9px 12px;
  box-shadow: none;
}

.profile-field__pwd-box .profile-field__pwd-input:focus {
  outline: none;
  box-shadow: none;
}

.profile-field__pwd-actions {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 0;
  padding: 0;
}

.profile-field__pwd-change {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.profile-field__pwd-change:hover {
  color: #044a8a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-field__pwd-generate-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
  text-align: center;
}

.profile-field__pwd-generate-btn[hidden] {
  display: none !important;
}

.profile-field__btn {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(6, 88, 162, 0.2);
  background: rgba(6, 88, 162, 0.06);
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
  cursor: pointer;
  white-space: nowrap;
}

.profile-field__btn:hover {
  background: rgba(6, 88, 162, 0.12);
}

.profile-field__link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
  text-decoration: underline;
  cursor: pointer;
}

.profile-field__link-btn--change {
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}

.profile-field__link-btn--change:hover {
  color: #044a8a;
}

.profile-field__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.profile-field__row--city {
  align-items: stretch;
}

.profile-field__row--city .okkwork-city-combobox {
  flex: 1;
  min-width: 0;
  position: relative;
}

.okkwork-city-combobox__list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(6, 88, 162, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.okkwork-city-combobox__list[hidden] {
  display: none !important;
}

.okkwork-city-combobox__option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.okkwork-city-combobox__option:hover,
.okkwork-city-combobox__option:focus {
  background: rgba(6, 88, 162, 0.08);
  outline: none;
}

.okkwork-city-combobox__name {
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 14px;
  color: rgba(81, 95, 108, 1);
}

.okkwork-city-combobox__meta {
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  color: rgba(81, 95, 108, 0.75);
}

.profile-field__tz {
  flex-shrink: 0;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.profile-field__oauth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.profile-field__oauth[hidden] {
  display: none !important;
}

.profile-field__oauth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(6, 88, 162, 0.12);
  background: #f8fafc;
}

.profile-field__oauth-badge img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.profile-field__oauth-badge__label {
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(81, 95, 108, 0.9);
  line-height: 1.2;
  padding-right: 4px;
}

.profile-field__pwd-actions a { color: var(--okk-blue); }

.profile-main__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.profile-main__toolbar a {
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--profile-dash-blue);
  text-decoration: none;
}

.profile-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--profile-dash-gap);
  min-width: 0;
}

.profile-dashboard__row {
  display: grid;
  gap: var(--profile-dash-gap);
  min-width: 0;
  align-items: stretch;
}

/* Верхний ряд: статус | команда | метрики — высота по колонке метрик */
.profile-dashboard__row--top {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(148px, 0.58fr);
  align-items: stretch;
}

/* Средний ряд: два donut-блока */
.profile-dashboard__row--charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Нижний ряд: диаграмма нарушений на всю ширину */
.profile-dashboard__row--bottom {
  grid-template-columns: 1fr;
}

.profile-dash-card {
  box-sizing: border-box;
  border-radius: var(--profile-dash-radius);
  background: var(--profile-dash-bg);
  border: none;
  padding: 12px 14px;
  min-width: 0;
}

.profile-dash-card__label {
  margin: 0 0 8px;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--profile-dash-blue);
}

.profile-dash-big {
  margin: 0;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--profile-dash-blue);
}

.profile-dash-big--green {
  font-size: 22px;
  color: var(--profile-dash-green);
}

.profile-dash-big--red {
  font-size: 22px;
  color: var(--profile-dash-red);
}

.profile-dash-status {
  margin: 0 0 4px;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--profile-dash-blue);
  text-transform: uppercase;
}

.profile-stars {
  --profile-star-on: #f5c518;
  --profile-star-off: #4d5f72;
  --profile-star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  line-height: 1;
}

.profile-star {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: var(--profile-star-off);
  -webkit-mask-image: var(--profile-star-mask);
  mask-image: var(--profile-star-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.profile-star.is-on {
  background-color: var(--profile-star-on);
}

.profile-dash-hint {
  margin: 0;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
}

.profile-dash-hint a {
  color: var(--profile-dash-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Колонка: блок «Статус» + блок «Рекорды» (два отдельных card) */
.profile-dashboard__status-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.profile-dash-card--status {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 0;
  height: 100%;
  gap: 0;
}

.profile-dash-status__badge,
.profile-dash-team__badge,
.profile-dash-team__dept-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(6, 88, 162, 0.22);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1;
  color: var(--profile-dash-blue);
  white-space: nowrap;
}

.profile-dash-status__badge,
.profile-dash-team__badge {
  margin: 0 0 8px;
  min-height: 24px;
  padding: 0 12px;
  margin-left: -14px;
  border-radius: 10px 0 10px 0;
}

/* «Статус профиля» — прямой потомок карточки */
.profile-dash-status__badge {
  margin-top: -12px;
  align-self: flex-start;
}

.profile-dash-card--status .profile-dash-status {
  margin: 0 0 8px;
  font-size: 28px;
}

.profile-dash-card--status .profile-stars {
  margin: 0 0 10px;
  transform: translateY(-4px);
  gap: 8px;
}

.profile-dash-card--status .profile-star {
  width: 24px;
  height: 24px;
}

.profile-dash-status__eff-label {
  margin: 0 0 8px;
  width: 100%;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--profile-dash-blue);
}

.profile-dash-status__eff-box {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(6, 88, 162, 0.2);
}

.profile-dash-status__eff-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-dash-status__eff-col--center {
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.profile-dash-status__eff-period {
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--profile-dash-blue);
}

.profile-dash-status__eff-val {
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--profile-dash-blue);
  white-space: nowrap;
}

.profile-dash-status__eff-val--current {
  font-size: 36px;
}

.profile-dash-status__hint {
  margin-top: auto;
  width: 100%;
  white-space: nowrap;
}

.profile-dash-card--records .profile-dash-card__label {
  margin-bottom: 10px;
}

.profile-records {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  min-height: 40px;
}

.profile-records__item {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
}

.profile-records__img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.profile-records__item--locked .profile-records__img {
  opacity: 0.3;
}

.profile-dash-card--team {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  height: 100%;
}

.profile-dash-team__head {
  /* Обёртка с проектом: поднимаем к верхней границе карточки (как «Статус профиля»). */
  position: relative;
  z-index: 80;
  margin: -12px 0 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.profile-dash-team__head:has(.profile-dash-team__project-dd:not([hidden])) {
  z-index: 200;
}

.profile-dash-card--team .profile-dash-team__badge {
  max-width: 100%;
  align-self: flex-start;
  margin: 0 0 8px;
  margin-left: 0 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 10px 0 10px 0 !important;
}

.profile-dash-team__project {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  text-align: left;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--profile-dash-muted);
}

.profile-dash-team__project-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 0.25s ease-in-out;
}

.profile-dash-team__project-btn[aria-expanded="true"] .profile-dash-team__project-icon {
  transform: rotate(180deg);
}

.profile-dash-team__project-prefix {
  flex: 0 0 auto;
}

.profile-dash-team__project-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: var(--profile-dash-muted);
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  min-width: 0;
}

.profile-dash-team__project-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.profile-dash-team__project-btn:hover,
.profile-dash-team__project-btn:focus-visible {
  color: var(--profile-dash-blue);
  outline: none;
}

.profile-dash-team__project-btn:hover .profile-dash-team__project-btn-label,
.profile-dash-team__project-btn:focus-visible .profile-dash-team__project-btn-label {
  text-decoration: underline;
}

.profile-dash-team__project-dd {
  position: absolute;
  left: 11px;
  top: calc(100% + 4px);
  z-index: 220;
  min-width: 160px;
  max-width: min(280px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid rgba(6, 88, 162, 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(6, 88, 162, 0.16);
  padding: 4px 0;
  isolation: isolate;
}

.profile-dash-team__project-dd[hidden] {
  display: none !important;
}

.profile-dash-team__project-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 12px;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--profile-dash-blue);
  cursor: pointer;
}

.profile-dash-team__project-option:hover,
.profile-dash-team__project-option.is-active {
  background: rgba(6, 88, 162, 0.1);
}

.profile-dash-team__project-empty {
  padding: 8px 12px;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  color: var(--profile-dash-muted);
}

/* Компенсируем padding карточки (12px 14px) — прижимаем содержимое team-блока к левой границе карточки. */
.profile-dash-card--team .profile-dash-team__head,
.profile-dash-card--team .profile-dash-team__blocks,
.profile-dash-card--team .profile-dash-load {
  margin-left: -14px;
  width: calc(100% + 14px);
  box-sizing: border-box;
}

.profile-dash-card--team .profile-dash-team__project {
  position: relative;
  left: -1px;
  padding-left: 11px;
}

.profile-dash-card--team .profile-dash-load {
  position: relative;
  left: -1px;
  padding-left: 14px;
}

/* Аватарки специалистов — чуть правее (как в макете). */
.profile-dash-card--team .profile-avatars-row {
  margin-left: 2px;
}

.profile-dash-team__project span {
  color: var(--profile-dash-muted);
}

.profile-dash-team__blocks {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.profile-dash-team__block {
  min-width: 0;
  overflow: visible;
}

.profile-dash-card--team .profile-dash-team__blocks {
  overflow: visible;
}

.profile-dash-team__dept-badge {
  margin: 0 0 6px;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 0 10px 10px 0 !important;
  background: rgba(6, 88, 162, 0.18);
  align-self: flex-start;
}

.profile-dash-card--team .profile-dash-team__dept-badge {
  margin-left: 0;
  border-radius: 0 10px 10px 0 !important;
}

.profile-avatars-row {
  --profile-avatars-size: 36px;
  --profile-avatars-overlap: 11px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  max-width: 100%;
  min-height: var(--profile-avatars-size);
  padding: 0 2px 2px 0;
  overflow: visible;
}

.profile-avatars-row__item {
  position: relative;
  flex: 0 0 var(--profile-avatars-size);
  width: var(--profile-avatars-size);
  height: var(--profile-avatars-size);
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(6, 88, 162, 0.18);
  background: linear-gradient(135deg, #c5d4e4, #94a8bc);
}

.profile-avatars-row__item + .profile-avatars-row__item {
  margin-left: calc(-1 * var(--profile-avatars-overlap));
}

.profile-avatars-row__item:hover {
  z-index: 50 !important;
}

.profile-dash-card--team .profile-avatars-row__item:hover,
.profile-dash-card--team .profile-avatars-row__item--btn:hover,
.profile-dash-card--team .profile-avatars-row__item--btn:focus-visible {
  z-index: 50 !important;
  outline: none !important;
}

.profile-avatars-row__item--btn {
  padding: 0;
  border: 2px solid #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, #c5d4e4, #94a8bc);
}

.profile-avatars-row__item--btn:hover,
.profile-avatars-row__item--btn:focus-visible {
  z-index: 50 !important;
  outline: none;
  box-shadow: 0 2px 6px rgba(6, 88, 162, 0.18);
}

.profile-avatars-row__initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
}

/* Подсказка имени — fixed, панель профиля с overflow:hidden не обрезает */
.okkwork-profile-avatar-tip {
  position: fixed;
  z-index: 102200;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px 10px;
  border-radius: 8px;
  border: 0.5px solid #7a9fbe;
  background: #b8cce0;
  color: #0658a2;
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(6, 88, 162, 0.18);
  pointer-events: none;
  transform: translate(-50%, -100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

.okkwork-profile-avatar-tip.is-visible {
  opacity: 1;
  visibility: visible;
}

.okkwork-profile-avatar-tip[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.profile-avatars-row__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatars-row__item--initials {
  display: grid;
  place-items: center;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.profile-dash-load {
  margin: auto 0 0;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--profile-dash-muted);
}

.profile-dash-load strong {
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-weight: 700;
  color: var(--profile-dash-blue);
}

.profile-dash-load--tip {
  cursor: help;
  border-radius: 6px;
  outline: none;
  position: relative;
  z-index: 2;
}

.profile-dash-load--tip:hover strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-dash-load--tip:focus-visible {
  outline: 2px solid rgba(6, 88, 162, 0.35);
  outline-offset: 2px;
}

.okkwork-profile-float-tip--multiline {
  white-space: pre-wrap;
  min-width: 248px;
  max-width: min(320px, calc(100vw - 24px));
  line-height: 1.38;
  text-align: left;
}

.profile-dash-team__empty {
  margin: 0;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--profile-dash-muted);
}

.profile-dashboard__metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 200px;
  width: 100%;
  justify-self: end;
  /* Выравниваем по высоте с карточкой «Контролируемые подразделения» (в этой же строке). */
  height: 100%;
}

.profile-dash-card--metric {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 10px 12px;
  min-height: 0;
  flex: 1 1 0;
}

.profile-dash-metric__title {
  margin: 0 0 8px;
  width: 100%;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--profile-dash-blue);
}

.profile-dash-metric__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 36px;
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 8px;
  box-sizing: border-box;
}

.profile-dash-card--metric-green .profile-dash-metric__indicator {
  background: var(--profile-dash-green-pill-bg);
}

.profile-dash-card--metric-red .profile-dash-metric__indicator {
  background: var(--profile-dash-red-pill-bg);
}

.profile-dash-metric__value {
  margin: 0;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.profile-dash-card--metric-green .profile-dash-metric__value {
  color: var(--profile-dash-green-strong);
}

.profile-dash-card--metric-red .profile-dash-metric__value {
  color: var(--profile-dash-red-strong);
}

.profile-dash-card--chart {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-dash-card--check-time {
  align-items: stretch;
  padding: 0 12px 12px 10px;
}

.profile-dash-check-time__head {
  align-self: flex-start;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
}

.profile-dash-check-time__badge,
.profile-dash-entity-time__badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  margin: -12px 0 10px;
  margin-left: -10px;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 10px 0 10px 0;
  background: rgba(6, 88, 162, 0.22);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1;
  color: var(--profile-dash-blue);
  white-space: nowrap;
}

.profile-dash-card--entity-time {
  align-items: stretch;
  padding: 0 12px 12px 10px;
}

.profile-dash-entity-time__head {
  align-self: flex-start;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
}

.profile-donut--entity {
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  width: 100%;
}

.profile-donut--entity .profile-donut__filters {
  align-items: center;
}

.profile-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  justify-content: center;
}

.profile-donut--check {
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  width: 100%;
}

.profile-donut__check-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.profile-donut__check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 4px;
}

.profile-donut__pct-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  min-width: 0;
}

.profile-donut__pct-col--left {
  grid-column: 1;
  justify-self: end;
  align-items: flex-end;
  padding-right: 2px;
}

.profile-donut__pct-col--right {
  grid-column: 3;
  justify-self: start;
  align-items: flex-start;
  padding-left: 2px;
}

.profile-donut--check .profile-donut__viz,
.profile-donut--entity .profile-donut__viz {
  grid-column: 2;
  grid-row: 1;
  flex: 0 0 140px;
  margin: 0;
  justify-self: center;
}

.profile-donut__pct-label {
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--profile-dash-blue);
  white-space: nowrap;
}

.profile-donut--check .profile-donut__filters {
  align-items: center;
}

.profile-donut__viz {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 0 10px;
  flex-shrink: 0;
}

.profile-donut__svg {
  display: block;
  width: 140px;
  height: 140px;
}

.profile-donut__center-time {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--profile-dash-blue);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.profile-donut__callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.profile-donut__callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 2px;
  transform: translate(-50%, -50%);
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--profile-dash-blue);
  white-space: nowrap;
}

.profile-donut__callout-line {
  display: block;
  width: 14px;
  height: 0;
  border-top: 1px solid var(--profile-dash-blue);
  opacity: 0.85;
}

.profile-donut__filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.profile-donut__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 10px;
  border: none;
  border-radius: 8.5px;
  background: rgba(190, 210, 231, 0.65);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--profile-dash-blue);
  cursor: pointer;
  text-align: left;
  max-width: 100%;
}

.profile-donut__filter:hover {
  background: rgba(190, 210, 231, 0.9);
}

.profile-donut__filter.is-active {
  background: rgba(6, 88, 162, 0.18);
  box-shadow: inset 0 0 0 1px rgba(6, 88, 162, 0.25);
}

.profile-donut__filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-donut__filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-donut__ring {
  width: 115px;
  height: 115px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--profile-dash-ring-kc) 0deg 200deg,
    var(--profile-dash-ring-sales) 200deg 360deg
  );
}

.profile-donut__ring--break {
  background: conic-gradient(var(--profile-dash-green) 0deg 120deg, var(--profile-dash-blue) 120deg 360deg);
}

.profile-donut__ring:not(:has(svg)) span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--profile-dash-blue);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
}

.profile-donut__legends {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.profile-donut__legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 8.5px;
  background: rgba(190, 210, 231, 0.65);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--profile-dash-blue);
}

.profile-donut__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-donut__dot--kc {
  background: var(--profile-dash-ring-kc);
}

.profile-donut__dot--sales {
  background: var(--profile-dash-ring-sales);
}

.profile-donut__badge {
  margin: 0;
  padding: 4px 12px;
  border-radius: 10px;
  background: rgba(6, 88, 162, 0.14);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--profile-dash-blue);
  text-align: center;
}

.profile-dash-card--gauge {
  min-height: 248px;
  display: flex;
  flex-direction: column;
}

.profile-gauge-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px 0;
}

.profile-gauge-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  object-fit: contain;
}

.profile-dash-card--tiles {
  min-height: 219px;
}

.profile-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-tiles span {
  min-height: 75px;
  border-radius: var(--profile-dash-radius);
  background: var(--profile-dash-tile);
}

.profile-tiles--guides span {
  min-height: 42px;
}

.profile-dash-card--viol-blocks {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.profile-viol-blocks__head {
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.profile-viol-blocks__head-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.profile-viol-blocks__badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  margin: -12px 0 0 -14px;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 10px 0 10px 0;
  background: rgba(6, 88, 162, 0.22);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1;
  color: var(--profile-dash-blue);
  max-width: calc(100% - 72px);
}

.profile-viol-blocks__period {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  margin: 0 0 2px;
  padding: 0;
}

.profile-viol-blocks__period-btn {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  border: none;
  border-radius: 8.5px;
  background: rgba(190, 210, 231, 0.65);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--profile-dash-blue);
  cursor: pointer;
  white-space: nowrap;
}

.profile-viol-blocks__period-btn:hover {
  background: rgba(190, 210, 231, 0.9);
}

.profile-viol-blocks__period-btn.is-active {
  background: rgba(6, 88, 162, 0.18);
  box-shadow: inset 0 0 0 1px rgba(6, 88, 162, 0.25);
}

.profile-viol-blocks__view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-top: -8px;
}

.profile-viol-blocks__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(190, 210, 231, 0.55);
  color: rgba(6, 88, 162, 0.55);
  cursor: pointer;
}

.profile-viol-blocks__view-btn:hover {
  background: rgba(190, 210, 231, 0.85);
  color: var(--profile-dash-blue);
}

.profile-viol-blocks__view-btn.is-active {
  background: rgba(6, 88, 162, 0.18);
  color: var(--profile-dash-blue);
  box-shadow: inset 0 0 0 1px rgba(6, 88, 162, 0.25);
}

.profile-viol-blocks__body {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.profile-viol-blocks__chart {
  width: 100%;
  flex: 1;
  min-height: 150px;
}

.profile-viol-blocks__chart--bars.is-hidden,
.profile-viol-blocks__chart--line:not(.is-visible) {
  display: none !important;
}

.profile-viol-blocks__chart[hidden] {
  display: none !important;
}

.profile-viol-blocks__bars-grid {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 6px;
  align-items: stretch;
  min-height: 150px;
  height: 100%;
}

.profile-viol-blocks__y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 130px;
  padding: 4px 0 22px;
}

.profile-viol-blocks__y-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  flex: 1;
}

.profile-viol-blocks__y-label {
  width: 18px;
  flex-shrink: 0;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 9px;
  font-weight: 300;
  line-height: 1;
  color: var(--profile-dash-muted);
  text-align: right;
}

.profile-viol-blocks__y-line {
  flex: 1;
  height: 1px;
  background: rgba(6, 88, 162, 0.14);
}

.profile-viol-blocks__bars-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--viol-cols, 1), minmax(0, 1fr));
  column-gap: clamp(6px, calc(48px / max(var(--viol-cols, 1), 1)), 28px);
  align-items: end;
  width: 100%;
  min-height: 130px;
  padding: 4px 0 0;
}

.profile-viol-blocks__bar-guides {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}

.profile-viol-blocks__bar-guide {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(6, 88, 162, 0.14);
}

.profile-viol-blocks__col {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.profile-viol-blocks__val {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-h-px, 4px) + 2px);
  transform: translateX(-50%);
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--profile-dash-blue);
  white-space: nowrap;
  pointer-events: none;
}

.profile-viol-blocks__bar-wrap {
  position: relative;
  width: min(100%, 64px);
  height: 110px;
  margin: 0 auto;
}

.profile-viol-blocks__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: var(--bar-h-px, 4px);
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(6, 88, 162, 0.45), var(--profile-dash-blue));
}

.profile-viol-blocks__bar--admin {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.5), #64748b);
}

.profile-viol-blocks__col label {
  margin-top: 6px;
  width: 100%;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--profile-dash-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-viol-blocks__chart--line {
  position: relative;
  display: block;
  width: 100%;
  min-height: 168px;
  max-height: 320px;
  padding: 4px 0 8px;
  overflow-x: hidden;
  overflow-y: auto;
}

.profile-viol-blocks__chart--line.profile-viol-blocks__chart--line-scroll {
  overflow-x: auto;
}

.profile-viol-blocks__block-lines {
  width: 100%;
}

.profile-viol-blocks__block-lines-main {
  width: 100%;
  min-width: 0;
}

.profile-viol-blocks__block-line-row {
  display: grid;
  grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.profile-viol-blocks__block-line-label {
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--profile-dash-muted);
  text-align: right;
  padding-right: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-viol-blocks__block-line-label--axis {
  text-align: right;
  color: rgba(6, 88, 162, 0.75);
  font-size: 9px;
}

.profile-viol-blocks__block-line-plot {
  min-width: 0;
  min-height: 52px;
}

.profile-viol-blocks__block-line-svg {
  display: block;
  width: 100%;
}

.profile-viol-blocks__block-line-grid {
  stroke: rgba(6, 88, 162, 0.14);
  stroke-width: 1;
}

.profile-viol-blocks__block-lines-footer {
  display: grid;
  grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(6, 88, 162, 0.1);
}

.profile-viol-blocks__block-lines-x {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2px;
  padding: 0 8px;
  min-width: 0;
}

.profile-viol-blocks__block-lines-xlbl {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 9px;
  font-weight: 300;
  color: var(--profile-dash-muted);
  white-space: nowrap;
}

.profile-viol-blocks__block-lines-x--weeks .profile-viol-blocks__block-lines-xlbl {
  font-size: 9px;
}

.profile-viol-blocks__block-lines-x--months .profile-viol-blocks__block-lines-xlbl {
  font-size: 8px;
  letter-spacing: -0.02em;
}

.profile-viol-blocks__line-path--admin {
  stroke: #64748b;
}

.profile-viol-blocks__line-path {
  stroke: var(--profile-dash-blue);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-viol-blocks__line-dot {
  display: none;
}

.profile-viol-blocks__line-val {
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 600;
  fill: var(--profile-dash-blue);
}

.profile-viol-blocks__line-dash {
  stroke: rgba(100, 116, 139, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.profile-viol-blocks__line-months {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  pointer-events: none;
}

.profile-viol-blocks__line-month {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 9px;
  font-weight: 300;
  color: var(--profile-dash-muted);
  white-space: nowrap;
}

.profile-viol-blocks__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding-top: 4px;
}

.profile-viol-blocks__filter {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 3px 10px;
  border: none;
  border-radius: 8.5px;
  background: rgba(190, 210, 231, 0.65);
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--profile-dash-blue);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-viol-blocks__filter:hover {
  background: rgba(190, 210, 231, 0.9);
}

.profile-viol-blocks__filter.is-active {
  background: rgba(6, 88, 162, 0.18);
  box-shadow: inset 0 0 0 1px rgba(6, 88, 162, 0.25);
}

@media (max-width: 960px) {
  .profile-dashboard__row--top,
  .profile-dashboard__row--charts,
  .profile-dashboard__row--bottom {
    grid-template-columns: 1fr;
  }

  .profile-dashboard__metrics {
    flex-direction: row;
  }

  .profile-dash-card--metric {
    flex: 1 1 0;
    min-height: 92px;
  }
}

.profile-panel__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.profile-page__footer {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 14px;
  border-top: 1px solid #e2e8f0;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(81, 95, 108, 0.85);
  flex-wrap: wrap;
  background: #fff;
}

.profile-page__footer-url-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-page__footer-url {
  min-width: 0;
}

.profile-page__footer-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(100, 116, 139, 0.88);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.profile-page__footer-copy:hover {
  color: rgba(71, 85, 105, 0.95);
  background: rgba(148, 163, 184, 0.14);
}

.profile-page__footer-copy.is-copied {
  color: rgba(6, 88, 162, 0.85);
}

.profile-page__footer-copy svg {
  display: block;
  pointer-events: none;
}

.profile-page__footer-copy:focus-visible {
  outline: 1px solid rgba(100, 116, 139, 0.45);
  outline-offset: 2px;
}

.profile-page__footer a.del-account {
  color: #c83030;
  font-weight: 500;
  text-decoration: none;
  font-size: 13px;
}

/* —— Слой профиля: fixed на body, ПОВЕРХ backdrop (101500), слева от меню —— */
:root {
  --okkwork-menu-rail-width: var(--okkwork-user-menu-rail-width, 280px);
  --okkwork-book-left-inset: 0px;
  --okkwork-profile-panel-max-width: 920px;
  /* Вариант 11: симметричный ease-in-out, 400ms */
  --okkwork-profile-slide-ease: ease-in-out;
  --okkwork-profile-slide-ms: 0.4s;
}

#okkwork-mkk-profile-panel,
#okkwork-mkk-profile-panel.profile-panel {
  display: none !important;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#okkwork-mkk-profile-panel.is-open {
  display: flex !important;
  flex-direction: column !important;
  font-family: "Rubik", system-ui, sans-serif !important;
  position: fixed !important;
  z-index: 101570 !important;
  top: 0 !important;
  left: auto !important;
  right: var(--okkwork-menu-rail-width, 280px) !important;
  bottom: 0 !important;
  width: var(--okkwork-profile-panel-width, min(var(--okkwork-profile-panel-max-width, 920px), calc(100vw - var(--okkwork-menu-rail-width, 280px)))) !important;
  min-width: 0 !important;
  max-width: min(var(--okkwork-profile-panel-max-width, 920px), calc(100vw - var(--okkwork-menu-rail-width, 280px))) !important;
  height: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  background: #fff !important;
  border-right: 1px solid var(--okk-profile-panel-edge, rgba(6, 88, 162, 0.16)) !important;
  box-shadow: 4px 0 24px var(--okk-shadow-panel-edge, rgba(15, 23, 42, 0.08)) !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(100%) !important;
  transform-origin: right center;
  transition: transform var(--okkwork-profile-slide-ms) var(--okkwork-profile-slide-ease) !important;
  will-change: transform;
}

#okkwork-mkk-profile-panel.is-open.is-profile-entering,
#okkwork-mkk-profile-panel.is-open.is-slide-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#okkwork-mkk-profile-panel.is-open.is-slide-open,
body.okkwork-profile-panel-open #okkwork-mkk-profile-panel.is-open.is-slide-open {
  transform: translateX(0) !important;
}

#okkwork-mkk-profile-panel.is-open.is-profile-leaving {
  opacity: 1 !important;
  pointer-events: none !important;
  transform: translateX(100%) !important;
}

@media (prefers-reduced-motion: reduce) {
  #okkwork-mkk-profile-panel.is-open {
    transition: none !important;
  }

  #okkwork-mkk-profile-panel.is-open.is-profile-entering,
  #okkwork-mkk-profile-panel.is-open.is-slide-open {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
}

#okkwork-mkk-profile-panel[hidden] {
  display: none !important;
}

.profile-panel__scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Свернуть профиль — та же иконка, что на этапах (04708502…) */
.profile-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.profile-panel__close:hover {
  opacity: 0.82;
}

.profile-panel__close-ico {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  pointer-events: none;
  transform: rotate(-90deg);
  transform-origin: center center;
  transition: transform 0.22s ease;
}

/* Профиль открыт — стрелка вправо (свернуть к меню) */
body.okkwork-profile-panel-open #okkwork-mkk-profile-panel.is-open .profile-panel__close-ico,
#okkwork-mkk-profile-panel.is-open .profile-panel__close-ico {
  transform: rotate(90deg);
}

.profile-panel__close:hover .profile-panel__close-ico {
  opacity: 0.88;
}

/* Модальное окно смены пароля */
.okkwork-profile-pwd-modal {
  position: fixed;
  inset: 0;
  z-index: 101650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.okkwork-profile-pwd-modal[hidden] {
  display: none !important;
}

.okkwork-profile-pwd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.okkwork-profile-pwd-modal__panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  padding: 18px 18px 14px;
  font-family: "Rubik", system-ui, sans-serif;
}

.okkwork-profile-pwd-modal__title {
  margin: 0 0 6px;
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(81, 95, 108, 1);
}

.okkwork-profile-pwd-modal__hint {
  margin: 0 0 14px;
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(81, 95, 108, 0.85);
}

.okkwork-profile-pwd-modal__panel .profile-field__label {
  margin-top: 10px;
}

.okkwork-profile-pwd-modal__error {
  margin: 10px 0 0;
  font-size: 13px;
  color: #c83030;
}

.okkwork-profile-pwd-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.okkwork-profile-pwd-modal__cancel,
.okkwork-profile-pwd-modal__submit {
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}

.okkwork-profile-pwd-modal__cancel {
  background: #eef2f6;
  color: rgba(81, 95, 108, 1);
}

.okkwork-profile-pwd-modal__submit {
  background: rgba(6, 88, 162, 1);
  color: #fff;
}

/* В панели — полная страница профиля, без горизонтального скролла */
body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-page__layout,
body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-aside,
body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-main {
  min-width: 0;
  max-width: 100%;
}

body.okkwork-profile-panel-open .profile-page__layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
}

body.okkwork-profile-panel-open .profile-dashboard__row--top,
body.okkwork-profile-panel-open .profile-dashboard__row--charts,
body.okkwork-profile-panel-open .profile-dashboard__row--bottom {
  min-width: 0;
}

body.okkwork-profile-panel-open .profile-dash-card {
  min-width: 0;
}

body.okkwork-profile-panel-open .profile-page__footer {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  body.okkwork-profile-panel-open .profile-page__layout {
    grid-template-columns: 1fr;
  }
}

/* KPI-блоки — шрифты сервиса */
body.okkwork-profile-panel-open .profile-dash-card__label {
  font-family: "Rubik-Light", "Rubik", sans-serif;
  font-weight: 300;
  color: var(--profile-dash-blue);
}

body.okkwork-profile-panel-open .profile-dash-big,
body.okkwork-profile-panel-open .profile-dash-status {
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  color: var(--profile-dash-blue);
}

body.okkwork-profile-panel-open .profile-main__toolbar a {
  font-family: "Rubik-Medium", "Rubik", sans-serif;
  font-size: 13px;
}

/* Тема профиля (A11y) — мягкие границы вместо чёрных */
body.okkwork-profile-theme-15 .profile-field__input,
.okkwork-user-menu-book.is-profile-open .profile-field__input {
  border-width: 1px;
  border-color: rgba(6, 88, 162, 0.2);
  font-size: 14px;
  color: rgba(81, 95, 108, 1);
}

body.okkwork-profile-theme-15 .profile-field__label,
.okkwork-user-menu-book.is-profile-open .profile-field__label {
  color: rgba(6, 88, 162, 0.95);
  font-weight: 500;
}

body.okkwork-profile-theme-15 .profile-dash-card,
.okkwork-user-menu-book.is-profile-open .profile-dash-card {
  border: none;
  background: var(--profile-dash-bg);
}

body.okkwork-profile-theme-15 .profile-page__header,
.okkwork-user-menu-book.is-profile-open .profile-page__header {
  background: #fff;
  border-bottom: 1px solid rgba(6, 88, 162, 0.12);
}

body.okkwork-profile-theme-15 .profile-page__brand,
.okkwork-user-menu-book.is-profile-open .profile-page__brand {
  color: rgba(6, 88, 162, 1);
}

body.okkwork-profile-panel-open.okkwork-user-menu-slider-open {
  overflow: hidden !important;
}

/* Chrome при открытом профиле — эталон этапа 1, все страницы сервиса (в т.ч. Pixso scale) */
body.okkwork-profile-panel-open .okkwork-user-menu-slider-backdrop {
  z-index: 101500 !important;
}

body.okkwork-profile-panel-open #okkwork-mkk-profile-panel.is-open {
  z-index: 101570 !important;
  left: auto !important;
  right: var(--okkwork-menu-rail-width, 280px) !important;
}

body.okkwork-profile-panel-open .okkwork-user-menu-book.is-slider-open {
  z-index: 101580 !important;
}

body.okkwork-profile-panel-open .profile-page__layout {
  min-width: 0;
}

/* Строка «Проект: …» + иконка — сдвиг влево 1px (перебивает кэш/inline) */
body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-dash-card--team .profile-dash-team__project,
#okkwork-mkk-profile-panel.is-open .profile-dash-card--team .profile-dash-team__project {
  position: relative !important;
  left: -1px !important;
  padding-left: 11px !important;
}

body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-dash-card--team .profile-dash-team__head,
#okkwork-mkk-profile-panel.is-open .profile-dash-card--team .profile-dash-team__head {
  position: relative !important;
  z-index: 80 !important;
}

body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-dash-card--team .profile-dash-team__head:has(.profile-dash-team__project-dd:not([hidden])),
#okkwork-mkk-profile-panel.is-open .profile-dash-card--team .profile-dash-team__head:has(.profile-dash-team__project-dd:not([hidden])) {
  z-index: 200 !important;
}

body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-dash-card--team .profile-dash-team__project-dd,
#okkwork-mkk-profile-panel.is-open .profile-dash-card--team .profile-dash-team__project-dd {
  left: 10px !important;
  z-index: 220 !important;
}

body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-dash-card--team .profile-dash-team__blocks,
#okkwork-mkk-profile-panel.is-open .profile-dash-card--team .profile-dash-team__blocks {
  z-index: 1 !important;
}

/* «Степень нагрузки: …» — сдвиг влево 1px */
body.okkwork-profile-panel-open #okkwork-mkk-profile-panel .profile-dash-card--team .profile-dash-load,
#okkwork-mkk-profile-panel.is-open .profile-dash-card--team .profile-dash-load {
  position: relative !important;
  left: -1px !important;
  padding-left: 14px !important;
}
