:root {
  --bg: #f4efe6;
  --bg-accent: #e7dcc7;
  --surface: rgba(255, 250, 243, 0.92);
  --surface-strong: #fffdf9;
  --text: #221d19;
  --muted: #6c6258;
  --accent: #0f6a42;
  --accent-soft: #e2f2e8;
  --shadow: 0 28px 70px rgba(92, 70, 43, 0.14);
  --border: rgba(99, 78, 54, 0.1);
  --dashboard-max-width: 2560px;
  --dashboard-gap: clamp(14px, 1vw, 28px);
  --dashboard-padding-inline: clamp(16px, 1.6vw, 40px);
  --panel-padding: clamp(18px, 1.35vw, 32px);
  --panel-radius: clamp(26px, 2vw, 40px);
  --section-title-size: clamp(1.45rem, 1vw + 1.05rem, 2.25rem);
  --body-text-size: clamp(1.02rem, 0.4vw + 0.9rem, 1.3rem);
  --seller-row-height: clamp(42px, 1.65vw, 60px);
  --seller-row-gap: clamp(8px, 0.55vw, 14px);
  --seller-score-width: 2.2ch;
  --seller-row-count: 10;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 28%),
    radial-gradient(circle at bottom right, rgba(214, 173, 116, 0.18), transparent 24%),
  linear-gradient(135deg, var(--bg), var(--bg-accent));
}

body.dashboard-page {
  overflow-x: hidden;
}

.dashboard {
  width: min(var(--dashboard-max-width), calc(100% - (var(--dashboard-padding-inline) * 2)));
  margin: 0 auto;
  padding: clamp(10px, 0.9vw, 22px) 0 clamp(14px, 1.2vw, 28px);
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}

.top-section {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: rgba(255, 250, 243, 0.84);
  box-shadow: var(--shadow);
  padding: var(--panel-padding);
  min-height: clamp(150px, 14vh, 240px);
}

.top-section-weather {
  position: relative;
  overflow: hidden;
}

.top-panel-detail {
  margin: 0;
}

.top-panel-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 0;
  padding: 0;
}

.top-panel-value {
  display: block;
  font-size: clamp(1.8rem, 1.5vw + 1.2rem, 3.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.top-panel-detail {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
  font-size: var(--body-text-size);
}

.top-panel-footer {
  margin: auto 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 0.4vw + 0.82rem, 1.14rem);
  text-align: left;
}

.top-panel-footer-center {
  text-align: left;
  font-size: clamp(4rem, 3.4vw + 0.8rem, 6rem);
  line-height: 1.02;
}

.top-panel-footer-birthday {
  display: block;
  width: 100%;
  overflow: hidden;
}

.birthday-icon {
  font-size: clamp(4rem, 3.2vw + 0.8rem, 5.6rem);
  line-height: 1;
  flex: 0 0 auto;
}

.top-panel-footer-marquee-text {
  font-size: inherit;
  line-height: inherit;
}

.top-panel-footer-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
}

.top-panel-footer-marquee-track {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 100%;
  white-space: nowrap;
}

.top-panel-footer-marquee.is-scrolling .top-panel-footer-marquee-track {
  justify-content: flex-start;
  animation: footer-marquee 24s linear infinite;
}

.top-panel-footer-marquee-text {
  display: inline-block;
  white-space: nowrap;
}

@keyframes footer-marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes sector-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-1 * var(--sector-marquee-distance, 0px)));
  }
}

.top-panel-value-accent {
  color: var(--accent);
}

.dashboard-nps .top-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
}

.dashboard-nps .top-panel-body > div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.top-panel-nps-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.top-panel-nps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.dashboard-nps .top-panel-value-accent {
  font-size: clamp(3.2rem, 3.4vw, 6.4rem);
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  flex: 0 0 auto;
}

.top-panel-nps-emoji {
  font-size: clamp(2.7rem, 2.9vw, 5.4rem);
  line-height: 1;
}

