.whome-page {
  min-height: calc(100vh - 50px);
  padding: clamp(0.85rem, 1.4vw, 1.35rem);
  background: #f7faf8;
  color: #1c2720;
}

.whome-dashboard-head,
.whome-kpis,
.whome-board {
  width: min(100%, 1480px);
  margin-inline: auto;
}

.whome-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.whome-eyebrow,
.whome-card__eyebrow {
  margin: 0;
  color: #4d8a65;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.whome-dashboard-head h1 {
  margin: 0.24rem 0 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.05;
}

.whome-primary-action,
.whome-task__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.55rem;
  background: #1f9c45;
  box-shadow: 0 10px 18px rgba(31, 156, 69, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.whome-primary-action { padding: 0 0.95rem; }
.whome-task__button { width: fit-content; padding: 0 1rem; }
.whome-primary-action:hover,
.whome-primary-action:focus-visible,
.whome-task__button:hover,
.whome-task__button:focus-visible { background: #167d35; color: #fff; }

.whome-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.whome-kpi {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 5.6rem;
  padding: 0.75rem;
  border: 1px solid #e7eee9;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 54, 37, 0.055);
  color: inherit;
  text-decoration: none;
}

.whome-kpi:hover,
.whome-kpi:focus-visible {
  border-color: #cbded1;
  color: inherit;
}

.whome-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}

.whome-kpi__glyph {
  display: block;
  line-height: 1;
  transform: translateY(0.3em);
}

.whome-kpi__icon--amber .whome-kpi__glyph,
.whome-kpi__icon--mint .whome-kpi__glyph,
.whome-kpi__icon--red .whome-kpi__glyph {
  transform: translateY(0.33em);
}

.whome-kpi__icon--green { background: #dff5e1; color: #15913d; }
.whome-kpi__icon--blue { background: #dcecff; color: #2477db; }
.whome-kpi__icon--amber { background: #fff1c8; color: #d88900; }
.whome-kpi__icon--mint { background: #def4e3; color: #288949; }
.whome-kpi__icon--sky { background: #e3f0ff; color: #2d83df; }
.whome-kpi__icon--red { background: #ffe1e1; color: #dc4d4d; }

.whome-kpi__body {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.whome-kpi small {
  overflow: hidden;
  color: #637166;
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whome-kpi strong {
  color: #1d2821;
  font-size: 1.45rem;
  line-height: 1;
}

.whome-kpi em {
  overflow: hidden;
  color: #2c9b50;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whome-board {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.75rem;
}

.whome-card {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #e4ece7;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 9px 22px rgba(28, 54, 37, 0.055);
}

.whome-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.6rem;
}

.whome-card__head h2 {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.42rem;
  margin: 0;
  color: #1f2b24;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

.whome-card__head h2 .material-symbols-outlined {
  color: #526b5c;
  font-size: 1rem;
}

.whome-card__head a,
.whome-card__head button {
  border: 0;
  background: transparent;
  color: #3582d8;
  font-size: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.whome-news-scopes {
  display: inline-flex;
  flex: none;
  gap: 0.25rem;
  padding: 0.18rem;
  border: 1px solid #e3ece6;
  border-radius: 999px;
  background: #f7faf8;
}

.whome-news-scopes button {
  min-height: 1.45rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  color: #66736b;
  font-size: 0.62rem;
}

.whome-news-scopes button.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(28, 54, 37, 0.1);
  color: #1f7d3a;
}

.whome-card--task {
  grid-column: span 7;
  min-height: 16.2rem;
  background:
    radial-gradient(circle at 78% 62%, rgba(78, 157, 93, 0.15), transparent 24%),
    linear-gradient(135deg, #f7fff7 0%, #ffffff 62%);
}

.whome-card--agenda { grid-column: span 8; min-height: 16.2rem; }
.whome-card--news {
  grid-column: span 9;
  min-height: 16.2rem;
  max-height: 16.2rem;
  overflow: hidden;
}
.whome-card--messages { grid-column: span 6; min-height: 13rem; }
.whome-card--activity { grid-column: span 6; min-height: 13rem; }
.whome-card--region { grid-column: span 7; min-height: 13rem; }
.whome-side { display: grid; grid-column: span 5; gap: 0.75rem; }
.whome-card--teams { grid-column: span 10; }
.whome-card--campaigns { grid-column: span 14; }

.whome-icon-btn {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.45rem;
  color: #637166;
}

.whome-task {
  display: grid;
  gap: 0.65rem;
  max-width: 78%;
  padding-top: 1rem;
}

.whome-pill {
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #d8f2d8;
  color: #27883d;
  font-size: 0.7rem;
  font-weight: 850;
}

.whome-pill--warning {
  background: #fff0cf;
  color: #a66800;
}

.whome-task h3 {
  margin: 0;
  color: #1f2b24;
  font-size: 1.25rem;
  line-height: 1.15;
}

.whome-task p {
  margin: 0;
  color: #52615a;
  font-size: 0.84rem;
  line-height: 1.45;
}

.whome-task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #52615a;
  font-size: 0.76rem;
  font-weight: 700;
}

.whome-task__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.whome-task__meta .material-symbols-outlined,
.whome-task__button .material-symbols-outlined {
  font-size: 1rem;
}

.whome-timeline {
  display: grid;
  gap: 0;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.whome-timeline li {
  display: grid;
  grid-template-columns: 3.2rem 1.2rem minmax(0, 1fr) 4.6rem;
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid #eef3ef;
}

.whome-timeline li:last-child { border-bottom: 0; }

.whome-timeline time {
  display: grid;
  color: #25312a;
  font-size: 0.78rem;
  font-weight: 850;
}

.whome-timeline time small {
  color: #8b978f;
  font-size: 0.64rem;
  font-weight: 650;
}

.whome-timeline__dot {
  position: relative;
  display: block;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: #25a346;
}

.whome-timeline a {
  display: grid;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.whome-timeline strong,
.whome-timeline small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whome-timeline strong { font-size: 0.78rem; }
.whome-timeline small { color: #6b766f; font-size: 0.68rem; }

.whome-timeline em {
  justify-self: end;
  padding: 0.22rem 0.45rem;
  border-radius: 0.35rem;
  background: #e4f0ff;
  color: #2e7fda;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 850;
}

.whome-empty-state {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 8rem;
  color: #6d7971;
  font-size: 0.82rem;
  text-align: center;
}

.whome-empty-state p { margin: 0; }

.whome-news-list,
.whome-system-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.whome-news-list {
  max-height: 12.7rem;
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: #c8d8ce transparent;
}

.whome-news-list article {
  display: block;
  min-height: 4rem;
  padding-bottom: 0.52rem;
  border-bottom: 1px solid #edf2ee;
  color: inherit;
  text-decoration: none;
}

.whome-news-list a {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.whome-news-placeholder {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.whome-news-list a:hover strong,
.whome-news-list a:focus-visible strong {
  color: #1f7d3a;
}

.whome-news-list article:last-child { border-bottom: 0; padding-bottom: 0; }

.whome-news-thumb {
  display: block;
  height: 3.45rem;
  border-radius: 0.4rem;
  background-size: cover;
}

.whome-news-thumb--one { background: linear-gradient(135deg, #5ca878, #dcedf1 55%, #5c8fc4); }
.whome-news-thumb--two { background: linear-gradient(135deg, #305c85, #83c0d3 45%, #d9efe4); }
.whome-news-thumb--three { background: linear-gradient(135deg, #8fbf71, #f0e6b8 54%, #5b8ec5); }

.whome-news-list strong,
.whome-news-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whome-news-list strong {
  color: #222d26;
  font-size: 0.78rem;
  line-height: 1.32;
}

.whome-news-list small {
  margin-top: 0.3rem;
  color: #737f78;
  font-size: 0.68rem;
  white-space: nowrap;
}

.whome-news-list .whome-news-empty {
  display: flex;
  align-items: center;
  min-height: 10rem;
  color: #6d7971;
  font-size: 0.78rem;
}

.whome-card--news.is-loading .whome-news-list {
  opacity: 0.72;
}

.whome-news-placeholder strong {
  color: #7a877f;
}

.whome-system-list article {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) 2.8rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.66rem;
  border-radius: 0.42rem;
}

.whome-system-list article.is-warning { background: #fff8e9; color: #916100; }
.whome-system-list article.is-info { background: #edf6ff; color: #2a6eaf; }
.whome-system-list article.is-danger { background: #fff0f0; color: #bc4141; }

.whome-system-list strong,
.whome-system-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whome-system-list strong { font-size: 0.72rem; }
.whome-system-list small { margin-top: 0.12rem; font-size: 0.64rem; opacity: 0.78; }
.whome-system-list time { color: #7b8880; font-size: 0.62rem; text-align: right; }

.whome-card--omie .whome-card__head > span {
  flex: none;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #eef8f1;
  color: #287746;
  font-size: 0.64rem;
  font-weight: 850;
}

.whome-omie {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.whome-omie__summary {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 0.45rem;
}

.whome-omie__summary div {
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid #e3eee7;
  border-radius: 0.45rem;
  background: #fbfefc;
}

.whome-omie__summary small {
  display: block;
  overflow: hidden;
  color: #6b776f;
  font-size: 0.6rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whome-omie__summary strong {
  display: block;
  margin-top: 0.2rem;
  color: #1d2821;
  font-size: 0.88rem;
  line-height: 1;
}

.whome-omie__chart {
  height: 6.7rem;
  overflow: hidden;
  border: 1px solid #e3eee7;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #fbfefc 0%, #f5faf6 100%);
}

.whome-omie__chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.whome-omie__grid {
  fill: none;
  stroke: #dfeae4;
  stroke-width: 1;
}

.whome-omie__line {
  fill: none;
  stroke: #2e88d8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.whome-card--omie.is-loading .whome-omie {
  opacity: 0.72;
}

.whome-card--omie.has-error .whome-omie__line {
  stroke: #d88900;
}

.whome-omie__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #6b776f;
  font-size: 0.65rem;
  font-weight: 750;
}

.whome-region {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.4rem;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.whome-region__map {
  position: relative;
  min-height: 9rem;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 55% 35%, rgba(37, 163, 70, 0.24) 0 0.42rem, transparent 0.45rem),
    radial-gradient(circle at 38% 56%, rgba(255, 176, 45, 0.3) 0 0.42rem, transparent 0.45rem),
    radial-gradient(circle at 64% 70%, rgba(225, 65, 65, 0.24) 0 0.42rem, transparent 0.45rem),
    linear-gradient(135deg, #e8f3e8, #dcecdf);
  clip-path: polygon(30% 5%, 70% 10%, 88% 34%, 77% 80%, 52% 95%, 22% 80%, 10% 46%);
}

.whome-region__pin {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #25a346;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}

.whome-region__pin--north { top: 24%; left: 50%; }
.whome-region__pin--center { top: 54%; left: 40%; background: #ffb02d; }
.whome-region__pin--south { top: 73%; left: 55%; }
.whome-region__pin--critical { top: 62%; left: 70%; background: #e14141; }

.whome-region__legend {
  display: grid;
  gap: 0.45rem;
}

.whome-region__legend span,
.whome-status__legend span {
  display: grid;
  grid-template-columns: 0.7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.34rem;
  color: #3a473f;
  font-size: 0.68rem;
  font-weight: 850;
}

.whome-region__legend small {
  grid-column: 2 / -1;
  color: #7a877f;
  font-size: 0.6rem;
  font-weight: 650;
}

.whome-region__legend b,
.whome-status__legend b {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
}

.is-normal { background: #25a346; }
.is-attention { background: #ffb02d; }
.is-critical { background: #e14141; }

.whome-side .whome-card { min-height: 6.1rem; }

.whome-weather {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin-top: 0.5rem;
}

.whome-weather > .material-symbols-outlined {
  grid-row: span 2;
  color: #f4b72b;
  font-size: 2.5rem;
}

.whome-weather strong {
  font-size: 1.65rem;
  line-height: 1;
}

.whome-weather small {
  color: #77837c;
  font-size: 0.68rem;
}

.whome-weather div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.4rem;
  color: #52615a;
  font-size: 0.68rem;
  text-align: center;
}

.whome-weather p {
  grid-column: 1 / -1;
  min-height: 1rem;
  margin: 0.15rem 0 0;
  color: #7a877f;
  font-size: 0.62rem;
  font-weight: 750;
  text-align: center;
}

.whome-card--weather.is-loading .whome-weather {
  opacity: 0.72;
}

.whome-card--weather.has-error .whome-weather > .material-symbols-outlined {
  color: #d88900;
}

.whome-status {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.whome-status__ring {
  width: 4.2rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: conic-gradient(#25a346 0 72%, #ffb02d 72% 90%, #e14141 90% 100%);
}

.whome-status__ring::after {
  content: "";
  display: block;
  width: 2.55rem;
  aspect-ratio: 1;
  margin: 0.82rem;
  border-radius: 999px;
  background: #fff;
}

.whome-status__legend {
  display: grid;
  gap: 0.35rem;
}

.whome-status__legend strong {
  color: #24302a;
  font-size: 0.68rem;
}

.whome-status p {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  color: #69756e;
  font-size: 0.68rem;
  text-align: center;
}

.whome-team-table {
  display: grid;
  margin-top: 0.65rem;
}

.whome-team-table > div {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.2fr 6.8rem;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.45rem;
  border-bottom: 1px solid #eef3ef;
  color: #59665e;
  font-size: 0.7rem;
}

.whome-team-table > div:first-child {
  min-height: 2rem;
  color: #748179;
  font-size: 0.66rem;
  font-weight: 850;
}

.whome-team-table > div:last-child { border-bottom: 0; }
.whome-team-table strong { color: #25312a; font-size: 0.72rem; }

.whome-team-table em {
  justify-self: start;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #dcf5d8;
  color: #25833b;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
}

.whome-team-table em.is-travel {
  background: #e2f0ff;
  color: #277fd5;
}

.whome-campaign-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.whome-campaign {
  display: grid;
  align-content: end;
  min-height: 7.2rem;
  padding: 0.9rem;
  border-radius: 0.48rem;
  overflow: hidden;
  color: #fff;
}

.whome-campaign--green { background: linear-gradient(135deg, #4b8d55, #9dc08b); }
.whome-campaign--blue { background: linear-gradient(135deg, #2381a9, #87c7dd 62%, #d8efd6); }
.whome-campaign--sage { background: linear-gradient(135deg, #4f8a57, #d5e9c6); }

.whome-campaign strong {
  max-width: 10rem;
  font-size: 1.25rem;
  line-height: 1.08;
}

.whome-campaign span {
  max-width: 12rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 1280px) {
  .whome-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .whome-card--task,
  .whome-card--agenda,
  .whome-card--news { grid-column: span 12; }
  .whome-card--messages,
  .whome-card--activity,
  .whome-card--region,
  .whome-side { grid-column: span 12; }
  .whome-card--teams,
  .whome-card--campaigns { grid-column: span 12; }
}

@media (max-width: 820px) {
  .whome-dashboard-head { align-items: start; flex-direction: column; }
  .whome-primary-action { width: 100%; }
  .whome-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whome-card--task,
  .whome-card--agenda,
  .whome-card--news,
  .whome-card--messages,
  .whome-card--activity,
  .whome-card--region,
  .whome-side,
  .whome-card--teams,
  .whome-card--campaigns { grid-column: 1 / -1; }
  .whome-task { max-width: none; }
  .whome-region { grid-template-columns: 1fr; }
  .whome-campaign-list { grid-template-columns: 1fr; }
  .whome-team-table > div { grid-template-columns: 1fr 1fr; }
  .whome-team-table > div:first-child { display: none; }
}

@media (max-width: 520px) {
  .whome-page { padding: 0.75rem; }
  .whome-kpis { grid-template-columns: 1fr; }
  .whome-kpi { min-height: 4.8rem; }
  .whome-timeline li {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.55rem 0;
  }
  .whome-timeline__dot,
  .whome-timeline em { display: none; }
  .whome-news-list article { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .whome-status { grid-template-columns: 1fr; justify-items: center; }
}
