.esh-dashboard {
  --esh-ink: #163a3b;
  --esh-muted: #5c7777;
  --esh-accent: #21b7ac;
  --esh-pale: #e8f5f1;
  --esh-line: #dceae7;
  box-sizing: border-box;
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
  background: #102b2e;
  color: #f2faf7;
}

.esh-dashboard *, .esh-dashboard *::before, .esh-dashboard *::after { box-sizing: inherit; }

.esh-dashboard__inner { max-width: 1200px; margin: 0 auto; }

.esh-dashboard__intro { max-width: 650px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.esh-dashboard__eyebrow { display: block; margin-bottom: 1rem; color: #71d8cd; font-size: .72rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.esh-dashboard__intro h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.08; font-weight: 600; letter-spacing: -.04em; }
.esh-dashboard__intro p { max-width: 58ch; margin: 0; color: #bad2cd; font-size: clamp(.98rem, 1.3vw, 1.12rem); line-height: 1.7; }

.esh-dashboard__frame { margin: 0; padding: clamp(.5rem, 1.5vw, 1rem); border: 1px solid #416566; border-radius: 25px; background: #173b3e; box-shadow: 0 30px 80px #061d1f80; }
.esh-dashboard__screen { display: grid; grid-template-columns: 68px minmax(0, 1fr); min-height: 555px; overflow: hidden; border-radius: 16px; background: #f7faf8; color: var(--esh-ink); }

.esh-dashboard__rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0; background: #153b3e; color: #a3c6c3; }
.esh-dashboard__mark { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 25px; border: 1px solid #64cfc3; border-radius: 12px; color: #7ce0d3; font: 700 20px/1 Georgia, serif; }
.esh-dashboard__railitem { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.esh-dashboard__railitem--active { background: #2cb7aa; color: #082e30; }
.esh-dashboard__railfoot { margin-top: auto; font-size: 14px; }

.esh-dashboard__main { min-width: 0; padding: clamp(1.25rem, 3.3vw, 2.5rem); }
.esh-dashboard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.esh-dashboard__label { display: block; margin-bottom: .4rem; color: var(--esh-muted); font-size: .7rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.esh-dashboard__top h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.18; font-weight: 650; letter-spacing: -.035em; }
.esh-dashboard__demo { flex: none; padding: .55rem .75rem; border: 1px solid #c9e6de; border-radius: 100px; background: #edf7f3; color: #287d74; font-size: .7rem; font-weight: 700; }
.esh-dashboard__content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(245px, .9fr); gap: clamp(.75rem, 1.7vw, 1.35rem); }
.esh-dashboard__left, .esh-dashboard__right { display: grid; align-content: start; gap: clamp(.75rem, 1.7vw, 1.35rem); }
.esh-dashboard__card { min-width: 0; overflow: hidden; border: 1px solid var(--esh-line); border-radius: 18px; background: #fff; box-shadow: 0 9px 20px #174a3e08; }
.esh-dashboard__cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.esh-dashboard__cardhead strong { font-size: .92rem; font-weight: 700; }
.esh-dashboard__cardhead span { color: var(--esh-muted); font-size: .76rem; }

.esh-dashboard__climate { display: grid; grid-template-columns: 1fr auto; gap: 1rem; min-height: 188px; padding: clamp(1.2rem, 2.3vw, 1.8rem); background: linear-gradient(125deg, #e7f5ef, #eff9f5 55%, #d5f0e8); }
.esh-dashboard__climate .esh-dashboard__cardhead { grid-column: 1 / -1; margin-bottom: 0; }
.esh-dashboard__temp { align-self: end; font-size: clamp(3.3rem, 6vw, 5rem); line-height: .94; letter-spacing: -.08em; font-weight: 500; }
.esh-dashboard__temp small { color: #428f83; font-size: .28em; letter-spacing: 0; vertical-align: top; }
.esh-dashboard__climate-status { align-self: end; max-width: 120px; padding-bottom: 7px; color: #4c817b; font-size: .77rem; line-height: 1.35; text-align: right; }

.esh-dashboard__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.7vw, 1.35rem); }
.esh-dashboard__tile { min-height: 144px; padding: 1.2rem; }
.esh-dashboard__tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.35rem; }
.esh-dashboard__tile-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: #e7f6f1; color: #218a7f; font-size: 1.55rem; line-height: 1; }
.esh-dashboard__pill { width: 30px; height: 17px; border-radius: 50px; background: #2ebcaf; box-shadow: inset 0 0 0 2px #20aa9c; }
.esh-dashboard__pill::after { content: ''; display: block; width: 11px; height: 11px; margin: 3px 0 0 16px; border-radius: 50%; background: #fff; }
.esh-dashboard__tile strong { display: block; margin-bottom: .25rem; font-size: .88rem; }
.esh-dashboard__tile > span:last-child { color: var(--esh-muted); font-size: .74rem; }

.esh-dashboard__scenes { padding: 1.2rem; }
.esh-dashboard__scene-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.esh-dashboard__scene { padding: .65rem .85rem; border: 1px solid #dcece6; border-radius: 10px; background: #f5faf7; color: #315f5c; font-size: .73rem; font-weight: 600; }
.esh-dashboard__scene:first-child { border-color: #a9ded3; background: #e4f5ed; color: #186e62; }

.esh-dashboard__outdoor { padding: 1.3rem; background: #19484b; color: #f4fbf7; }
.esh-dashboard__outdoor .esh-dashboard__cardhead span { color: #a6c7c2; }
.esh-dashboard__outdoor-value { display: flex; align-items: center; gap: .6rem; font-size: 2.5rem; line-height: 1; letter-spacing: -.06em; }
.esh-dashboard__sun { display: block; width: 30px; height: 30px; border-radius: 50%; background: #f6ce7b; box-shadow: 0 0 0 6px #f6ce7b2b; }
.esh-dashboard__outdoor p { margin: .6rem 0 0; color: #b9d2cc; font-size: .75rem; }
.esh-dashboard__energy { padding: 1.3rem; }
.esh-dashboard__energy-value { margin: 0; font-size: 1.9rem; line-height: 1; font-weight: 600; letter-spacing: -.05em; }
.esh-dashboard__energy-value small { color: #648780; font-size: .48em; letter-spacing: 0; }
.esh-dashboard__chart { display: flex; align-items: end; gap: 7px; height: 86px; margin-top: 20px; border-bottom: 1px solid #c8ddd7; }
.esh-dashboard__chart i { display: block; flex: 1; max-width: 22px; height: var(--bar); min-height: 8px; border-radius: 4px 4px 0 0; background: #9ddfd0; }
.esh-dashboard__chart i:nth-child(3n) { background: #42bba9; }
.esh-dashboard__energy-note { display: flex; justify-content: space-between; margin-top: .55rem; color: #718a84; font-size: .67rem; }
.esh-dashboard__foot { margin: 1rem .25rem 0; color: #a8c5bd; font-size: .73rem; line-height: 1.5; text-align: right; }

@media (max-width: 850px) {
  .esh-dashboard__content { grid-template-columns: 1fr; }
  .esh-dashboard__right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .esh-dashboard__frame { padding: 5px; border-radius: 17px; }
  .esh-dashboard__screen { grid-template-columns: 1fr; border-radius: 12px; }
  .esh-dashboard__rail { flex-direction: row; gap: 7px; padding: 8px 12px; }
  .esh-dashboard__mark { width: 31px; height: 31px; margin: 0 auto 0 0; font-size: 17px; }
  .esh-dashboard__railitem { width: 30px; height: 30px; }
  .esh-dashboard__railfoot { margin: 0; }
  .esh-dashboard__top { display: block; margin-bottom: 20px; }
  .esh-dashboard__demo { display: inline-block; margin-top: .9rem; }
  .esh-dashboard__main { padding: 16px; }
  .esh-dashboard__tiles, .esh-dashboard__right { grid-template-columns: 1fr 1fr; }
  .esh-dashboard__tile { min-height: 135px; padding: .9rem; }
  .esh-dashboard__outdoor, .esh-dashboard__energy { padding: 1rem; }
  .esh-dashboard__outdoor-value { font-size: 1.7rem; }
  .esh-dashboard__energy-value { font-size: 1.45rem; }
}
@media (max-width: 400px) {
  .esh-dashboard__right { grid-template-columns: 1fr; }
  .esh-dashboard__climate-status { max-width: 85px; }
}