.top-panel-nps-objective {
  margin: 0;
  font-size: clamp(1.15rem, 0.85vw + 0.8rem, 2rem);
  line-height: 1;
  color: var(--muted);
}

.dashboard-nps .top-panel-detail {
  margin-top: 6px;
}

.dashboard-nps .top-panel-footer {
  text-align: left;
}

.top-panel-body-clock {
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
}

.top-panel-body-date-time {
  justify-content: space-between;
  gap: 24px;
}

.top-panel-body-date-time-stack {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.top-panel-date-time-value {
  font-size: clamp(2.7rem, 3.5vw, 6.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.top-panel-date-value {
  font-size: clamp(1.1rem, 0.8vw + 0.8rem, 2.1rem);
}

#currentDate,
#currentTime {
  flex: 0 0 auto;
}

#currentDate {
  min-width: 10ch;
  text-align: center;
}

#currentTime {
  min-width: 8ch;
  text-align: center;
}

.weather-main {
  display: flex;
  flex-direction: column;
}

.weather-main-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1vw, 22px);
  min-height: clamp(92px, 9vh, 160px);
}

.weather-main-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(100% - clamp(120px, 10vw, 240px));
}

.weather-main-icon {
  position: absolute;
  top: clamp(8px, 0.8vw, 18px);
  right: clamp(16px, 1.2vw, 28px);
  width: clamp(92px, 8vw, 180px);
  height: clamp(92px, 8vw, 180px);
  pointer-events: none;
}

.weather-main-right {
  align-items: flex-end;
  justify-content: flex-start;
  margin-left: auto;
  text-align: right;
}

.weather-main-icon {
  margin-left: auto;
}

.weather-main-label {
  margin-top: 0;
}

.weather-main-range {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 0.48vw + 0.9rem, 1.28rem);
  line-height: 1.2;
}

.weather-main-range span {
  color: var(--muted);
}

.weather-main-wind {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.4vw + 0.84rem, 1.18rem);
  line-height: 1.2;
}

.top-section-weather .weather-panel-body {
  justify-content: stretch;
}

.top-section-weather .weather-main {
  width: 100%;
  align-items: stretch;
}

.top-section-weather .weather-panel-body {
  display: flex;
}

.top-section-weather .weather-main-right {
  margin-left: 0;
  width: 100%;
  text-align: left;
}

.weather-inline-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.weather-inline-head h2 {
  margin: 0;
}

.weather-inline-temp {
  font-size: 1.8rem;
  line-height: 1;
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 0.55vw, 12px);
  margin-top: clamp(12px, 1vw, 24px);
}

.forecast-item {
  min-width: 0;
  padding: clamp(8px, 0.65vw, 14px);
  border-radius: clamp(14px, 1vw, 20px);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  position: relative;
}

.forecast-day,
.forecast-temps,
.forecast-label {
  margin: 0;
}

.forecast-day {
  color: var(--muted);
  font-size: clamp(0.96rem, 0.3vw + 0.82rem, 1.1rem);
  font-weight: 700;
}

.forecast-icon {
  width: clamp(20px, 1.2vw, 30px);
  height: clamp(20px, 1.2vw, 30px);
  position: absolute;
  top: clamp(8px, 0.7vw, 12px);
  right: clamp(8px, 0.7vw, 12px);
}

.forecast-temps {
  margin-top: clamp(24px, 1.8vw, 36px);
  font-size: clamp(1.12rem, 0.55vw + 0.94rem, 1.45rem);
  font-weight: 700;
}

.forecast-temps span {
  color: var(--muted);
}

.forecast-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(0.92rem, 0.26vw + 0.8rem, 1.06rem);
  line-height: 1.15;
}

