/* Home command center v3 — selected premium CRM direction. */
body.mayak-role-home-active .redesign-main.redesign-dashboard {
  padding: 14px 16px 22px;
  background: var(--redesign-canvas);
}

.mayak-role-home[data-mayak-home-version="3"] {
  --role-home-bg: var(--mayak-v2-canvas, var(--redesign-canvas, #f5f7fb));
  --role-home-card: var(--mayak-v2-surface-1, var(--redesign-surface, #fff));
  --role-home-card-soft: var(--mayak-v2-surface-2, var(--redesign-surface-soft, #f7f9fd));
  --role-home-line: var(--mayak-v2-border, var(--redesign-line, #dfe5f0));
  --role-home-line-strong: var(--mayak-v2-border-strong, var(--redesign-line-strong, #cbd5e5));
  --role-home-text: var(--mayak-v2-text, var(--redesign-text, #13203d));
  --role-home-muted: var(--mayak-v2-muted, var(--redesign-muted, #6f7b96));
  --role-home-subtle: var(--mayak-v2-subtle, var(--redesign-subtle, #8b95aa));
  --role-home-accent: var(--mayak-v2-accent, var(--redesign-accent, #315eea));
  --role-home-accent-soft: var(--mayak-v2-accent-soft, var(--redesign-accent-soft, #edf2ff));
  --role-home-danger: var(--mayak-v2-danger, var(--redesign-danger, #c84756));
  --role-home-warning: var(--mayak-v2-warning, #b97812);
  --role-home-success: var(--mayak-v2-success, #23845e);
  --role-home-chart-planned: #8aa1cf;
  width: min(100%, 1680px);
  min-height: 100%;
  margin: 0 auto;
  padding: 0;
  background: var(--role-home-bg);
  color: var(--role-home-text);
}

html[data-mayak-theme="dark"] .mayak-role-home[data-mayak-home-version="3"] {
  --role-home-chart-planned: #3d5c91;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--role-home-line);
  border-radius: 12px;
  background: var(--role-home-card);
  box-shadow: none;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-title {
  min-width: 180px;
  flex: 1 1 auto;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-title h1 {
  overflow: hidden;
  color: var(--role-home-text);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 780;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-title p {
  max-width: 620px;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--role-home-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-scope {
  min-width: 0;
  height: 38px;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--role-home-line);
  border-radius: 9px;
  background: var(--role-home-card-soft);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-scope button {
  min-height: 30px;
  max-width: 126px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-weather {
  height: 38px;
  display: grid;
  grid-template-columns: 18px auto;
  grid-template-rows: 18px 14px;
  align-items: center;
  column-gap: 6px;
  padding: 3px 10px;
  border-left: 1px solid var(--role-home-line);
  color: var(--role-home-text);
}

.mayak-role-home-weather > span {
  grid-row: 1 / 3;
  color: var(--role-home-warning);
}

.mayak-role-home-weather strong {
  font-size: 13px;
  line-height: 1;
}

.mayak-role-home-weather small {
  max-width: 86px;
  overflow: hidden;
  color: var(--role-home-muted);
  font-size: 9px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-button {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 9px;
  box-shadow: none;
  font-size: 12px;
  transition: border-color 120ms ease-out, background-color 120ms ease-out, transform 90ms ease-out;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-button:hover {
  box-shadow: none;
  transform: none;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-button:active {
  transform: scale(.985);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-settings {
  top: calc(100% + 7px);
  right: 102px;
  width: 286px;
  padding: 5px;
  border-radius: 10px;
  box-shadow: var(--mayak-v2-popup-shadow, 0 14px 36px rgba(20, 29, 57, .16));
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-shell {
  position: relative;
  flex: 0 0 auto;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 7px);
  right: 0;
  width: min(286px, calc(100vw - 32px));
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--role-home-line-strong);
  border-radius: 11px;
  background: var(--role-home-card);
  box-shadow: var(--mayak-v2-popup-shadow, 0 14px 36px rgba(20, 29, 57, .18));
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu[hidden] {
  display: none !important;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px 7px;
  border-bottom: 1px solid var(--role-home-line);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu > header strong {
  color: var(--role-home-text);
  font-size: 12px;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu > header small {
  overflow: hidden;
  color: var(--role-home-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu > button {
  min-height: 39px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--role-home-text);
  text-align: left;
  font: inherit;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out, transform 90ms ease-out;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu > button:hover,
.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu > button:focus-visible {
  outline: none;
  background: var(--role-home-card-soft);
  color: var(--role-home-accent);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu > button:active {
  transform: scale(.985);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-create-menu .mayak-role-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--role-home-accent-soft);
  color: var(--role-home-accent);
}

.mayak-role-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mayak-role-summary > button {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--role-home-line);
  border-radius: 11px;
  background: var(--role-home-card);
  color: var(--role-home-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease-out, background-color 120ms ease-out, transform 90ms ease-out;
}

.mayak-role-summary > button:hover {
  border-color: color-mix(in srgb, var(--role-home-accent) 58%, var(--role-home-line));
  background: var(--role-home-card-soft);
}

.mayak-role-summary > button:active {
  transform: scale(.992);
}

.mayak-role-summary-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--role-home-accent-soft);
  color: var(--role-home-accent);
}

.mayak-role-summary > button.is-danger .mayak-role-summary-icon {
  color: var(--role-home-danger);
  background: color-mix(in srgb, var(--role-home-danger) 12%, transparent);
}

.mayak-role-summary > button.is-warning .mayak-role-summary-icon {
  color: var(--role-home-warning);
  background: color-mix(in srgb, var(--role-home-warning) 13%, transparent);
}

.mayak-role-summary > button.is-success .mayak-role-summary-icon {
  color: var(--role-home-success);
  background: color-mix(in srgb, var(--role-home-success) 13%, transparent);
}

.mayak-role-summary > button.is-muted .mayak-role-summary-icon {
  color: var(--role-home-muted);
  background: var(--role-home-card-soft);
}

.mayak-role-summary > button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 2px 8px;
}

.mayak-role-summary small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--role-home-muted);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-summary strong {
  color: var(--role-home-text);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1;
}

.mayak-role-summary em {
  color: var(--role-home-subtle);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(330px, .82fr);
  align-items: start;
  gap: 12px;
  max-width: none;
  margin: 0;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-layout > main,
.mayak-role-home[data-mayak-home-version="3"] .mayak-role-layout > aside {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.mayak-role-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--role-home-line);
  border-radius: 12px;
  background: var(--role-home-card);
}

.mayak-role-panel > header,
.mayak-role-focus-table > header,
.mayak-role-activity > header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--role-home-line);
}

.mayak-role-panel h2 {
  margin: 0;
  color: var(--role-home-text);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.mayak-role-panel header p {
  margin: 2px 0 0;
  color: var(--role-home-muted);
  font-size: 10px;
}

.mayak-role-period {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--role-home-line);
  border-radius: 7px;
  background: var(--role-home-card-soft);
  color: var(--role-home-text);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.mayak-role-period .mayak-role-icon {
  width: 14px;
  height: 14px;
}

.mayak-role-news {
  min-height: 154px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.mayak-role-news > header {
  min-height: 54px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-right: 0;
  border-bottom: 1px solid var(--role-home-line);
  background: color-mix(in srgb, var(--role-home-card) 96%, var(--role-home-accent));
}

.mayak-role-news-heading {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.mayak-role-news-count {
  flex: 0 0 auto;
  color: var(--role-home-subtle);
  font-size: 9px;
  font-weight: 690;
  white-space: nowrap;
}

.mayak-role-news-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mayak-role-news-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--role-home-subtle);
  font-size: 9px;
  font-weight: 680;
  white-space: nowrap;
}

.mayak-role-news-refresh i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--role-home-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-home-accent) 12%, transparent);
}

.mayak-role-news-refresh-action {
  width: 29px;
  min-width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--role-home-line);
  border-radius: 7px;
  color: var(--role-home-muted);
  background: var(--role-home-card);
  cursor: pointer;
}

.mayak-role-news-refresh-action:hover {
  color: var(--role-home-accent);
  border-color: color-mix(in srgb, var(--role-home-accent) 36%, var(--role-home-line));
  background: var(--role-home-card-soft);
}

.mayak-role-news-refresh-action:disabled { cursor: wait; opacity: .65; }
.mayak-role-news-refresh-action .mayak-role-icon { width: 14px; height: 14px; }
.mayak-role-news-refresh-action.is-loading .mayak-role-icon { animation: mayak-role-news-refresh-spin .8s linear infinite; }

@keyframes mayak-role-news-refresh-spin { to { transform: rotate(360deg); } }

.mayak-role-news-create {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--role-home-line);
  border-radius: 7px;
  background: var(--role-home-card);
  color: var(--role-home-text);
  font: inherit;
  font-size: 10px;
  font-weight: 730;
  cursor: pointer;
}

.mayak-role-news-create:hover {
  border-color: var(--role-home-accent);
  background: var(--role-home-accent-soft);
  color: var(--role-home-accent);
}

.mayak-role-news-create .mayak-role-icon {
  width: 13px;
  height: 13px;
}

.mayak-role-news-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 14px;
  overflow: hidden;
  border-bottom: 1px solid var(--role-home-line);
  scrollbar-width: none;
}

.mayak-role-news-filters::-webkit-scrollbar { display: none; }

.mayak-role-news-filter-options {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mayak-role-news-filter-options::-webkit-scrollbar { display: none; }

.mayak-role-news-filters button {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--role-home-muted);
  font: inherit;
  font-size: 9px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

.mayak-role-news-filters button span { color: var(--role-home-subtle); }

.mayak-role-news-filters button:is(:hover, .is-active) {
  border-color: var(--role-home-line);
  background: var(--role-home-accent-soft);
  color: var(--role-home-accent);
}

.mayak-role-news-pager {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--role-home-subtle);
}

.mayak-role-news-pager button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--role-home-line);
  border-radius: 6px;
  background: var(--role-home-card);
  color: var(--role-home-text);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.mayak-role-news-pager button:hover {
  border-color: var(--role-home-accent);
  color: var(--role-home-accent);
}

.mayak-role-news-pager i {
  min-width: 34px;
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.mayak-role-news-track {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.mayak-role-news-track.is-count-1 { grid-template-columns: minmax(0, 1fr); }
.mayak-role-news-track.is-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mayak-role-news-track > :is(a, article) {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px 16px 15px;
  border-left: 1px solid var(--role-home-line);
  background: transparent;
  color: var(--role-home-text);
  text-decoration: none;
  transition: background-color .14s ease;
}

.mayak-role-news-track > :first-child { border-left: 0; }
.mayak-role-news-track > a:hover { background: var(--role-home-card-soft); }

.mayak-role-news-track > a:focus-visible {
  outline: 2px solid var(--role-home-accent);
  outline-offset: -2px;
}

.mayak-role-news-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--role-home-subtle);
  font-size: 9px;
  line-height: 1.1;
}

.mayak-role-news-meta b {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-news-meta time {
  flex: 0 0 auto;
  padding-left: 6px;
  border-left: 1px solid var(--role-home-line);
}

.mayak-role-news-meta em {
  flex: 0 0 auto;
  color: var(--role-home-accent);
  font-style: normal;
  font-weight: 760;
}

.mayak-role-news-pin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--role-home-warning);
  font-style: normal;
  font-weight: 760;
}

.mayak-role-news-pin .mayak-role-icon {
  width: 10px;
  height: 10px;
}

.mayak-role-news-track > article:is(.is-birthday, .is-holiday) {
  background: color-mix(in srgb, var(--role-home-warning) 7%, transparent);
}

.mayak-role-news-track strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mayak-role-news-track small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--role-home-muted);
  font-size: 10px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mayak-role-news-empty {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--role-home-card);
}

.mayak-role-news-state-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--role-home-accent-soft);
  color: var(--role-home-accent);
}

.mayak-role-news-empty.is-unavailable .mayak-role-news-state-icon {
  background: color-mix(in srgb, var(--role-home-warning) 12%, transparent);
  color: var(--role-home-warning);
}

.mayak-role-news-empty.is-empty .mayak-role-news-state-icon {
  background: var(--role-home-card-soft);
  color: var(--role-home-muted);
}

.mayak-role-news-state-icon .mayak-role-icon {
  width: 18px;
  height: 18px;
}

.mayak-role-news-state-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mayak-role-news-state-copy strong {
  color: var(--role-home-text);
  font-size: 12px;
  font-weight: 740;
}

.mayak-role-news-state-copy small {
  overflow: hidden;
  color: var(--role-home-muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-news-progress {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

.mayak-role-news-progress i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--role-home-accent);
  animation: mayak-role-news-pulse 1.15s ease-in-out infinite;
}

.mayak-role-news-progress i:nth-child(2) { animation-delay: .14s; }
.mayak-role-news-progress i:nth-child(3) { animation-delay: .28s; }

@keyframes mayak-role-news-pulse {
  0%, 70%, 100% { opacity: .28; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

.mayak-role-news-retry {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--role-home-line-strong);
  border-radius: 7px;
  background: var(--role-home-card);
  color: var(--role-home-text);
  font: inherit;
  font-size: 10px;
  font-weight: 720;
  cursor: pointer;
}

.mayak-role-news-retry:hover {
  border-color: var(--role-home-accent);
  background: var(--role-home-accent-soft);
  color: var(--role-home-accent);
}

.mayak-role-news-form {
  width: min(520px, 100%);
}

.mayak-role-news-form > p {
  color: var(--role-home-muted);
  font-size: 11px;
  font-weight: 600;
}

.mayak-role-news-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid var(--role-home-line-strong);
  border-radius: 10px;
  background: var(--role-home-card);
  color: var(--role-home-text);
  font: inherit;
  line-height: 1.45;
}

.mayak-role-popover.mayak-role-news-form > label {
  padding-block: 11px;
}

.mayak-role-popover.mayak-role-news-form > .mayak-role-news-expiry-field {
  grid-template-columns: minmax(120px, .45fr) minmax(170px, .55fr);
  align-items: center;
}

.mayak-role-news-expiry-field small {
  grid-column: 1 / -1;
  color: var(--role-home-muted);
  font-size: 9px;
  font-weight: 550;
}

.mayak-role-popover.mayak-role-news-form > .mayak-role-news-pin-field {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.mayak-role-popover.mayak-role-news-form > .mayak-role-news-pin-field input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--role-home-accent);
}

.mayak-role-news-pin-field > span {
  display: grid;
  gap: 2px;
  color: var(--role-home-text);
}

.mayak-role-news-pin-field small {
  color: var(--role-home-muted);
  font-size: 9px;
  font-weight: 550;
}

.mayak-role-chart-shell {
  position: relative;
  height: 292px;
  padding: 8px 10px 0;
}

.mayak-role-chart-panel > .mayak-role-empty {
  min-height: 292px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.mayak-role-chart-shell canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mayak-role-chart-tooltip {
  position: absolute;
  z-index: 4;
  width: 160px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--role-home-line-strong);
  border-radius: 8px;
  background: var(--role-home-card-soft);
  color: var(--role-home-text);
  box-shadow: var(--mayak-v2-popup-shadow, 0 12px 28px rgba(0, 0, 0, .18));
  pointer-events: none;
}

.mayak-role-chart-tooltip[hidden] {
  display: none;
}

.mayak-role-chart-tooltip strong {
  margin-bottom: 2px;
  font-size: 10px;
}

.mayak-role-chart-tooltip span {
  color: var(--role-home-muted);
  font-size: 9px;
}

.mayak-role-chart-legend {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 16px 10px;
  color: var(--role-home-muted);
  font-size: 10px;
}

.mayak-role-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mayak-role-chart-legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--role-home-accent);
}

.mayak-role-chart-legend .is-planned i {
  height: 8px;
  background: var(--role-home-chart-planned);
}

.mayak-role-focus-columns,
.mayak-role-focus-row-main {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 112px 112px 108px;
  align-items: center;
  gap: 10px;
}

.mayak-role-focus-columns {
  min-height: 29px;
  padding: 0 48px 0 14px;
  border-bottom: 1px solid var(--role-home-line);
  color: var(--role-home-subtle);
  background: var(--role-home-card-soft);
  font-size: 9px;
  font-weight: 700;
}

.mayak-role-focus-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  border-bottom: 1px solid var(--role-home-line);
  transition: background-color 110ms ease-out;
}

.mayak-role-focus-row:last-child {
  border-bottom: 0;
}

.mayak-role-focus-row:hover,
.mayak-role-focus-row.is-selected {
  background: var(--role-home-card-soft);
}

.mayak-role-focus-row.is-selected {
  box-shadow: inset 2px 0 0 var(--role-home-accent);
}

.mayak-role-focus-row-main {
  min-width: 0;
  min-height: 51px;
  padding: 7px 10px 7px 14px;
  border: 0;
  background: transparent;
  color: var(--role-home-text);
  text-align: left;
  cursor: pointer;
}

.mayak-role-focus-name {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mayak-role-focus-name strong,
.mayak-role-focus-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-focus-name strong {
  font-size: 11px;
  font-weight: 700;
}

.mayak-role-focus-name small {
  color: var(--role-home-muted);
  font-size: 9px;
}

.mayak-role-focus-row time {
  color: var(--role-home-muted);
  font-size: 10px;
}

.mayak-role-focus-row time.is-danger {
  color: var(--role-home-danger);
}

.mayak-role-status {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--role-home-muted);
  font-size: 9px;
  font-weight: 650;
}

.mayak-role-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--role-home-subtle);
}

.mayak-role-status.is-accent i { background: var(--role-home-accent); }
.mayak-role-status.is-success i { background: var(--role-home-success); }
.mayak-role-status.is-warning i { background: var(--role-home-warning); }
.mayak-role-status.is-danger i { background: var(--role-home-danger); }

.mayak-role-row-menu {
  width: 38px;
  min-height: 51px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--role-home-muted);
  cursor: pointer;
}

.mayak-role-row-menu:hover {
  color: var(--role-home-accent);
  background: var(--role-home-accent-soft);
}

.mayak-role-avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.mayak-role-avatar-stack .mayak-role-avatar {
  margin-left: -6px;
}

.mayak-role-day-summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--role-home-line);
}

.mayak-role-day-summary > time {
  color: var(--role-home-text);
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -.05em;
  line-height: 1;
}

.mayak-role-day-summary > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
}

.mayak-role-day-summary > span .mayak-role-icon {
  grid-row: 1 / 3;
  color: var(--role-home-warning);
}

.mayak-role-day-summary > span strong {
  font-size: 12px;
}

.mayak-role-day-summary > span small {
  max-width: 90px;
  overflow: hidden;
  color: var(--role-home-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-calendar {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--role-home-line);
}

.mayak-role-calendar > header {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mayak-role-calendar > header h2 {
  font-size: 14px;
}

.mayak-role-calendar > header > span {
  display: flex;
  gap: 2px;
}

.mayak-role-calendar > header button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--role-home-muted);
  cursor: pointer;
}

.mayak-role-calendar > header button:hover {
  background: var(--role-home-card-soft);
  color: var(--role-home-text);
}

.mayak-role-calendar > header button.is-prev .mayak-role-icon { transform: rotate(225deg); }
.mayak-role-calendar > header button.is-next .mayak-role-icon { transform: rotate(45deg); }

.mayak-role-weekdays,
.mayak-role-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mayak-role-weekdays {
  margin-bottom: 3px;
  color: var(--role-home-subtle);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.mayak-role-calendar-grid {
  gap: 2px;
}

.mayak-role-calendar-grid > :where(button, span) {
  aspect-ratio: 1.25;
}

.mayak-role-calendar-grid button {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--role-home-text);
  font-size: 9px;
  cursor: pointer;
}

.mayak-role-calendar-grid button > span {
  transform: translateY(2px);
}

.mayak-role-calendar-grid button > small {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.mayak-role-calendar-grid button > small i,
.mayak-role-calendar-status i {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: var(--role-home-accent);
}

.mayak-role-calendar-grid button.has-overdue > small .is-task { background: var(--role-home-danger); }
.mayak-role-calendar-grid button.has-current > small .is-task { background: var(--role-home-warning); }
.mayak-role-calendar-grid button.has-future > small .is-task { background: var(--role-home-accent); }
.mayak-role-calendar-grid button > small .is-event { background: var(--role-home-success); }

.mayak-role-calendar-grid button:hover {
  background: var(--role-home-card-soft);
}

.mayak-role-calendar-grid button.is-today {
  background: var(--role-home-accent);
  color: #fff;
  font-weight: 800;
}

.mayak-role-calendar-grid button.is-selected:not(.is-today) {
  background: var(--role-home-card-soft);
  box-shadow: inset 0 0 0 1px var(--role-home-accent);
}

.mayak-role-calendar-grid button.is-today > small i {
  background: #fff;
}

.mayak-role-calendar-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--role-home-line);
}

.mayak-role-calendar-status > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 5px;
  border-radius: 5px;
  background: var(--role-home-card-soft);
  color: var(--role-home-muted);
  font-size: 8px;
  white-space: nowrap;
}

.mayak-role-calendar-status > span b {
  margin-left: auto;
  color: var(--role-home-text);
  font-size: 9px;
}

.mayak-role-calendar-status .is-overdue i { background: var(--role-home-danger); }
.mayak-role-calendar-status .is-current i { background: var(--role-home-warning); }
.mayak-role-calendar-status .is-future i { background: var(--role-home-accent); }
.mayak-role-calendar-status .is-unscheduled i { background: var(--role-home-muted); }

.mayak-role-agenda > header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--role-home-line);
}

.mayak-role-agenda > header strong {
  font-size: 11px;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button {
  min-height: 52px;
  grid-template-columns: 46px 12px minmax(0, 1fr);
  gap: 7px;
  padding: 6px 14px;
  border-bottom-color: var(--role-home-line);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button:hover {
  background: var(--role-home-card-soft);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline {
  max-height: 300px;
  overflow-y: auto;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button.is-overdue > time,
.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button.is-overdue strong {
  color: var(--role-home-danger);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button.is-overdue .mayak-role-timeline-line i {
  background: var(--role-home-danger);
  box-shadow: 0 0 0 1px var(--role-home-danger);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button.is-unscheduled > time {
  color: var(--role-home-muted);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button.is-unscheduled .mayak-role-timeline-line i {
  background: var(--role-home-muted);
  box-shadow: 0 0 0 1px var(--role-home-muted);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button.is-event .mayak-role-timeline-line i {
  background: var(--role-home-success);
  box-shadow: 0 0 0 1px var(--role-home-success);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline > button > time {
  color: var(--role-home-muted);
  font-size: 9px;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline strong {
  font-size: 10px;
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-timeline small {
  color: var(--role-home-muted);
  font-size: 8px;
}

.mayak-role-activity-list > button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 0;
  border-bottom: 1px solid var(--role-home-line);
  background: transparent;
  color: var(--role-home-text);
  text-align: left;
  cursor: pointer;
}

.mayak-role-activity-list > button:hover {
  background: var(--role-home-card-soft);
}

.mayak-role-activity-list > button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mayak-role-activity-list strong,
.mayak-role-activity-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-activity-list strong {
  font-size: 9px;
  font-weight: 700;
}

.mayak-role-activity-list small,
.mayak-role-activity-list time {
  color: var(--role-home-muted);
  font-size: 8px;
}

.mayak-role-activity > footer {
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--role-home-line);
  background: var(--role-home-card-soft);
}

.mayak-role-activity > footer button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 0;
  border-right: 1px solid var(--role-home-line);
  background: transparent;
  color: var(--role-home-muted);
  font-size: 8px;
  cursor: pointer;
}

.mayak-role-activity > footer button:last-child {
  border-right: 0;
}

.mayak-role-activity > footer button:hover {
  color: var(--role-home-accent);
  background: var(--role-home-accent-soft);
}

.mayak-role-activity > footer b {
  color: var(--role-home-text);
  font-size: 12px;
}

.mayak-role-context-backdrop {
  position: fixed;
  z-index: 3190;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.mayak-role-context-menu {
  position: fixed;
  z-index: 3200;
  width: 270px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--role-home-line-strong);
  border-radius: 10px;
  background: var(--role-home-card);
  box-shadow: var(--mayak-v2-popup-shadow, 0 16px 38px rgba(0, 0, 0, .22));
}

.mayak-role-context-menu > header {
  display: grid;
  gap: 2px;
  padding: 8px 9px 10px;
  border-bottom: 1px solid var(--role-home-line);
}

.mayak-role-context-menu > header strong,
.mayak-role-context-menu > header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mayak-role-context-menu > header strong { font-size: 11px; }
.mayak-role-context-menu > header small { color: var(--role-home-muted); font-size: 9px; }

.mayak-role-context-menu > button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--role-home-text);
  text-align: left;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.mayak-role-context-menu > button:hover {
  background: var(--role-home-card-soft);
}

.mayak-role-home[data-mayak-home-version="3"] .mayak-role-live-status {
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--role-home-line-strong);
  background: var(--role-home-card);
  color: var(--role-home-text);
  box-shadow: var(--mayak-v2-popup-shadow, 0 14px 36px rgba(0, 0, 0, .18));
}

@media (max-width: 1260px) {
  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-header {
    align-items: flex-start;
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-actions {
    max-width: 58%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(310px, .82fr);
  }

  .mayak-role-focus-columns,
  .mayak-role-focus-row-main {
    grid-template-columns: minmax(160px, 1fr) 98px 104px 86px;
  }
}

@media (max-width: 980px) {
  .mayak-role-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-layout {
    grid-template-columns: 1fr;
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-layout > aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.mayak-role-home-active .redesign-main.redesign-dashboard {
    padding-inline: 10px;
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-header {
    display: grid;
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-actions {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .mayak-role-home-weather {
    margin-left: auto;
  }

  .mayak-role-news { grid-template-columns: minmax(0, 1fr); }

  .mayak-role-news-track,
  .mayak-role-news-track.is-count-1,
  .mayak-role-news-track.is-count-2 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 48%);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .mayak-role-news-track > :is(a, article) {
    scroll-snap-align: start;
  }

  .mayak-role-focus-columns,
  .mayak-role-focus-row-main {
    grid-template-columns: minmax(150px, 1fr) 92px 96px;
  }

  .mayak-role-focus-columns > :nth-child(4),
  .mayak-role-focus-row-main > :nth-child(4) {
    display: none;
  }
}

@media (max-width: 580px) {
  .mayak-role-summary,
  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-layout > aside {
    grid-template-columns: 1fr;
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-scope {
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .mayak-role-home[data-mayak-home-version="3"] .mayak-role-home-weather {
    display: none;
  }

  .mayak-role-news > header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mayak-role-news-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .mayak-role-news-empty {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .mayak-role-news-empty > :last-child:not(.mayak-role-news-state-copy) {
    grid-column: 2;
    justify-self: start;
  }

  .mayak-role-news-state-copy small {
    white-space: normal;
  }

  .mayak-role-focus-columns,
  .mayak-role-focus-row-main {
    grid-template-columns: minmax(130px, 1fr) 88px;
  }

  .mayak-role-focus-columns > :nth-child(3),
  .mayak-role-focus-row-main > :nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mayak-role-home[data-mayak-home-version="3"] *,
  .mayak-role-home[data-mayak-home-version="3"] *::before,
  .mayak-role-home[data-mayak-home-version="3"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
