/* A quiet companion, using the original homepage Mito rather than a photo tile. */
#study .today-greeting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  align-items: center;
  gap: 24px;
  min-height: 172px;
}
#study .today-greeting-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
#study .today-mito {
  display: grid;
  grid-template-rows: 3.5rem auto;
  align-items: end;
  justify-items: center;
  width: 100%;
  max-width: 208px;
  align-self: center;
  --mito-fill: #3d6e8f;
}
#study .today-mito-bubble {
  position: relative;
  display: block;
  max-width: 100%;
  align-self: end;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  border: 1px solid var(--app-separator);
  background: var(--app-surface);
  color: var(--app-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 240ms ease,
    transform 300ms ease;
  pointer-events: none;
  overflow-wrap: anywhere;
}
#study .today-mito.is-speaking .today-mito-bubble {
  opacity: 1;
  transform: none;
}
#study .today-mito-perch {
  position: relative;
  width: 172px;
  padding-bottom: 8px;
}
#study .today-mito-character {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 40%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#study .today-mito-character:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 4px;
}
#study .today-mito-visual {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
#study .today-mito-body {
  fill: var(--mito-fill);
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: today-mito-breathe 5.6s ease-in-out infinite paused;
}
#study .today-mito-eye {
  fill: #f5f4f0;
  transform-box: fill-box;
  transform-origin: center;
  translate: var(--mito-look-x, 0) var(--mito-look-y, 0);
  scale: 1 var(--mito-eye-open, 1);
  transition: scale 100ms ease;
}
#study .today-mito.is-blinking {
  --mito-eye-open: 0.08;
}
#study .today-mito-shadow {
  position: absolute;
  z-index: -1;
  bottom: 14px;
  left: 20%;
  width: 60%;
  height: 9px;
  border-radius: 50%;
  background: var(--app-separator);
  opacity: 0.5;
  filter: blur(5px);
}
#study .today-mito[data-awake] .today-mito-body {
  animation-play-state: running;
}
#study .today-mito.is-nodding .today-mito-visual {
  animation: today-mito-nod 1.5s ease-in-out both;
}
@keyframes today-mito-breathe {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.018, 0.975);
  }
}
@keyframes today-mito-nod {
  0%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(-5deg) translateY(-2px);
  }
  65% {
    transform: rotate(2deg);
  }
}
@media (prefers-color-scheme: dark) {
  #study .today-mito {
    --mito-fill: #5687a4;
  }
  #study .today-mito-shadow {
    opacity: 0.7;
  }
}
@media (max-width: 600px) {
  #study .today-greeting {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    min-height: 154px;
  }
  #study .today-greeting h1 {
    font-size: clamp(1.75rem, 7vw, 2rem);
    letter-spacing: -0.7px;
  }
  #study .today-mito {
    max-width: 112px;
    grid-template-rows: 5rem auto;
  }
  #study .today-mito-perch {
    width: 112px;
  }
  #study .today-mito-bubble {
    font-size: 0.75rem;
    padding: 6px 8px;
    border-radius: 12px 12px 3px 12px;
  }
  #study .today-mito-shadow {
    bottom: 12px;
    height: 7px;
  }
}
@media (max-width: 360px) {
  #study .today-greeting {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px;
  }
  #study .today-mito {
    max-width: 92px;
  }
  #study .today-mito-perch {
    width: 92px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #study .today-mito * {
    animation: none !important;
    transition: none !important;
  }
  #study .today-mito-eye {
    translate: none;
    scale: 1;
  }
}