.forecast-wind {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 0.18vw + 0.78rem, 0.98rem);
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.reviews-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(16px, 1.15vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: rgba(255, 250, 243, 0.84);
  box-shadow: var(--shadow);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(22rem, 1.2fr) minmax(20rem, 1fr) minmax(24rem, 1.05fr);
  grid-template-rows: minmax(0, 1.02fr) minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: var(--dashboard-gap);
  margin-top: 0;
  align-items: stretch;
  min-height: calc(100dvh - clamp(120px, 12vh, 190px));
  grid-template-areas:
    "weather date challenge"
    "info nps challenge"
    "reviews reviews challenge";
}

.dashboard-weather { grid-area: weather; }
.dashboard-date { grid-area: date; }
.dashboard-challenge { grid-area: challenge; }
.dashboard-info { grid-area: info; }
.dashboard-nps { grid-area: nps; }
.dashboard-reviews { grid-area: reviews; }

.info-section,
.reviews-section,
.challenge-section {
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: rgba(255, 250, 243, 0.84);
  box-shadow: var(--shadow);
  min-height: 0;
}

.info-section {
  padding: clamp(16px, 1.1vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.section-heading-start {
  justify-content: flex-start;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: var(--section-title-size);
}

.info-card {
  padding: clamp(16px, 1vw, 24px);
  border-radius: clamp(16px, 1vw, 24px);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  min-height: clamp(120px, 10vh, 200px);
}

.info-carousel {
  position: relative;
  flex: 1;
  min-height: clamp(120px, 10vh, 200px);
}

.info-slide {
  display: none;
  height: 100%;
}

.info-slide-active {
  display: block;
}

.info-label,
.info-value {
  margin: 0;
}

.info-label {
  color: var(--muted);
  font-size: clamp(0.92rem, 0.32vw + 0.8rem, 1.06rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-value {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.15rem, 0.7vw + 0.94rem, 1.7rem);
  line-height: 1.42;
}

.reviews-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dashboard-gap);
  flex: 1;
  align-content: stretch;
  grid-auto-rows: 1fr;
}

.review-card {
  padding: clamp(16px, 1vw, 24px);
  border-radius: clamp(18px, 1.1vw, 26px);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: 0 10px 30px rgba(67, 51, 30, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: clamp(240px, 23vh, 400px);
  max-height: clamp(240px, 23vh, 400px);
  overflow: hidden;
}

.reviews-section {
  --review-card-count: 4;
}

.dashboard-reviews .reviews-list {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.dashboard-reviews .review-card {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.reviews-section-compact .review-card {
  min-height: 0;
}

.reviews-section-compact .review-text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.challenge-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(16px, 1.15vw, 28px);
  grid-column: span 1;
}

.sector-list {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
  align-items: start;
}

.sector-list-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  --sector-name-visible-width: min(18ch, 100%);
}

.sector-list-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  --sector-name-visible-width: min(12ch, 100%);
}

.sector-card {
  padding: clamp(12px, 0.9vw, 18px);
  border-radius: clamp(18px, 1vw, 24px);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.sector-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--seller-score-width);
  align-items: center;
  margin-bottom: 8px;
  padding: 0 clamp(8px, 0.62vw, 13px);
  gap: 8px;
}

.sector-name,
.sector-total,
.seller-name {
  margin: 0;
}

.sector-name-wrap {
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.sector-name {
  font-size: clamp(0.68rem, 0.29vw + 0.58rem, 0.82rem);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.05;
}

.sector-name-wrap.is-scrolling .sector-name {
  display: inline-flex;
  align-items: center;
  animation: sector-marquee var(--sector-marquee-duration, 14s) linear infinite;
  will-change: transform;
}

.sector-name-wrap.is-scrolling .sector-name::after {
  content: attr(data-text);
  padding-left: var(--sector-marquee-gap, 32px);
}

.sector-total {
  color: var(--muted);
  font-size: clamp(0.68rem, 0.29vw + 0.58rem, 0.82rem);
  font-weight: 700;
  width: var(--seller-score-width);
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.seller-list {
  display: grid;
  gap: var(--seller-row-gap);
  flex: 1;
  grid-auto-rows: var(--seller-row-height);
  min-height: calc(
    (var(--seller-row-height) * var(--seller-row-count)) +
    (var(--seller-row-gap) * (var(--seller-row-count) - 1))
  );
  align-content: start;
}

.seller-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--seller-score-width);
  align-items: center;
  gap: 8px;
  min-height: var(--seller-row-height);
  padding: clamp(9px, 0.66vw, 13px) clamp(8px, 0.62vw, 13px);
  border-radius: 15px;
  background: var(--accent-soft);
}

