.me-time-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 166px;
  overflow: clip;
  padding: 17px 16px;
  border: 1px solid #edf1f9;
  border-radius: 18px;
  background: #e5ebf7;
  color: #20273c;
  font-family: var(--academy-sans);
  text-align: start;
  cursor: pointer;
}

.me-time-preview::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  background: radial-gradient(ellipse at 55% 48%, #f8fbffe8 0%, transparent 67%);
  pointer-events: none;
  content: "";
}

.me-time-preview-copy {
  display: grid;
  justify-items: start;
  gap: 9px;
  width: 53%;
}

.me-time-preview-copy strong {
  font-size: clamp(15px, 3.7cqw, 19px);
  font-weight: 650;
  line-height: 1.23;
  text-wrap: balance;
}

.me-time-preview-duration {
  color: #4e5566;
  font-size: 13px;
}

.me-time-preview-start {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding: 7px 12px;
  border-radius: 9px;
  background: #f9dce9;
  color: #2b2030;
  font: 600 13px/1.1 var(--academy-sans);
}

.me-time-preview-start > span:first-child {
  display: grid;
  width: 15px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #282333;
}

.me-time-preview-start > span:first-child::before {
  width: 5px;
  height: 6px;
  margin-left: 1px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

.me-time-preview-art {
  position: absolute;
  z-index: -1;
  right: -12px;
  bottom: 5px;
  width: 57%;
  max-height: calc(100% - 12px);
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.phone-screen:has(> .me-time-dialog[open])::after {
  background: #f6f8fc;
}

.phone-screen:has(> .me-time-dialog[open]) > .status-bar {
  z-index: 6;
  background: #f6f8fc;
}

.phone-screen .me-time-dialog .academy-dialog-panel {
  display: flex;
  height: calc(100% - var(--status-height));
  max-height: none;
  flex-direction: column;
  padding: 6px 22px clamp(32px, 9cqw, 48px);
  overflow-x: hidden;
  border-radius: 0;
  background: radial-gradient(ellipse at -24% 48%, #dfeaf9 0%, transparent 53%),
    radial-gradient(ellipse at 112% 2%, #edf1fb 0%, transparent 47%), #faf9fc;
  box-shadow: none;
  color: #202538;
  scrollbar-width: none;
}

.me-time-header {
  display: grid;
  flex: none;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  text-align: center;
  font: 650 17px/1.2 var(--academy-sans);
}

.me-time-header .me-time-back {
  width: 44px;
  min-height: 44px;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.me-time-practice {
  display: grid;
  flex: 1 0 auto;
  align-content: center;
  justify-items: center;
  min-height: 360px;
  padding-block: 22px 30px;
  text-align: center;
}

.me-time-orb {
  position: relative;
  display: grid;
  width: min(44cqw, 212px);
  aspect-ratio: 1;
  margin-block: 8px 54px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(ellipse at 27% 24%, #fff1f1d4, transparent 57%),
    linear-gradient(135deg, #ffdae2 4%, #ffa8bf 49%, #f26f9c 100%);
  box-shadow: -17px -12px 35px #fff5f6b0, 0 14px 45px #f9a5bd7a;
  transform: scale(var(--breath-scale, .94));
  transition: transform .16s linear;
}

.me-time-orb::before,
.me-time-orb::after {
  position: absolute;
  inset: 48% -39% 35%;
  border-top: 1px solid #fff9;
  border-radius: 50%;
  transform: rotate(-15deg);
  content: "";
}

.me-time-orb::after {
  inset: 18% -38% 36%;
  border: 1px solid #b5bdcd50;
  border-right-color: transparent;
  border-left-color: transparent;
  transform: rotate(-25deg);
}

.me-time-dialog .me-time-practice h2 {
  max-width: 225px;
  margin: 0;
  font: 650 clamp(22px, 5.3cqw, 28px)/1.18 var(--academy-sans);
  text-wrap: balance;
}

.me-time-description {
  margin: 10px 0 0;
  color: #545b6c;
  font-size: 14px;
}

.me-time-phase {
  min-height: 20px;
  margin: 7px 0 0;
  color: #77384f;
  font-size: 13px;
}

.me-time-player {
  display: grid;
  flex: none;
  gap: 19px;
}

.me-time-timeline {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  color: #52596b;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.me-time-timer {
  color: #202538;
}

.me-time-wave {
  position: relative;
  min-width: 0;
  border-radius: 10px;
}

.me-time-wave:focus-within {
  outline: 2px solid var(--academy-wine);
  outline-offset: 2px;
}

.me-time-bars {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.me-time-bars span {
  width: 3px;
  min-width: 2px;
  border-radius: 99px;
  background: #d9dce7;
}

.me-time-bars span[data-elapsed] {
  background: #25293c;
}

.me-time-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.me-time-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}

.me-time-control,
.me-time-skip {
  position: relative;
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #202538;
  cursor: pointer;
}

.me-time-control {
  width: 57px;
  min-height: 57px;
  background: #262a3d;
  color: white;
}

.me-time-transport .academy-icon {
  --icon-size: 23px;
}

.me-time-control .me-time-pause-icon,
.me-time-dialog[data-running] .me-time-play-icon {
  display: none;
}

.me-time-dialog[data-running] .me-time-pause-icon {
  display: block;
}

.me-time-skip span {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 700 8px/1 var(--academy-sans);
}

.me-time-skip[data-seconds="10"] svg {
  scale: -1 1;
}

@media (prefers-reduced-motion: reduce) {
  .me-time-orb {
    transform: none;
    transition: none;
  }
}
