/* Watch dashboard preview. Shared by the layout editor and the community
   gallery — see watch-preview.js. Keep the two in step: a rule that only exists
   in one page is how the editor and the gallery start disagreeing about what a
   layout looks like. */

.watch-widget {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.watch-text {
  position: absolute;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  line-height: 1;
  font-weight: 400;
}

.watch-gauge-svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.watch-record-icon {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
}

.watch-varia {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  background: #000;
  border: 2px solid #333333;
}

.watch-varia-dot {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Screen shell — the gallery draws a whole watch face, the editor supplies its
   own canvas chrome and only uses the component renderer. */
.watch-screen {
  position: relative;
  background: #000;
  overflow: hidden;
  flex: none;
}

.watch-screen--round {
  border-radius: 50%;
}

.watch-screen--square {
  border-radius: 12%/10%;
}

.watch-screen__item {
  position: absolute;
}