.seller-name {
  font-size: clamp(0.78rem, 0.32vw + 0.6rem, 0.93rem);
  line-height: 1.14;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-score {
  color: var(--accent);
  font-size: clamp(0.78rem, 0.32vw + 0.6rem, 0.93rem);
  line-height: 1.14;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: var(--seller-score-width);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.review-card-empty {
  text-align: center;
}

.review-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: clamp(42px, 2.1vw, 62px);
  height: clamp(42px, 2.1vw, 62px);
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.review-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: #1f1a17;
}

.review-name,
.review-meta,
.review-text {
  margin: 0;
}

.review-name {
  font-weight: 700;
  font-size: clamp(1.02rem, 0.4vw + 0.86rem, 1.22rem);
}

.review-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(0.92rem, 0.28vw + 0.8rem, 1.06rem);
}

.review-meta .review-stars {
  color: #d6a400;
}

.review-text {
  margin-top: 10px;
  color: var(--text);
  line-height: 1.34;
  font-size: clamp(0.98rem, 0.36vw + 0.84rem, 1.14rem);
}

.review-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.92rem, 0.26vw + 0.8rem, 1.02rem);
}

.meta,
.status {
  color: var(--muted);
}

.meta {
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-body {
  min-height: 100vh;
  padding: 24px;
}

.admin-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: 34px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-title,
.admin-subtitle,
.admin-status {
  margin: 0;
}

.admin-title {
  font-size: 2rem;
}

.admin-subtitle {
  margin-top: 10px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.45;
}

.admin-status {
  margin-bottom: 18px;
  color: var(--muted);
}

.admin-status-error {
  color: #a13232;
}

.admin-subtitle-compact {
  margin-top: 6px;
  max-width: none;
  font-size: 0.95rem;
}

.admin-block {
  margin-bottom: 24px;
}

.admin-block-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-section-title {
  margin: 6px 0 0;
  font-size: 1.35rem;
}

.admin-info-list {
  display: grid;
  gap: 10px;
}

.admin-nps-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
}

.admin-nps-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nps-inline-label {
  margin-right: 4px;
}

.admin-nps-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.admin-nps-input {
  width: 130px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.admin-info-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) 130px;
  gap: 10px;
  align-items: start;
}

.info-value-textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 250, 243, 0.65);
}

.admin-tab-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.admin-link,
.admin-button,
.admin-icon-button {
  border: 0;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}

.admin-shell-login {
  max-width: 620px;
}

.admin-login-panel {
  margin-top: 36px;
}

.admin-header-login {
  margin-bottom: 8px;
}

.admin-login-form {
  display: grid;
  gap: 16px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field-label {
  font-weight: 700;
  color: var(--text);
}

.admin-button-full {
  width: 100%;
}

.admin-link,
.admin-button {
  padding: 12px 16px;
  text-decoration: none;
}

.admin-link {
  color: var(--text);
  background: rgba(255, 250, 243, 0.65);
  border: 1px solid var(--border);
}

.admin-button {
  color: white;
  background: var(--accent);
}

.admin-button-secondary,
.admin-icon-button {
  color: var(--text);
  background: var(--accent-soft);
}

.admin-sector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-sector-catalog {
  display: grid;
  gap: 10px;
}

.admin-sector-catalog-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px;
  gap: 10px;
  align-items: center;
}

.admin-employees-list {
  display: grid;
  gap: 10px;
}

