.module-switcher {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
}

.timezone-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  margin: -4px 8px 4px;
  padding: 0 0 0 10px;
  border-left: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-style: normal;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.timezone-analogue-clock {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(138,160,182,.5);
  border-radius: 50%;
  background: radial-gradient(circle at 46% 42%,#24384c 0%,#101c29 74%);
  box-shadow: inset 0 0 12px rgba(1,7,14,.55);
}

.timezone-analogue-clock::before {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -2deg,rgba(220,232,247,.9) 0 3deg,transparent 3deg 90deg),repeating-conic-gradient(from -1deg,rgba(197,207,221,.65) 0 1.5deg,transparent 1.5deg 30deg);
  content: "";
  pointer-events: none;
  mask: radial-gradient(circle,transparent 0 61%,#000 63% 100%);
  -webkit-mask: radial-gradient(circle,transparent 0 61%,#000 63% 100%);
}

.timezone-clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  border-radius: 999px;
  background: #dce8f7;
  transform-origin: 50% 100%;
}

.timezone-clock-hour {
  width: 3px;
  height: 11px;
  transform: translateX(-50%) rotate(var(--timezone-hour-angle,0deg));
}

.timezone-clock-minute {
  width: 2px;
  height: 15px;
  transform: translateX(-50%) rotate(var(--timezone-minute-angle,0deg));
}

.timezone-clock-second {
  width: 1px;
  height: 16px;
  background: #ef4444;
  transform: translateX(-50%) rotate(var(--timezone-second-angle,0deg));
  will-change: transform;
}

.timezone-clock-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid #06101a;
  border-radius: 50%;
  background: #35d9d1;
  transform: translate(-50%,-50%);
}

.timezone-clock-text {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: repeat(3,1fr);
  align-content: space-between;
  justify-content: center;
  align-items: center;
  width: 126px;
  min-width: 126px;
  max-width: 126px;
  flex: 0 0 126px;
  height: 48px;
  column-gap: 4px;
}

.timezone-clock-value {
  grid-column: 1 / -1;
  display: block;
  justify-self: center;
  width: 8ch;
  min-width: 8ch;
  color: #edf7ff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-kerning: none;
  text-align: center;
}

.timezone-clock-day,
.timezone-clock-date {
  color: #42cfd3;
  font-size: 9px;
  font-weight: 500;
}

.timezone-clock-zone {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #9eacba;
  font-size: 8px;
  white-space: nowrap;
}

.timezone-clock-zone img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
}

.module-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: #c8d3de;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.module-button.active {
  flex: 1;
}

.module-switcher .module-button {
  border: 0;
  border-radius: 0;
}

.module-toggle-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  gap: 0;
  padding: 0;
}

.module-toggle {
  display: grid;
  width: 18px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  color: #c8d3de;
}

.module-toggle:hover,
.module-toggle:focus-visible {
  background: rgba(255,255,255,.1);
  color: #fff;
  outline: 0;
}

.module-toggle svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.module-button:hover,
.module-button:focus-visible {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  outline: 0;
}

.module-logo {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #2563eb;
}

.module-button:nth-child(2) .module-logo {
  background: #0f766e;
}

.module-logo img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

@media (max-width:980px) {
  .timezone-clock { display: none; }
  .module-switcher { padding: 0; }
  .module-button { justify-content: center; padding: 7px; }
  .module-button > span:last-child { font-size: 0; }
  .module-toggle-controls { display: none; }
}
