.smart-schedule {
  padding-block: clamp(46px, 5vw, 76px);
  background: var(--ivory, #f7f5ef);
  color: var(--ink, #141512);
}
.smart-schedule__layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 2.35fr);
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
}
.smart-schedule .section-kicker { margin: 0 0 12px; color: #856841; }
.smart-schedule h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.05rem, 3.7vw, 3.9rem);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: -.052em;
}
.smart-schedule__description {
  max-width: 39ch;
  margin: 14px 0 19px;
  color: #5b5b52;
  font-size: .95rem;
  line-height: 1.52;
}
.smart-schedule__timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.smart-schedule__timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 13px;
  border-left: 1px solid #cfc0a7;
  pointer-events: none;
}
.smart-schedule__timeline button {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(72px, .38fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 27px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease;
}
.smart-schedule__timeline button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border: 1px solid #9d835d;
  border-radius: 50%;
  background: #f7f5ef;
}
.smart-schedule__timeline button:hover { background: #eee9dd; }
.smart-schedule__timeline button[aria-pressed="true"] { background: #ece3d3; border-color: #dfd2bc; }
.smart-schedule__timeline button[aria-pressed="true"]::before { background: #8d7048; }
.smart-schedule__timeline button:focus-visible { outline: 2px solid #856841; outline-offset: 2px; }
.smart-schedule__timeline time { color: #715631; font-size: .75rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.smart-schedule__timeline strong,
.smart-schedule__timeline small { display: block; }
.smart-schedule__timeline strong { font-size: .9rem; font-weight: 680; }
.smart-schedule__timeline small { margin-top: 1px; color: #57584e; font-size: .72rem; }
.smart-schedule__preview { margin: 0; min-width: 0; }
.smart-schedule__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  background: #29211a;
  aspect-ratio: 1672 / 941;
}
.smart-schedule__panel,
.smart-schedule__layer,
.smart-schedule__panel img,
.smart-schedule__panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.smart-schedule__panel img { display: block; object-fit: cover; }
.smart-schedule__panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility 0s linear .55s;
  pointer-events: none;
}
.smart-schedule__panel.is-active { opacity: 1; visibility: visible; z-index: 1; transition-delay: 0s; }
.smart-schedule__clock {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 2vw, 29px);
  left: clamp(14px, 2vw, 29px);
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 106px;
  padding: 8px 12px;
  border: 1px solid #ead6b862;
  border-radius: 7px;
  background: #181614e8;
  color: #fff5e5;
  font-variant-numeric: tabular-nums;
}
.smart-schedule__clock span { font-size: clamp(1.35rem, 3.1vw, 2.65rem); line-height: 1; letter-spacing: -.045em; }
.smart-schedule__clock small { color: #e7cda7; font-size: .65rem; font-weight: 650; letter-spacing: .09em; }
.smart-schedule__caption { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; color: #57564e; font-size: .81rem; line-height: 1.4; }
.smart-schedule__caption strong { flex: 0 0 auto; color: #755a36; }
.smart-schedule__clock span { font-size: clamp(1.28rem, 2.8vw, 2.35rem); }
.smart-schedule__caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}
.smart-schedule__phase {
  min-width: 60px;
  color: #795d35;
  font-weight: 700;
}
.smart-schedule__replay {
  padding: 6px 9px;
  border: 1px solid #cbbda6;
  border-radius: 5px;
  background: transparent;
  color: #5f492d;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.smart-schedule__replay:hover { background: #efe5d5; }
.smart-schedule__replay:focus-visible { outline: 2px solid #856841; outline-offset: 2px; }
.smart-schedule__scheduled-state { opacity: 0; }
.smart-schedule__panel.is-running .smart-schedule__scheduled-state {
  animation: smart-schedule-activate 1.45s ease .67s both;
}
[data-visual="bathroom"].is-running .smart-schedule__scheduled-state { animation-delay: .74s; }
[data-visual="garden"].is-running .smart-schedule__scheduled-state { animation-delay: .75s; }
@keyframes smart-schedule-activate { to { opacity: 1; } }
.smart-schedule__geyser { opacity: 0; filter: drop-shadow(0 0 9px #63e6a1); }
.smart-schedule__panel.is-running .smart-schedule__geyser { animation: smart-schedule-activate .28s ease .1s both; }
.smart-schedule__essential { filter: drop-shadow(0 0 5px #70ffb8); }
.smart-schedule__ac { filter: drop-shadow(0 0 5px #8affef); }
.smart-schedule__panel.is-running .smart-schedule__ac { animation: smart-schedule-off .45s ease .61s both; }
@keyframes smart-schedule-off { to { opacity: 0; } }
.smart-schedule__work-curtains {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}
.smart-schedule__work-curtains {
  inset: 28.95% 35.35% 40.15% 33.05%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%, 17% 87%, 0 86%);
}
.smart-schedule__work-curtains span {
  position: absolute;
  inset: 0 50% 0 0;
  transform: scaleX(.10);
  transform-origin: left center;
  background: linear-gradient(#34281d42, transparent 25%, #3e2c2249), url("../images/home-experience-curtain.jpg") center / 100% 100%;
}
.smart-schedule__work-curtains span + span { inset: 0 0 0 50%; transform-origin: right center; }
.smart-schedule__panel.is-running .smart-schedule__work-curtains span {
  animation: smart-schedule-close 2.26s cubic-bezier(.51,.1,.25,1) .48s both;
}
@keyframes smart-schedule-close { to { transform: scaleX(1.006); } }
.smart-schedule__irrigation { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 850px) {
  .smart-schedule__layout { grid-template-columns: 1fr; gap: 20px; }
  .smart-schedule__timeline { max-width: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  .smart-schedule * { transition: none !important; animation: none !important; }
  .smart-schedule__panel.is-running :is(.smart-schedule__scheduled-state, .smart-schedule__geyser) { opacity: 1; }
  .smart-schedule__panel.is-running .smart-schedule__ac { opacity: 0; }
  .smart-schedule__panel.is-running .smart-schedule__work-curtains span { transform: scaleX(1.006); }
}

.smart-schedule__closed-entry {
  opacity: 0;
  clip-path: polygon(0 0, 23% 0, 23% 100%, 0 100%);
  mask-image: linear-gradient(to right, #000 0 20.5%, transparent 23%);
}
.smart-schedule__panel.is-running .smart-schedule__closed-entry { animation: smart-schedule-activate 1.15s ease 2.2s both; }
@media (prefers-reduced-motion: reduce) {
  .smart-schedule__panel.is-running .smart-schedule__closed-entry { opacity: 1; }
}

.smart-schedule__screen-off {
  clip-path: polygon(42.55% 8.65%, 89.45% 3.75%, 89.45% 50.3%, 42.55% 49.9%);
}
[data-visual="screen"].is-running .smart-schedule__screen-off { animation: smart-schedule-activate .35s ease .27s both; }

.smart-schedule__garden-dawn { opacity: 0; }
.smart-schedule__panel.is-dawn .smart-schedule__garden-dawn {
  animation: smart-schedule-activate .85s ease both;
}
.smart-schedule__panel.is-powered-down :is(.smart-schedule__geyser, .smart-schedule__scheduled-state) {
  animation: smart-schedule-power-down .64s ease both;
}
@keyframes smart-schedule-power-down { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .smart-schedule__panel.is-dawn .smart-schedule__garden-dawn { opacity: 1; }
  .smart-schedule__panel.is-powered-down :is(.smart-schedule__geyser, .smart-schedule__scheduled-state) { opacity: 0; }
}