.admin-employee-separator {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-employee-head {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) 84px 84px minmax(180px, 0.82fr) 92px 112px;
  grid-template-areas: "name day month sector status action";
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-employee-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) 84px 84px minmax(180px, 0.82fr) 92px 112px;
  grid-template-areas: "name day month sector status action";
  gap: 10px;
  align-items: center;
}

.admin-employee-head-name,
.employee-name-input {
  grid-area: name;
}

.employee-name-input {
  font-size: 2.8rem;
  font-weight: 700;
  padding-top: 16px;
  padding-bottom: 16px;
}

.admin-employee-head-day,
.employee-day-input {
  grid-area: day;
}

.admin-employee-head-month,
.employee-month-input {
  grid-area: month;
}

.admin-employee-head-sector,
.employee-sector-input {
  grid-area: sector;
}

.admin-employee-head-status,
.admin-employee-status {
  grid-area: status;
}

.admin-employee-head-action,
.employee-remove-button {
  grid-area: action;
}

.admin-employee-row-inactive {
  opacity: 0.82;
}

.admin-employee-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  text-align: center;
}

.admin-employee-status-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.admin-employee-status-inactive {
  color: var(--muted);
  background: rgba(255, 250, 243, 0.65);
}

.employee-sector-input {
  min-width: 0;
}

.employee-remove-button {
  justify-self: end;
  width: 112px;
  white-space: nowrap;
}

.admin-sector-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-sector-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: white;
}

.admin-sellers {
  display: grid;
  gap: 10px;
}

.admin-seller-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

.admin-static-name {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 2px;
  font-weight: 700;
}

.admin-icon-button {
  padding: 12px 14px;
}

@media (max-width: 900px) {
  .admin-header {
    flex-direction: column;
  }

  .admin-sector-list {
    grid-template-columns: 1fr;
  }

  .admin-block-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-info-row,
  .admin-seller-row,
  .admin-employee-head,
  .admin-employee-row,
  .admin-sector-catalog-row {
    grid-template-columns: 1fr;
  }

  .top-grid {
    grid-template-columns: 1fr;
  }

  .weather-forecast {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-nps-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
    grid-template-areas:
      "weather date"
      "challenge challenge"
      "info nps"
      "reviews reviews";
  }

  .sector-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-forecast {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1920px) {
  .top-panel-body-date-time-stack {
    gap: 18px;
  }

  .top-panel-footer-marquee.is-scrolling .top-panel-footer-marquee-track {
    animation-duration: 32s;
  }

  .dashboard-grid {
    grid-template-columns: minmax(26rem, 1.12fr) minmax(22rem, 0.98fr) minmax(26rem, 1.02fr);
  }

  .reviews-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-section-compact .review-text {
    -webkit-line-clamp: 6;
  }
}

@media (min-width: 900px) {
  body.dashboard-page {
    height: 100dvh;
    overflow: hidden;
  }

  body.dashboard-page .dashboard {
    height: 100dvh;
    overflow: hidden;
  }

  body.dashboard-page .dashboard-grid {
    height: 100%;
    min-height: 0;
  }

  body.dashboard-page .dashboard-grid > * {
    min-height: 0;
  }

  body.dashboard-page .top-section,
  body.dashboard-page .info-section,
  body.dashboard-page .reviews-section,
  body.dashboard-page .challenge-section {
    overflow: hidden;
  }
}

@media (min-height: 1201px) {
  .top-panel-date-time-value {
    font-size: clamp(8rem, 7.2vw, 12.8rem);
  }

  .top-panel-date-value {
    font-size: clamp(3.2rem, 2.4vw + 1rem, 4.8rem);
  }

  .top-panel-footer-center,
  .birthday-icon {
    font-size: clamp(7rem, 5vw + 1rem, 10rem);
  }

  .top-panel-nps-objective {
    font-size: clamp(2.2rem, 1.5vw + 0.8rem, 4rem);
  }

  .dashboard-nps .top-panel-value-accent {
    font-size: clamp(6.4rem, 5.6vw, 11.2rem);
  }

  .top-panel-nps-emoji {
    font-size: clamp(4.4rem, 4vw, 7.2rem);
  }

  .weather-main-label {
    font-size: clamp(1.4rem, 1vw + 1rem, 2.1rem);
  }

  .weather-main-range,
  .weather-main-wind {
    font-size: clamp(1.5rem, 0.75vw + 1rem, 1.9rem);
  }

  .info-label {
    font-size: clamp(1rem, 0.4vw + 0.85rem, 1.2rem);
  }

  .info-value {
    font-size: clamp(1.3rem, 0.75vw + 1rem, 2rem);
  }

  .review-name {
    font-size: clamp(1.15rem, 0.45vw + 0.95rem, 1.4rem);
  }

  .review-meta {
    font-size: clamp(1rem, 0.3vw + 0.85rem, 1.2rem);
  }

  .review-text {
    font-size: clamp(1.05rem, 0.4vw + 0.9rem, 1.25rem);
  }
}

@media (min-width: 2560px) {
  :root {
    --dashboard-gap: 28px;
    --panel-padding: 30px;
    --section-title-size: 2.35rem;
    --body-text-size: 1.34rem;
  }

  .top-panel-date-time-value {
    font-size: 8.6rem;
  }

  .top-panel-date-value,
  .top-panel-nps-objective {
    font-size: 2.8rem;
  }

  .dashboard-nps .top-panel-value-accent,
  .top-panel-nps-emoji {
    font-size: 7.4rem;
  }
}

@media (max-width: 640px) {
  body.dashboard-page {
    overflow: auto;
  }

  .dashboard {
    width: min(100% - 20px, 1100px);
    padding: 20px 0 32px;
  }

  .info-section,
  .reviews-section,
  .review-card,
  .challenge-section,
  .sector-card {
    border-radius: 22px;
  }

  .reviews-list,
  .sector-list {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "weather"
      "date"
      "challenge"
      "info"
      "nps"
      "reviews";
  }

  .weather-main-text {
    max-width: calc(100% - 96px);
  }

  .review-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-height: 900px) {
  :root {
    --dashboard-gap: 12px;
    --dashboard-padding-inline: 18px;
    --panel-padding: 14px;
    --panel-radius: 26px;
    --section-title-size: 1.45rem;
    --body-text-size: 0.98rem;
    --seller-row-height: 34px;
    --seller-row-gap: 6px;
    --seller-score-width: 2.5ch;
  }

  .dashboard {
    padding: 8px 0 12px;
  }

  .top-section,
  .info-section,
  .reviews-section,
  .challenge-section {
    padding: 14px;
  }

  .top-section {
    min-height: 120px;
  }

  .top-panel-value {
    font-size: clamp(1.5rem, 1.2vw + 1rem, 2.6rem);
  }

  .top-panel-footer,
  .top-panel-footer-center,
  .birthday-icon {
    font-size: 3rem;
  }

  .dashboard-nps .top-panel-value-accent {
    font-size: clamp(3rem, 3.5vw, 5.6rem);
  }

  .top-panel-nps-emoji {
    font-size: clamp(2.6rem, 2.6vw, 4.6rem);
  }

  .top-panel-date-time-value {
    font-size: clamp(2.3rem, 3vw, 4.8rem);
  }

  .top-panel-date-value,
  .top-panel-nps-objective {
    font-size: clamp(0.9rem, 0.7vw + 0.6rem, 1.36rem);
  }

  .weather-main-summary {
    min-height: 72px;
  }

  .weather-main-icon {
    width: clamp(72px, 6vw, 128px);
    height: clamp(72px, 6vw, 128px);
  }

  .weather-forecast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .forecast-item {
    padding: 8px;
  }

  .forecast-temps {
    margin-top: 18px;
  }

  .info-card,
  .info-carousel {
    min-height: 100px;
  }

  .review-card {
    min-height: clamp(180px, 18vh, 290px);
    max-height: clamp(180px, 18vh, 290px);
    padding: 14px;
  }

  .reviews-section-compact .review-text {
    -webkit-line-clamp: 6;
  }

  .sector-card {
    padding: 10px;
  }

  .sector-head {
    margin-bottom: 6px;
    padding: 0 8px;
  }

  .seller-row {
    padding: 6px 8px;
  }
}

@media (max-height: 1200px) {
  :root {
    --dashboard-gap: 8px;
    --dashboard-padding-inline: 14px;
    --panel-padding: 10px;
    --panel-radius: 22px;
    --section-title-size: 1.1rem;
    --body-text-size: 0.88rem;
    --seller-row-height: 28px;
    --seller-row-gap: 4px;
    --seller-score-width: 2.25ch;
  }

  .dashboard {
    padding: 4px 0 8px;
  }

  .dashboard-grid {
    grid-template-rows: minmax(0, 0.82fr) minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 8px;
  }

  .top-section,
  .info-section,
  .reviews-section,
  .challenge-section {
    padding: 10px;
  }

  .top-section {
    min-height: 88px;
  }

  .section-heading {
    margin-bottom: 6px;
  }

  .section-heading h2 {
    margin-top: 2px;
  }

  .top-panel-value {
    font-size: clamp(1.25rem, 1vw + 0.8rem, 2rem);
  }

  .top-panel-detail,
  .top-panel-footer,
  .top-panel-footer-center,
  .birthday-icon,
  .info-label,
  .weather-main-range,
  .weather-main-wind,
  .forecast-day,
  .forecast-label,
  .forecast-wind,
  .review-meta,
  .seller-name,
  .seller-score,
  .sector-name,
  .sector-total {
    font-size: 0.82rem;
  }

  .weather-main-label {
    font-size: 1rem;
  }

  .info-value {
    font-size: 1.02rem;
  }

  .review-name {
    font-size: 0.95rem;
  }

  .review-text {
    font-size: 0.9rem;
  }

  .dashboard-nps .top-panel-value-accent {
    font-size: clamp(5.2rem, 5.6vw, 8.8rem);
    line-height: 0.95;
  }

  .top-panel-nps-emoji {
    font-size: clamp(3.5rem, 3.2vw, 5.6rem);
  }

  .top-panel-date-time-value {
    font-size: clamp(5rem, 5.3vw, 8rem);
    line-height: 0.95;
  }

  .top-panel-date-value,
  .top-panel-nps-objective {
    font-size: clamp(1.6rem, 1.4vw + 0.8rem, 2.6rem);
  }

  .weather-main-summary {
    min-height: 52px;
  }

  .weather-main-label {
    font-size: 1.2rem;
  }

  .weather-main-range,
  .weather-main-wind {
    font-size: 1.15rem;
  }

  .weather-main-icon {
    width: clamp(56px, 4.8vw, 96px);
    height: clamp(56px, 4.8vw, 96px);
    top: 4px;
    right: 8px;
  }

  .weather-forecast {
    gap: 6px;
  }

  .forecast-item {
    padding: 6px;
    border-radius: 14px;
  }

  .forecast-temps {
    margin-top: 14px;
    font-size: 0.95rem;
  }

  .info-card,
  .info-carousel {
    min-height: 78px;
  }

  .review-card {
    min-height: 132px;
    max-height: 132px;
    padding: 10px;
    border-radius: 18px;
  }

  .reviews-list {
    gap: 8px;
  }

  .reviews-section-compact .review-text {
    -webkit-line-clamp: 4;
  }

  .challenge-section {
    padding: 10px;
  }

  .sector-list {
    gap: 6px;
  }

  .sector-card {
    padding: 8px;
    border-radius: 16px;
  }

  .sector-head {
    margin-bottom: 4px;
    padding: 0 6px;
    gap: 8px;
  }

  .seller-row {
    padding: 5px 6px;
    border-radius: 10px;
  }

  .seller-list {
    gap: 4px;
  }

  .review-author,
  .review-head {
    gap: 8px;
  }

  .review-avatar {
    width: 36px;
    height: 36px;
  }

  .employee-name-input {
    font-size: 2.4rem;
  }

  .sector-name {
    font-size: 0.95rem;
  }

  .seller-name {
    font-size: 0.92rem;
  }

  .seller-score,
  .sector-total {
    font-size: 0.94rem;
  }
}

@media (max-height: 760px) {
  :root {
    --dashboard-gap: 10px;
    --panel-padding: 12px;
    --section-title-size: 1.25rem;
    --body-text-size: 0.92rem;
    --seller-row-height: 30px;
    --seller-row-gap: 5px;
  }

  .dashboard {
    padding: 6px 0 10px;
  }

  .top-section,
  .info-section,
  .reviews-section,
  .challenge-section {
    padding: 12px;
  }

  .top-section {
    min-height: 104px;
  }

  .top-panel-body-date-time-stack,
  .top-panel-nps-content {
    gap: 10px;
  }

  .top-panel-date-time-value {
    font-size: clamp(1.9rem, 2.6vw, 3.8rem);
  }

  .dashboard-nps .top-panel-value-accent {
    font-size: clamp(2.1rem, 2.4vw, 3.8rem);
  }

  .top-panel-nps-emoji {
    font-size: clamp(1.8rem, 1.8vw, 3.2rem);
  }

  .weather-main-summary {
    min-height: 64px;
  }

  .weather-forecast {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
  }

  .forecast-item {
    padding: 6px;
  }

  .info-card,
  .info-carousel {
    min-height: 86px;
  }

  .review-card {
    min-height: clamp(160px, 16vh, 250px);
    max-height: clamp(160px, 16vh, 250px);
  }

  .reviews-section-compact .review-text {
    -webkit-line-clamp: 4;
  }

  .sector-list {
    gap: 8px;
  }

  .seller-row {
    min-height: var(--seller-row-height);
  }
}

body.dashboard-page .top-panel-footer-center,
body.dashboard-page .top-panel-footer-marquee-text,
body.dashboard-page .birthday-icon {
  font-size: clamp(1.4rem, 1.15vw + 0.3rem, 2rem) !important;
  line-height: 1.02;
}

body.dashboard-page .seller-name {
  font-size: clamp(0.86rem, 0.58vw + 0.39rem, 1.29rem) !important;
}

body.dashboard-page .sector-name {
  font-size: clamp(0.7rem, 0.48vw + 0.42rem, 1rem) !important;
}

body.dashboard-page .sector-total {
  font-size: clamp(0.86rem, 0.58vw + 0.39rem, 1.29rem) !important;
}

body.dashboard-page .dashboard-challenge {
  --seller-row-height: clamp(44px, 1.72vw, 62px);
  --seller-row-gap: clamp(16px, 1.1vw, 24px);
}

body.dashboard-page .sector-card {
  align-self: start;
}

body.dashboard-page .seller-list {
  flex: 0 0 auto;
  min-height: 0;
}

body.dashboard-page .seller-row {
  padding: clamp(9px, 0.7vw, 13px) clamp(8px, 0.68vw, 14px);
  border-radius: 16px;
}

body.dashboard-page .seller-score {
  font-size: clamp(0.82rem, 0.43vw + 0.6rem, 1.12rem) !important;
}

body.dashboard-page .sector-head {
  padding: 0 clamp(8px, 0.62vw, 14px);
  gap: 8px;
}

body.dashboard-page .sector-total {
  font-size: clamp(0.82rem, 0.43vw + 0.6rem, 1.12rem) !important;
}

body.admin-body .employee-name-input {
  font-size: clamp(3.2rem, 2.2vw + 1rem, 4.8rem) !important;
}
